forked from luck/tmp_suning_uos_patched
* Fix a shift wrap bug in the core
* Remove dead code in the DW driver -----BEGIN PGP SIGNATURE----- iQIcBAABAgAGBQJcz9pLAAoJEGXtNgF+CLcAi3AP/3pjOrrJ0G+G3hry40Zr12NO JvbUmRPr0YUmcg479iIxgwuJ4Pj5GNGmczGGvfc6ZIKJdDCZEeu8aLIh/KLDzXPX nQ0SlcXBYCIk8gOwtZs/zxB+Oi8DVoiT4iz0Q3vvcqCho1K09IfFCDC1S8CZPUho 72+KapR1nYBhm5gPKpunFn/II7l9UNAzeF1uWLjREm6pCG2/2UNHgzPYGVdp2Pf/ i2lm6PXTMJyca6pqSDbMRWyDNeMva5SURoTkavvvBTwnTQTJaPukMi/jgWElHJ3C ajMJdDtbLBXKWv7La+G2LtlwbbFCDa5wf/V5G7LH4RnszLNWud2BdUhbLEUJWBSr /+VpAyYSUuz3vAGAHVaC+Fe7NtYXIxODKEGlSTqwl1Ns31P8fAwX6n+RuHdFNxpl wwIVaJZHeU62e5Z7nujQ9buJMDea2msqi5EqmtWubjN59C3rLRWZhwiL7YG3bjLc NbcaL5+Fz1IByKiOq7BGrI2w2uV8fK2/hE2mgw4yuNXvo7G0oKloHnSjB9zOxacJ HNCSDx6TnoWWfWCzGfXBKzc1ycTXyYY5vmk45qVA78H4a9LY0KG8WGDfsTPXmp44 +PGQ+GKvvuPMzyYC+ENx1LN5OLkiZqU5c69++pFqkEXHiyPin+Ig4qm4XKbWy5FZ mwd5URtCnn2s0vD5DrDH =/U9S -----END PGP SIGNATURE----- Merge tag 'i3c/for-5.2' of git://git.kernel.org/pub/scm/linux/kernel/git/i3c/linux Pull i3c update from Boris Brezillon: - Fix a shift wrap bug in the core - Remove dead code in the DW driver * tag 'i3c/for-5.2' of git://git.kernel.org/pub/scm/linux/kernel/git/i3c/linux: i3c: Fix a shift wrap bug in i3c_bus_set_addr_slot_status() i3c: master: dw: remove dead code from dw_i3c_master_*_xfers()
This commit is contained in:
commit
80104bb06b
|
@ -385,8 +385,9 @@ static void i3c_bus_set_addr_slot_status(struct i3c_bus *bus, u16 addr,
|
|||
return;
|
||||
|
||||
ptr = bus->addrslots + (bitpos / BITS_PER_LONG);
|
||||
*ptr &= ~(I3C_ADDR_SLOT_STATUS_MASK << (bitpos % BITS_PER_LONG));
|
||||
*ptr |= status << (bitpos % BITS_PER_LONG);
|
||||
*ptr &= ~((unsigned long)I3C_ADDR_SLOT_STATUS_MASK <<
|
||||
(bitpos % BITS_PER_LONG));
|
||||
*ptr |= (unsigned long)status << (bitpos % BITS_PER_LONG);
|
||||
}
|
||||
|
||||
static bool i3c_bus_dev_addr_is_avail(struct i3c_bus *bus, u8 addr)
|
||||
|
|
|
@ -840,11 +840,6 @@ static int dw_i3c_master_priv_xfers(struct i3c_dev_desc *dev,
|
|||
if (i3c_nxfers > master->caps.cmdfifodepth)
|
||||
return -ENOTSUPP;
|
||||
|
||||
for (i = 0; i < i3c_nxfers; i++) {
|
||||
if (i3c_xfers[i].len > COMMAND_PORT_ARG_DATA_LEN_MAX)
|
||||
return -ENOTSUPP;
|
||||
}
|
||||
|
||||
for (i = 0; i < i3c_nxfers; i++) {
|
||||
if (i3c_xfers[i].rnw)
|
||||
nrxwords += DIV_ROUND_UP(i3c_xfers[i].len, 4);
|
||||
|
@ -973,11 +968,6 @@ static int dw_i3c_master_i2c_xfers(struct i2c_dev_desc *dev,
|
|||
if (i2c_nxfers > master->caps.cmdfifodepth)
|
||||
return -ENOTSUPP;
|
||||
|
||||
for (i = 0; i < i2c_nxfers; i++) {
|
||||
if (i2c_xfers[i].len > COMMAND_PORT_ARG_DATA_LEN_MAX)
|
||||
return -ENOTSUPP;
|
||||
}
|
||||
|
||||
for (i = 0; i < i2c_nxfers; i++) {
|
||||
if (i2c_xfers[i].flags & I2C_M_RD)
|
||||
nrxwords += DIV_ROUND_UP(i2c_xfers[i].len, 4);
|
||||
|
|
Loading…
Reference in New Issue
Block a user