summaryrefslogtreecommitdiff
path: root/test/py/conftest.py
diff options
context:
space:
mode:
authorRomain Naour <romain.naour@smile.fr>2024-10-08 09:54:28 +0200
committerTom Rini <trini@konsulko.com>2024-10-27 10:19:44 -0600
commitb507f1a5077f8589df000e32715978b8f43a02b6 (patch)
tree1c2f84d21f315e123e2cd0bfdfeb58387f1793a4 /test/py/conftest.py
parent04c183c542ad727afa946dc879a1b76785573548 (diff)
net: ksz9477: set i2c bus offset length only when needed
In order to add ksz9477 SPI bus support, check parent bus is an I2C bus before calling i2c_set_offset_len(). Doing so, ksz_i2c_probe() will now return an error (-EINVAL) if the parent bus is not the one expected by the ksz-switch u-boot driver. Indeed, the DSA KSZ devicetree binding doesn't specify anything about the underlying bus between the SoC and the DSA switch, so the same "compatible" string can be used wathever the management interface used (SPI or I2C). The ksz-switch u-boot driver currently only support I2C interface but will match a compatible "microchip,ksz9xxx" located under under an SPI bus node. Signed-off-by: Romain Naour <romain.naour@smile.fr>
Diffstat (limited to 'test/py/conftest.py')
0 files changed, 0 insertions, 0 deletions