]> www.infradead.org Git - nvme.git/commit
i2c: smbus: remove i801 assumptions from SPD probing
authorThomas Weißschuh <linux@weissschuh.net>
Tue, 9 Jul 2024 17:35:35 +0000 (19:35 +0200)
committerAndi Shyti <andi.shyti@kernel.org>
Sat, 20 Jul 2024 01:07:55 +0000 (03:07 +0200)
commit8f3075cc680c232590ca4e2ef39ebaf1e887a52e
tree2490044137c015bd329c4ba4936f2ad972eb7ab8
parent45b8ee7182d5ef8df6959297046f86dc128d6a06
i2c: smbus: remove i801 assumptions from SPD probing

The check and warning are very specific to the SPD usage of the i801
driver. That was fine as long as i801 was the only caller of
i2c_register_spd(). Now that piix4 will be added as another user of that
function, the check and warning are not accurate anymore.
Instead of introducing a more complicated calling protocol only to print
a warning, drop the warning.
Even in cases where not all slots can be probed,
then at least probe the 8 slots that can be.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Reviewed-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
drivers/i2c/i2c-smbus.c