1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter.git synced 2025-02-15 04:42:02 +00:00
openmptcprouter/6.6/target/linux/bcm27xx/patches-6.6/0968-fixup-overlays-i2c-mux-Add-base-parameter.patch

26 lines
723 B
Diff
Raw Normal View History

2024-04-05 18:55:33 +00:00
From ab2e08485d3018ad5625f4fcac39b8064fa59f36 Mon Sep 17 00:00:00 2001
From: Phil Elwell <phil@raspberrypi.com>
Date: Fri, 15 Mar 2024 15:09:08 +0000
Subject: [PATCH 0968/1002] fixup! overlays: i2c-mux: Add 'base' parameter
---
drivers/i2c/i2c-mux.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/i2c/i2c-mux.c b/drivers/i2c/i2c-mux.c
index 83d7d5c23368..6d724d64f97c 100644
--- a/drivers/i2c/i2c-mux.c
+++ b/drivers/i2c/i2c-mux.c
@@ -359,7 +359,7 @@ int i2c_mux_add_adapter(struct i2c_mux_core *muxc,
u32 reg;
of_property_read_u32(dev_node, "base-nr", &base_nr);
- if (!force_nr)
+ if (!force_nr && base_nr)
force_nr = base_nr + chan_id;
if (muxc->arbitrator)
--
2.44.0