aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/i2c/busses/i2c-designware-platdrv.c
diff options
context:
space:
mode:
authorWolfram Sang <wsa+renesas@sang-engineering.com>2019-03-12 13:44:42 +0100
committerWolfram Sang <wsa@the-dreams.de>2019-03-13 18:03:26 +0100
commitbf263c35b2ebe7f1674205f6b36487250299b5a7 (patch)
treed281179a1dfafd96a655cd4234e1238179973113 /drivers/i2c/busses/i2c-designware-platdrv.c
parenti2c: i2c-stm32f7: Fix SDADEL minimum formula (diff)
downloadlinux-dev-bf263c35b2ebe7f1674205f6b36487250299b5a7.tar.xz
linux-dev-bf263c35b2ebe7f1674205f6b36487250299b5a7.zip
i2c: add extra check to safe DMA buffer helper
Make sure we report 'no buffer' for 0-length messages. This can only happen if threshold is set to 0 which is kind of bogus but we should still handle this situation. Update the docs and add a debug message to educate callers of this function. Reported-by: Hsin-Yi Wang <hsinyi@chromium.org> Fixes: e94bc5d18be0 ("i2c: add helpers to ease DMA handling") Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Reviewed-by: Hsin-Yi Wang <hsinyi@chromium.org> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions