[PATCH net] net: stmmac: dma channel control register need to be init first

2019-05-20 Thread Weifeng Voon
es: 47f2a9ce527a ("net: stmmac: dma channel init prepared for multiple queues") Reviewed-by: Zhang, Baoli Signed-off-by: Ong Boon Leong Signed-off-by: Weifeng Voon diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c index

[PATCH net] net: stmmac: fix ethtool flow control not able to get/set

2019-05-20 Thread Weifeng Voon
From: "Tan, Tee Min" Currently ethtool was not able to get/set the flow control due to a missing "!". It will always return -EOPNOTSUPP even the device is flow control supported. This patch fixes the condition check for ethtool flow control get/set function for ETHTOOL_LINK_MODE_Asym_Pause_BIT.

[PATCH 5/7] net: stmmac: add xpcs function hooks into main driver and ethtool

2019-04-24 Thread Weifeng Voon
From: Ong Boon Leong With xPCS functions now ready, we add them into the main driver and ethtool logics. To differentiate from EQoS MAC PCS and DWC Ethernet xPCS, we introduce 'has_xpcs' in platform data as a mean to indicate whether GBE controller includes xPCS or not. To support platform-speci

[PATCH 3/7] net: stmmac: dma channel control register need to be init first

2019-04-24 Thread Weifeng Voon
iewed-by: Zhang, Baoli Signed-off-by: Weifeng Voon Signed-off-by: Ong Boon Leong --- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmm

[PATCH v3] i2c: designware: Use transfer timeout from ioctl I2C_TIMEOUT

2016-06-16 Thread Weifeng Voon
This allows applications to set the transfer timeout in 10ms increments via ioctl I2C_TIMEOUT. Signed-off-by: Weifeng Voon --- changelog v2: * No code change, just change to a more suitable title changelog v3: * Move changelog out of commit log drivers/i2c/busses/i2c-designware-core.c | 2

[PATCH v2] i2c: designware: Use transfer timeout from ioctl I2C_TIMEOUT

2016-06-15 Thread Weifeng Voon
This allows applications to set the transfer timeout in 10ms increments via ioctl I2C_TIMEOUT. changelog v2: * No code change, just change to a more suitable title Signed-off-by: Weifeng Voon --- drivers/i2c/busses/i2c-designware-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH] i2c: designware: Enable ioctl I2C_TIMEOUT

2016-06-02 Thread Weifeng Voon
This allows applications to set the transfer timeout in 10ms increments via ioctl I2C_TIMEOUT. Signed-off-by: Weifeng Voon --- drivers/i2c/busses/i2c-designware-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-designware-core.c b/drivers/i2c

[PATCH 3/5] i2c: designware: Enable fast mode plus

2016-05-26 Thread Weifeng Voon
This patch enabled fast mode plus. The fast mode plus and fast speed share the same HCNT and LCNT register. So, the fast mode plus will only run when the HCNT and LCNT value is provided. Else, it will run at fast speed as default. Signed-off-by: Weifeng Voon --- drivers/i2c/busses/i2c

[PATCH 1/5] i2c: designware: Move clk_freq into struct dw_i2c_dev

2016-05-26 Thread Weifeng Voon
: Weifeng Voon --- drivers/i2c/busses/i2c-designware-core.h| 2 ++ drivers/i2c/busses/i2c-designware-platdrv.c | 12 ++-- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/drivers/i2c/busses/i2c-designware-core.h b/drivers/i2c/busses/i2c-designware-core.h index cd409e7

[PATCH 4/5] i2c: designware: set the common config before the if else

2016-05-26 Thread Weifeng Voon
DW_IC_CON_MASTER, DW_IC_CON_SLAVE_DISABLE and DW_IC_CON_RESTART_EN are common config that need to be set for i2c designware master. So, configure it first without having to repeat inside the if else. Signed-off-by: Weifeng Voon --- drivers/i2c/busses/i2c-designware-platdrv.c | 10 ++ 1

[PATCH 5/5] i2c: designware: Enable high speed mode

2016-05-26 Thread Weifeng Voon
This patch enabled high speed mode. High speed mode can be turn on by setting the clk_freq to 340. High speed HCNT and LCNT are needed as there is no default value provided. Signed-off-by: Weifeng Voon --- drivers/i2c/busses/i2c-designware-core.c| 26 +- drivers

[PATCH 0/5] i2c: designware: Enable fast mode plus and high speed

2016-05-26 Thread Weifeng Voon
Enabled fast mode plus and high speed which supported by APL SoC. Weifeng Voon (5): i2c: designware: Move clk_freq into struct dw_i2c_dev i2c: designware: get fast plus and high speed *CNT configuration i2c: designware: Enable fast mode plus i2c: designware: set the common config before

[PATCH 2/5] i2c: designware: get fast plus and high speed *CNT configuration

2016-05-26 Thread Weifeng Voon
I2C designware controller can run at fast mode plus and high speed. This patch adds the capability to get the HCNT, LCNT configuration via FPCN (fast plus) and HSCN (high speed) ACPI method. Signed-off-by: Weifeng Voon --- drivers/i2c/busses/i2c-designware-core.h| 8 drivers/i2c