diff options
author | Wolfram Sang <wsa+renesas@sang-engineering.com> | 2019-04-03 14:40:10 +0200 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2019-04-16 13:08:11 +0200 |
commit | 63b96983a5ddfedd7daea72dbbc08ea873c54f27 (patch) | |
tree | dcb74bf00cfff708620b95b6e0d1e7328f8d2106 /drivers/i2c/muxes | |
parent | 83c42212d2544625b85f44a07d0ad96323e69250 (diff) | |
download | linux-stable-63b96983a5ddfedd7daea72dbbc08ea873c54f27.tar.gz linux-stable-63b96983a5ddfedd7daea72dbbc08ea873c54f27.tar.bz2 linux-stable-63b96983a5ddfedd7daea72dbbc08ea873c54f27.zip |
i2c: core: introduce callbacks for atomic transfers
We had the request to access devices very late when interrupts are not
available anymore multiple times now. Mostly to prepare shutdown or
reboot. Allow adapters to specify a specific callback for this case.
Note that we fall back to the generic {master|smbus}_xfer callback if
this new atomic one is not present. This is intentional to preserve the
previous behaviour and avoid regressions. Because there are drivers not
using interrupts or because it might have worked "accidently" before.
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Tested-by: Stefan Lengfeld <contact@stefanchrist.eu>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c/muxes')
0 files changed, 0 insertions, 0 deletions