> > +static int tegra_i2c_init_dma(struct tegra_i2c_dev *i2c_dev) {
> > + struct dma_chan *dma_chan;
> > + u32 *dma_buf;
> > + dma_addr_t dma_phys;
> > + int err = 0;
> > +
> > + if (!IS_ENABLED(CONFIG_TEGRA20_APB_DMA))
> > + return -ENODEV;
>
> Driver shall not fail to probe if DMA driver is disabled, but to continue
> with the PIO-only mode available.
>
> Should be:
>
> if (!IS_ENABLED(CONFIG_TEGRA20_APB_DMA))
> return 0;
>
Except EPROBE_DEFER, anything else returned from tegra_i2c_init_dma
(ENODEV/ENOMEM) is ignored in i2c_probe
DMA mode decision is based on xfer size and availability of dma channel or can
be changed based on valid dma buf to shorten the line.- [PATCH V9 1/5] i2c: tegra: sort all the include header... Sowjanya Komatineni
- [PATCH V9 2/5] i2c: tegra: add bus clear master s... Sowjanya Komatineni
- Re: [PATCH V9 2/5] i2c: tegra: add bus clear ... Dmitry Osipenko
- [PATCH V9 4/5] i2c: tegra: update transfer timeou... Sowjanya Komatineni
- Re: [PATCH V9 4/5] i2c: tegra: update transfe... Dmitry Osipenko
- RE: [PATCH V9 4/5] i2c: tegra: update tra... Sowjanya Komatineni
- Re: [PATCH V9 4/5] i2c: tegra: update... Dmitry Osipenko
- [PATCH V9 5/5] i2c: tegra: add i2c interface timi... Sowjanya Komatineni
- [PATCH V9 3/5] i2c: tegra: Add DMA support Sowjanya Komatineni
- Re: [PATCH V9 3/5] i2c: tegra: Add DMA suppor... Dmitry Osipenko
- RE: [PATCH V9 3/5] i2c: tegra: Add DMA su... Sowjanya Komatineni
- Re: [PATCH V9 3/5] i2c: tegra: Add DM... Dmitry Osipenko
- Re: [PATCH V9 3/5] i2c: tegra: A... Dmitry Osipenko
- RE: [PATCH V9 3/5] i2c: tegr... Sowjanya Komatineni
- Re: [PATCH V9 3/5] i2c: ... Dmitry Osipenko
- RE: [PATCH V9 3/5] i2c: tegra: Add DMA su... Sowjanya Komatineni
- Re: [PATCH V9 3/5] i2c: tegra: Add DM... Dmitry Osipenko
- RE: [PATCH V9 3/5] i2c: tegra: A... Sowjanya Komatineni
- Re: [PATCH V9 3/5] i2c: tegr... Dmitry Osipenko
- Re: [PATCH V9 3/5] i2c: tegra: Add DMA suppor... Dmitry Osipenko
- RE: [PATCH V9 3/5] i2c: tegra: Add DMA su... Sowjanya Komatineni

