]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
i2c: xiic: Make bus names unique
authorRobert Hancock <robert.hancock@calian.com>
Thu, 27 Jan 2022 17:50:13 +0000 (11:50 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Apr 2022 07:06:35 +0000 (09:06 +0200)
commit885254b57123fcfaa082d83bfd6d587127e21ca0
treec8401577a40aa5cc0fcbbff9c4f9a531a2f3c18d
parent4fbbf5c82cc177eeb931b2c79448811729131c5b
i2c: xiic: Make bus names unique

[ Upstream commit 1d366c2f9df8279df2adbb60471f86fc40a1c39e ]

This driver is for an FPGA logic core, so there can be arbitrarily many
instances of the bus on a given system. Previously all of the I2C bus
names were "xiic-i2c" which caused issues with lm_sensors when trying to
map human-readable names to sensor inputs because it could not properly
distinguish the busses, for example. Append the platform device name to
the I2C bus name so it is unique between different instances.

Fixes: e1d5b6598cdc ("i2c: Add support for Xilinx XPS IIC Bus Interface")
Signed-off-by: Robert Hancock <robert.hancock@calian.com>
Tested-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/i2c/busses/i2c-xiic.c