Skip to content

Commit b90e90f

Browse files
committed
Merge branch 'i2c/for-current' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux
Pull i2c fixes from Wolfram Sang: "This is a bit larger than usual at rc4 time. The reason is due to Lee's work of fixing newly reported build warnings. The rest is fixes as usual" * 'i2c/for-current' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux: (22 commits) MAINTAINERS: adjust to removing i2c designware platform data i2c: s3c2410: fix possible NULL pointer deref on read message after write i2c: mediatek: Disable i2c start_en and clear intr_stat brfore reset i2c: i801: Don't generate an interrupt on bus reset i2c: mpc: implement erratum A-004447 workaround powerpc/fsl: set fsl,i2c-erratum-a004447 flag for P1010 i2c controllers powerpc/fsl: set fsl,i2c-erratum-a004447 flag for P2041 i2c controllers dt-bindings: i2c: mpc: Add fsl,i2c-erratum-a004447 flag i2c: busses: i2c-stm32f4: Remove incorrectly placed ' ' from function name i2c: busses: i2c-st: Fix copy/paste function misnaming issues i2c: busses: i2c-pnx: Provide descriptions for 'alg_data' data structure i2c: busses: i2c-ocores: Place the expected function names into the documentation headers i2c: busses: i2c-eg20t: Fix 'bad line' issue and provide description for 'msgs' param i2c: busses: i2c-designware-master: Fix misnaming of 'i2c_dw_init_master()' i2c: busses: i2c-cadence: Fix incorrectly documented 'enum cdns_i2c_slave_mode' i2c: busses: i2c-ali1563: File headers are not good candidates for kernel-doc i2c: muxes: i2c-arb-gpio-challenge: Demote non-conformant kernel-doc headers i2c: busses: i2c-nomadik: Fix formatting issue pertaining to 'timeout' i2c: sh_mobile: Use new clock calculation formulas for RZ/G2E i2c: I2C_HISI should depend on ACPI ...
2 parents 9a76c0e + 8aa0ae4 commit b90e90f

22 files changed

+142
-29
lines changed

Documentation/devicetree/bindings/i2c/i2c-mpc.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,13 @@ properties:
4646
description: |
4747
I2C bus timeout in microseconds
4848
49+
fsl,i2c-erratum-a004447:
50+
$ref: /schemas/types.yaml#/definitions/flag
51+
description: |
52+
Indicates the presence of QorIQ erratum A-004447, which
53+
says that the standard i2c recovery scheme mechanism does
54+
not work and an alternate implementation is needed.
55+
4956
required:
5057
- compatible
5158
- reg

MAINTAINERS

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17678,7 +17678,6 @@ R: Mika Westerberg <[email protected]>
1767817678
1767917679
S: Maintained
1768017680
F: drivers/i2c/busses/i2c-designware-*
17681-
F: include/linux/platform_data/i2c-designware.h
1768217681

1768317682
SYNOPSYS DESIGNWARE MMC/SD/SDIO DRIVER
1768417683
M: Jaehoon Chung <[email protected]>

arch/powerpc/boot/dts/fsl/p1010si-post.dtsi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,15 @@
122122
};
123123

124124
/include/ "pq3-i2c-0.dtsi"
125+
i2c@3000 {
126+
fsl,i2c-erratum-a004447;
127+
};
128+
125129
/include/ "pq3-i2c-1.dtsi"
130+
i2c@3100 {
131+
fsl,i2c-erratum-a004447;
132+
};
133+
126134
/include/ "pq3-duart-0.dtsi"
127135
/include/ "pq3-espi-0.dtsi"
128136
spi0: spi@7000 {

arch/powerpc/boot/dts/fsl/p2041si-post.dtsi

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,23 @@
371371
};
372372

373373
/include/ "qoriq-i2c-0.dtsi"
374+
i2c@118000 {
375+
fsl,i2c-erratum-a004447;
376+
};
377+
378+
i2c@118100 {
379+
fsl,i2c-erratum-a004447;
380+
};
381+
374382
/include/ "qoriq-i2c-1.dtsi"
383+
i2c@119000 {
384+
fsl,i2c-erratum-a004447;
385+
};
386+
387+
i2c@119100 {
388+
fsl,i2c-erratum-a004447;
389+
};
390+
375391
/include/ "qoriq-duart-0.dtsi"
376392
/include/ "qoriq-duart-1.dtsi"
377393
/include/ "qoriq-gpio-0.dtsi"

drivers/i2c/busses/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ config I2C_HIGHLANDER
647647

648648
config I2C_HISI
649649
tristate "HiSilicon I2C controller"
650-
depends on ARM64 || COMPILE_TEST
650+
depends on (ARM64 && ACPI) || COMPILE_TEST
651651
help
652652
Say Y here if you want to have Hisilicon I2C controller support
653653
available on the Kunpeng Server.

drivers/i2c/busses/i2c-ali1563.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// SPDX-License-Identifier: GPL-2.0-only
2-
/**
2+
/*
33
* i2c-ali1563.c - i2c driver for the ALi 1563 Southbridge
44
*
55
* Copyright (C) 2004 Patrick Mochel

drivers/i2c/busses/i2c-cadence.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ enum cdns_i2c_mode {
144144
};
145145

146146
/**
147-
* enum cdns_i2c_slave_mode - Slave state when I2C is operating in slave mode
147+
* enum cdns_i2c_slave_state - Slave state when I2C is operating in slave mode
148148
*
149149
* @CDNS_I2C_SLAVE_STATE_IDLE: I2C slave idle
150150
* @CDNS_I2C_SLAVE_STATE_SEND: I2C slave sending data to master

drivers/i2c/busses/i2c-designware-master.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ static int i2c_dw_set_timings_master(struct dw_i2c_dev *dev)
165165
}
166166

167167
/**
168-
* i2c_dw_init() - Initialize the designware I2C master hardware
168+
* i2c_dw_init_master() - Initialize the designware I2C master hardware
169169
* @dev: device private data
170170
*
171171
* This functions configures and enables the I2C master.

drivers/i2c/busses/i2c-eg20t.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ struct i2c_algo_pch_data {
148148

149149
/**
150150
* struct adapter_info - This structure holds the adapter information for the
151-
PCH i2c controller
151+
* PCH i2c controller
152152
* @pch_data: stores a list of i2c_algo_pch_data
153153
* @pch_i2c_suspended: specifies whether the system is suspended or not
154154
* perhaps with more lines and words.
@@ -358,6 +358,7 @@ static void pch_i2c_repstart(struct i2c_algo_pch_data *adap)
358358
/**
359359
* pch_i2c_writebytes() - write data to I2C bus in normal mode
360360
* @i2c_adap: Pointer to the struct i2c_adapter.
361+
* @msgs: Pointer to the i2c message structure.
361362
* @last: specifies whether last message or not.
362363
* In the case of compound mode it will be 1 for last message,
363364
* otherwise 0.

drivers/i2c/busses/i2c-i801.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -395,11 +395,9 @@ static int i801_check_post(struct i801_priv *priv, int status)
395395
dev_err(&priv->pci_dev->dev, "Transaction timeout\n");
396396
/* try to stop the current command */
397397
dev_dbg(&priv->pci_dev->dev, "Terminating the current operation\n");
398-
outb_p(inb_p(SMBHSTCNT(priv)) | SMBHSTCNT_KILL,
399-
SMBHSTCNT(priv));
398+
outb_p(SMBHSTCNT_KILL, SMBHSTCNT(priv));
400399
usleep_range(1000, 2000);
401-
outb_p(inb_p(SMBHSTCNT(priv)) & (~SMBHSTCNT_KILL),
402-
SMBHSTCNT(priv));
400+
outb_p(0, SMBHSTCNT(priv));
403401

404402
/* Check if it worked */
405403
status = inb_p(SMBHSTSTS(priv));

0 commit comments

Comments
 (0)