- diff --git a/ptxdist/configs/ecu01/patches/linux-3.10.108/series b/ptxdist/configs/ecu01/patches/linux-3.10.108/series
- index c27bc22..08e033f 100644
- --- a/ptxdist/configs/ecu01/patches/linux-3.10.108/series
- +++ b/ptxdist/configs/ecu01/patches/linux-3.10.108/series
- @@ -24,3 +24,4 @@
- 0024-0022-Changing-MXC-Timer-Source-to-GPT3.patch
- 0025-sync-ro-remount-after-blocking-writers.patch
- patch-3.10.108-rt123.patch
- +spi_print_tid_debug.patch
- diff --git a/ptxdist/configs/ecu01/patches/linux-3.10.108/series.ecu01 b/ptxdist/configs/ecu01/patches/linux-3.10.108/series.ecu01
- index c27bc22..08e033f 100644
- --- a/ptxdist/configs/ecu01/patches/linux-3.10.108/series.ecu01
- +++ b/ptxdist/configs/ecu01/patches/linux-3.10.108/series.ecu01
- @@ -24,3 +24,4 @@
- 0024-0022-Changing-MXC-Timer-Source-to-GPT3.patch
- 0025-sync-ro-remount-after-blocking-writers.patch
- patch-3.10.108-rt123.patch
- +spi_print_tid_debug.patch
- diff --git a/ptxdist/configs/ecu01/patches/linux-3.10.108/spi_print_tid_debug.patch b/ptxdist/configs/ecu01/patches/linux-3.10.108/spi_print_tid_debug.patch
- new file mode 100644
- index 0000000..7602b65
- --- /dev/null
- +++ b/ptxdist/configs/ecu01/patches/linux-3.10.108/spi_print_tid_debug.patch
- @@ -0,0 +1,33 @@
- +diff --git a/drivers/spi/spi-imx.c b/drivers/spi/spi-imx.c
- +index f7cd065..f4fd8a2 100644
- +--- a/drivers/spi/spi-imx.c
- ++++ b/drivers/spi/spi-imx.c
- +@@ -709,11 +709,28 @@ static int spi_imx_setupxfer(struct spi_device *spi,
- + return 0;
- + }
- +
- ++static
- ++void print_transfer_tid(struct spi_device *spi)
- ++{
- ++ static pid_t old_tid = (pid_t)-1; static long count = 0L;
- ++ pid_t tid = current->pid;
- ++
- ++ if (old_tid != tid)
- ++ {
- ++ (void)printk(KERN_ERR "spi_imx_transfer: spi=%lx, spi->dev.init_name=%s, old_tid=%ld, tid=%ld, count=%ld\n",
- ++ (long)spi, spi->dev.init_name, (long)old_tid,
- ++ (long)tid, count);
- ++ old_tid = tid; count = 0L;
- ++ } else { count++; }
- ++}
- ++
- + static int spi_imx_transfer(struct spi_device *spi,
- + struct spi_transfer *transfer)
- + {
- + struct spi_imx_data *spi_imx = spi_master_get_devdata(spi->master);
- +
- ++ print_transfer_tid(spi);
- ++
- + spi_imx->tx_buf = transfer->tx_buf;
- + spi_imx->rx_buf = transfer->rx_buf;
- + spi_imx->count = transfer->len;
Quantron SPI transfer debug patch
Posted by Anonymous on Fri 1st Nov 2019 15:09
raw | new post
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.