aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorWolfram Sang <wsa+renesas@sang-engineering.com>2019-04-03 14:40:09 +0200
committerWolfram Sang <wsa@the-dreams.de>2019-04-16 13:08:11 +0200
commit83c42212d2544625b85f44a07d0ad96323e69250 (patch)
treef9fbca3a009f6e40eecce87ed42fc49eeef059dd /scripts/gdb/linux/utils.py
parenti2c: core: remove use of in_atomic() (diff)
downloadwireguard-linux-83c42212d2544625b85f44a07d0ad96323e69250.tar.xz
wireguard-linux-83c42212d2544625b85f44a07d0ad96323e69250.zip
i2c: core: use I2C locking behaviour also for SMBUS
If I2C transfers are executed in atomic contexts, trylock is used instead of lock. This behaviour was missing for SMBUS, although a lot of transfers are of SMBUS type, either emulated or direct. So, factor out the locking routine into a helper and use it for I2C and SMBUS. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Reviewed-by Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions