aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/make_fit.py
diff options
context:
space:
mode:
authorJonas Jelonek <[email protected]>2025-08-31 10:04:46 +0000
committerAndi Shyti <[email protected]>2025-09-03 22:31:23 +0000
commitcd6c956fbc13156bcbcca084b46a8380caebc2a8 (patch)
treef6b03c4004a9430bebcec31ef13c7f61e19f211a /scripts/make_fit.py
parenti2c: i801: Hide Intel Birch Stream SoC TCO WDT (diff)
downloadkernel-cd6c956fbc13156bcbcca084b46a8380caebc2a8.tar.gz
kernel-cd6c956fbc13156bcbcca084b46a8380caebc2a8.zip
i2c: rtl9300: fix channel number bound check
Fix the current check for number of channels (child nodes in the device tree). Before, this was: if (device_get_child_node_count(dev) >= RTL9300_I2C_MUX_NCHAN) RTL9300_I2C_MUX_NCHAN gives the maximum number of channels so checking with '>=' isn't correct because it doesn't allow the last channel number. Thus, fix it to: if (device_get_child_node_count(dev) > RTL9300_I2C_MUX_NCHAN) Issue occured on a TP-Link TL-ST1008F v2.0 device (8 SFP+ ports) and fix is tested there. Fixes: c366be720235 ("i2c: Add driver for the RTL9300 I2C controller") Cc: [email protected] # v6.13+ Signed-off-by: Jonas Jelonek <[email protected]> Tested-by: Sven Eckelmann <[email protected]> Reviewed-by: Chris Packham <[email protected]> Tested-by: Chris Packham <[email protected]> # On RTL9302C based board Tested-by: Markus Stockhausen <[email protected]> Signed-off-by: Andi Shyti <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/make_fit.py')
0 files changed, 0 insertions, 0 deletions