i2c: brcmstb: Add support for BMIPS_GENERIC
Subsystems (3)
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
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
@@ -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
Wolfram Sang
AppliedRe: [v2 1/2] i2c: brcmstb: Make the driver buildable on BMIPS_GENERIC
Quoted 4 lines · Jaedon Shin
The BCM7xxx ARM and MIPS based SoCs share a similar I2C hardware block.
Signed-off-by Jaedon Shin <[email protected]>Acked-by Florian Fainelli <[email protected]>
Applied to for-next, thanks!
PATCH v2 2/2 i2c: brcmstb: Remove superfluous size check
In reply to Jaedon ShinThe 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
@@ -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
Wolfram Sang
AppliedRe: [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_NAKflag.Signed-off-by Jaedon Shin <[email protected]>
Applied to for-next, thanks!