diff options
author | Arun P. Mohanan <arun.p.m@linux.intel.com> | 2022-04-27 07:46:47 +0300 |
---|---|---|
committer | Arun P. Mohanan <arun.p.m@linux.intel.com> | 2022-04-29 06:26:33 +0300 |
commit | ab95859fee776e58934d2b0cc1f4e93810e66508 (patch) | |
tree | 66f9efbabbbe44a894ffd907b55cbd8ad3d9f33f /include | |
parent | 4b3403cf5484c478319b5ba9f64e0e63e30698fa (diff) | |
download | linux-ab95859fee776e58934d2b0cc1f4e93810e66508.tar.xz |
i2c: mux: Add mux deselect support on timeout
Add support to deselect the mux when there is a timeout.
The mux idle_state settings will be configured on startup. In case of
MCTP it is MUX_IDLE_DISCONNECT. But when there is a timeout, mux ends
up in connected position and the devices behind the mux will appear under
different muxes connected to the same bus. This change fix the same.
Signed-off-by: Arun P. Mohanan <arun.p.m@linux.intel.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/i2c-mux.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/i2c-mux.h b/include/linux/i2c-mux.h index 43c40680d8c5..3d2586062ccc 100644 --- a/include/linux/i2c-mux.h +++ b/include/linux/i2c-mux.h @@ -29,6 +29,7 @@ struct i2c_mux_core { int (*deselect)(struct i2c_mux_core *, u32 chan_id); struct mutex hold_lock; /* mutex for channel holding */ + u32 holder_chan_id; struct delayed_work unhold_work; int num_adapters; |