diff options
author | Jarkko Nikula <jarkko.nikula@linux.intel.com> | 2024-02-13 15:48:44 +0300 |
---|---|---|
committer | Andi Shyti <andi.shyti@kernel.org> | 2024-02-27 03:51:33 +0300 |
commit | 04c71da4a9f4eef94bec153ed667d105dacffda3 (patch) | |
tree | 05396a853f5cb909d236fc2d13a387b74d3708a8 /drivers/i2c/busses/i2c-designware-common.c | |
parent | 64b6426a6e97a95c044fd2fff3f0adf7c1edb60c (diff) | |
download | linux-04c71da4a9f4eef94bec153ed667d105dacffda3.tar.xz |
i2c: designware: Use accessors to DW_IC_INTR_MASK register
Convert access to DW_IC_INTR_MASK register using the existing
__i2c_dw_write_intr_mask() and a __i2c_dw_read_intr_mask() introduced
here. Motivation to this is to prepare for generic polling mode code
where polling mode will use a SW mask instead of DW_IC_INTR_MASK.
Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Tested-by: Jiawen Wu <jiawenwu@trustnetic.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Diffstat (limited to 'drivers/i2c/busses/i2c-designware-common.c')
-rw-r--r-- | drivers/i2c/busses/i2c-designware-common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-designware-common.c b/drivers/i2c/busses/i2c-designware-common.c index 35f762872b8a..e8a688d04aee 100644 --- a/drivers/i2c/busses/i2c-designware-common.c +++ b/drivers/i2c/busses/i2c-designware-common.c @@ -648,7 +648,7 @@ void i2c_dw_disable(struct dw_i2c_dev *dev) __i2c_dw_disable(dev); /* Disable all interrupts */ - regmap_write(dev->map, DW_IC_INTR_MASK, 0); + __i2c_dw_write_intr_mask(dev, 0); regmap_read(dev->map, DW_IC_CLR_INTR, &dummy); i2c_dw_release_lock(dev); |