Skip to contentSkip to conversation

i2c: brcmstb: Add support for BMIPS_GENERIC

PATCH Applied Jaedon Shin 2 participants 5 messages Jul 15, 2016

Subsystems (3)

v2 of 6 Applied Latest is v6 →

lore
Share & tools
lore
#0 lore raw

v2 cover i2c: brcmstb: Add support for BMIPS_GENERIC

Hi all,

This patch series adds support for Broadcom BCM7xxx MIPS based SoCs, and a fix.

Changes in v2:
* Rebase on lastest driver
* Remove already applied patches

Jaedon Shin (2):
i2c: brcmstb: Make the driver buildable on BMIPS_GENERIC
i2c: brcmstb: Remove superfluous size check

 drivers/i2c/busses/Kconfig       | 2 +-
 drivers/i2c/busses/i2c-brcmstb.c | 3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)
Signature · 1 line
2.9.0
#1 lore raw

PATCH v2 1/2 i2c: brcmstb: Make the driver buildable on BMIPS_GENERIC

The BCM7xxx ARM and MIPS based SoCs share a similar I2C hardware block.

---
 drivers/i2c/busses/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/i2c/busses/Kconfig +1 -1
index f167021b8c21..1fdb0c8b0697 100644
@@ -397,7 +397,7 @@ config I2C_BCM_KONA
 
 config I2C_BRCMSTB
 	tristate "BRCM Settop I2C controller"
-	depends on ARCH_BRCMSTB || COMPILE_TEST
+	depends on ARCH_BRCMSTB || BMIPS_GENERIC || COMPILE_TEST
 	default y
 	help
 	  If you say yes to this option, support will be included for the
Signature · 1 line
2.9.0
#3 lore raw

PATCH v2 2/2 i2c: brcmstb: Remove superfluous size check

In reply to Jaedon Shin

The driver transfer to a message with NOACK always in any size. If client (eg. EDID segment point message) needs NOACK condition, it can use I2C_M_IGNORE_NAK flag.

---
 drivers/i2c/busses/i2c-brcmstb.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/i2c/busses/i2c-brcmstb.c +1 -2
index 6a8cfc1344b2..3f5a4d71d3bf 100644
@@ -343,10 +343,9 @@ static int brcmstb_i2c_xfer_bsc_data(struct brcmstb_i2c_dev *dev,
 	struct bsc_regs *pi2creg = dev->bsc_regmap;
 	int no_ack = pmsg->flags & I2C_M_IGNORE_NAK;
 	int data_regsz = brcmstb_i2c_get_data_regsz(dev);
-	int xfersz = brcmstb_i2c_get_xfersz(dev);
 
 	/* see if the transaction needs to check NACK conditions */
-	if (no_ack || len <= xfersz) {
+	if (no_ack) {
 		cmd = (pmsg->flags & I2C_M_RD) ? CMD_RD_NOACK
 			: CMD_WR_NOACK;
 		pi2creg->ctlhi_reg |= BSC_CTLHI_REG_IGNORE_ACK_MASK;
Signature · 1 line
2.9.0
Applied
#4 lore raw

Re: [v2 2/2] i2c: brcmstb: Remove superfluous size check

Quoted 5 lines · Jaedon Shin

The driver transfer to a message with NOACK always in any size. If client (eg. EDID segment point message) needs NOACK condition, it can use I2C_M_IGNORE_NAK flag.

Applied to for-next, thanks!