diff options
author | Parker Newman <[email protected]> | 2023-08-08 16:01:06 +0200 |
---|---|---|
committer | Wolfram Sang <[email protected]> | 2023-08-14 15:35:45 +0200 |
commit | 27ec43c77b5db780a56fc3a6d6de6bf2f74614f7 (patch) | |
tree | cf64cdaacc5275f7eda6af257924827fcf9f9443 /lib/test_fortify/write_overflow-strcpy.c | |
parent | b3497ef404dc3a8a7b8438a8950f46c4cd0e6ccf (diff) |
i2c: tegra: Fix i2c-tegra DMA config option processing
Tegra processors prior to Tegra186 used APB DMA for I2C requiring
CONFIG_TEGRA20_APB_DMA=y while Tegra186 and later use GPC DMA requiring
CONFIG_TEGRA186_GPC_DMA=y.
The check for if the processor uses APB DMA is inverted and so the wrong
DMA config options are checked.
This means if CONFIG_TEGRA20_APB_DMA=y but CONFIG_TEGRA186_GPC_DMA=n
with a Tegra186 or later processor the driver will incorrectly think DMA is
enabled and attempt to request DMA channels that will never be availible,
leaving the driver in a perpetual EPROBE_DEFER state.
Fixes: 48cb6356fae1 ("i2c: tegra: Add GPCDMA support")
Signed-off-by: Parker Newman <[email protected]>
Acked-by: Andi Shyti <[email protected]>
Acked-by: Akhil R <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Wolfram Sang <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strcpy.c')
0 files changed, 0 insertions, 0 deletions