i2c: sh_mobile: rework deferred probing
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Tue, 16 Dec 2014 12:31:26 +0000 (13:31 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Wed, 17 Dec 2014 18:26:08 +0000 (19:26 +0100)
commit55f5f9862a31e2ac9defea5f30e413d331d1f932
treeccefc8ac5c8122a5afd37506d1a9d9817031eb1c
parente844a7997dfbce687c7afa9d40f8a3b278e08735
i2c: sh_mobile: rework deferred probing

DMA is opt-in for this driver. So, we can't use deferred probing for
requesting DMA channels in probe, because our driver would get endlessly
deferred if DMA support is compiled in AND the DMA driver is missing.
Because we can't know when the DMA driver might show up, we always try
again when a DMA transfer would be possible. The downside is that there
is more overhead for setting up PIO transfers under the above scenario.
But well, having DMA enabled and the proper DMA driver missing looks
like a broken or test config anyhow.

Reported-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-sh_mobile.c