Skip to content

Commit 0d56999

Browse files
wadelnnlguohan
authored andcommitted
Add ingrasys switch s9100 kernel patches (#19)
* Add ingrasys s9100 kernel config * Add PCA954x I2C force deselect on exit flag Signed-off-by: Wade He [email protected]
1 parent 73e99e9 commit 0d56999

File tree

3 files changed

+71
-0
lines changed

3 files changed

+71
-0
lines changed

patch/config-ingrasys-s9100.patch

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
Enable CONFIG_GPIO_PCA953X, CONFIG_I2C_GPIO
2+
3+
From: wadelnn <[email protected]>
4+
5+
---
6+
debian/build/build_amd64_none_amd64/.config | 4 ++--
7+
1 file changed, 2 insertions(+), 2 deletions(-)
8+
9+
diff --git a/debian/build/build_amd64_none_amd64/.config b/debian/build/build_amd64_none_amd64/.config
10+
index a57510b..6b6aea9 100644
11+
--- a/debian/build/build_amd64_none_amd64/.config
12+
+++ b/debian/build/build_amd64_none_amd64/.config
13+
@@ -3190,7 +3190,7 @@ CONFIG_I2C_SCMI=m
14+
CONFIG_I2C_DESIGNWARE_CORE=m
15+
CONFIG_I2C_DESIGNWARE_PLATFORM=m
16+
CONFIG_I2C_DESIGNWARE_PCI=m
17+
-# CONFIG_I2C_GPIO is not set
18+
+CONFIG_I2C_GPIO=m
19+
CONFIG_I2C_KEMPLD=m
20+
CONFIG_I2C_OCORES=m
21+
CONFIG_I2C_PCA_PLATFORM=m
22+
@@ -3304,7 +3304,7 @@ CONFIG_GPIO_SCH=m
23+
#
24+
# CONFIG_GPIO_MAX7300 is not set
25+
# CONFIG_GPIO_MAX732X is not set
26+
-# CONFIG_GPIO_PCA953X is not set
27+
+CONFIG_GPIO_PCA953X=m
28+
# CONFIG_GPIO_PCF857X is not set
29+
# CONFIG_GPIO_ADP5588 is not set
30+
31+
--
32+
2.1.4
33+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
Adding PCA9548 I2C MUX force deselect-on-exit flag.
2+
3+
From: wadelnn <[email protected]>
4+
5+
---
6+
drivers/i2c/muxes/i2c-mux-pca954x.c | 7 ++++++-
7+
1 file changed, 6 insertions(+), 1 deletion(-)
8+
9+
diff --git a/drivers/i2c/muxes/i2c-mux-pca954x.c b/drivers/i2c/muxes/i2c-mux-pca954x.c
10+
index 9bd4212..2ed7758 100644
11+
--- a/drivers/i2c/muxes/i2c-mux-pca954x.c
12+
+++ b/drivers/i2c/muxes/i2c-mux-pca954x.c
13+
@@ -116,6 +116,11 @@ static const struct i2c_device_id pca954x_id[] = {
14+
};
15+
MODULE_DEVICE_TABLE(i2c, pca954x_id);
16+
17+
+/* Force deselect-on-exit feature for PCA954X devices. Default is disabled. */
18+
+static unsigned int force_deselect_on_exit = 0;
19+
+module_param(force_deselect_on_exit, uint, S_IRUGO);
20+
+MODULE_PARM_DESC(force_deselect_on_exit, "Force deselect-on-exit feature for PCA954X devices. Default is disabled.");
21+
+
22+
/* Write to mux register. Don't use i2c_transfer()/i2c_smbus_xfer()
23+
for this as they will try to lock adapter a second time */
24+
static int pca954x_reg_write(struct i2c_adapter *adap,
25+
@@ -233,7 +238,7 @@ static int pca954x_probe(struct i2c_client *client,
26+
data->virt_adaps[num] =
27+
i2c_add_mux_adapter(adap, &client->dev, client,
28+
force, num, class, pca954x_select_chan,
29+
- (pdata && pdata->modes[num].deselect_on_exit)
30+
+ (pdata && pdata->modes[num].deselect_on_exit) || force_deselect_on_exit
31+
? pca954x_deselect_mux : NULL);
32+
33+
if (data->virt_adaps[num] == NULL) {
34+
--
35+
2.1.4
36+

patch/series

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ kernel-sched-core-fix-cgroup-fork-race.patch
33
config-dell-s6000.patch
44
config-mlnx-sn2700.patch
55
config-dell-z9100.patch
6+
config-ingrasys-s9100.patch
67
driver-at24-fix-odd-length-two-byte-access.patch
78
driver-hwmon-max6620.patch
89
driver-hwmon-max6620-fix-rpm-calc.patch
@@ -17,6 +18,7 @@ driver-hwmon-pmbus-ucd9200-mlnx.patch
1718
driver-arista-piix4-mux-patch.patch
1819
driver-arista-net-tg3-dma-mask-4g-sb800.patch
1920
driver-arista-net-tg3-access-regs-indirectly.patch
21+
driver-pca954x-i2c-mux-force-deselect-on-exit-flag.patch
2022
linux-3.19-mmc-sdhci-Add-a-quirk-for-AMD-SDHC-transfer-mode-reg.patch
2123
linux-3.19-mmc-sdhci-pci-enable-the-clear-transfer-mode-registe.patch
2224
linux-3.19-mmc-sdhci-pci-enable-sdhci-doesn-t-support-hs200-qui.patch

0 commit comments

Comments
 (0)