diff options
| author | Liguang Zhang <[email protected]> | 2021-02-25 14:26:31 +0000 |
|---|---|---|
| committer | Wolfram Sang <[email protected]> | 2021-02-26 10:26:09 +0000 |
| commit | f53f15ba5a852171eccf940b22530152450a045c (patch) | |
| tree | d32ef2df5c40be9eef99d2397094d080fb9ba252 /drivers/pwm/pwm-stm32-lp.c | |
| parent | i2c: brcmstb: Fix brcmstd_send_i2c_cmd condition (diff) | |
| download | kernel-f53f15ba5a852171eccf940b22530152450a045c.tar.gz kernel-f53f15ba5a852171eccf940b22530152450a045c.zip | |
i2c: designware: Get right data length
IC_DATA_CMD[11] indicates the first data byte received after the address
phase for receive transfer in Master receiver or Slave receiver mode,
this bit was set in some transfer flow. IC_DATA_CMD[7:0] contains the
data to be transmitted or received on the I2C bus, so we should use the
lower 8 bits to get the real data length.
Signed-off-by: Liguang Zhang <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
Diffstat (limited to 'drivers/pwm/pwm-stm32-lp.c')
0 files changed, 0 insertions, 0 deletions
