summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorKarl Mehltretter <kmehltretter@gmail.com>2026-10-04 20:46:44 +0200
committerJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>2026-10-13 19:00:35 +0200
commit3b8386ffc0c33b6b5a6a8e64e1487c1adec57dc9 (patch)
treeba9d356aac48de8dc94baf587c15453b0fa8dc0f /scripts/Makefile.thinlto
parent94a219eda3b5fb1d1753a5ecf28b171c8f308a27 (diff)
downloadlinux-3b8386ffc0c33b6b5a6a8e64e1487c1adec57dc9.tar.gz
linux-3b8386ffc0c33b6b5a6a8e64e1487c1adec57dc9.zip
sh: sh7785lcr: Register the PCA9564 controller as I2C bus 0
Before commit 44454baa7ca7 ("i2c: Dynamically assign adapter id if it wasn't explictly specified"), a negative ID was replaced by zero, and I2C bus zero was instantiated. Since that commit, a negative ID is passed verbatim, instantiating an I2C bus with a dynamic number. As SH boards still use i2c_register_board_info(0, ...) to register I2C devices, they rely on the I2C bus being bus zero. The SH7785LCR is the only SH board whose I2C adapter has a negative ID and its PCA9564 controller becomes i2c-1, causing registration of the R2025S/D RTC to fail and hwclock not detecting /dev/rtc0. Set the platform device ID to 0 so that the adapter is registered as bus zero again. Fixes: 44454baa7ca7 ("i2c: Dynamically assign adapter id if it wasn't explictly specified") Signed-off-by: Karl Mehltretter <kmehltretter@gmail.com> Assisted-by: LLM Tested-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> Reviewed-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions