Re: [PATCH v2] clocksource/drivers/fttmr010: fix invalid interrupt register access

2018-11-05 Thread Tao Ren
On 11/5/18, 10:51 AM, "Daniel Lezcano" wrote: > Oh right, sorry. Should it go to stable also ? Is there a Fixes tag it can > apply ? Personally I don't think it needs to go to stable, because I don't see any functional failures caused by this invalid register access. Thanks, Tao Ren

Re: [PATCH v2] clocksource/drivers/fttmr010: fix invalid interrupt register access

2018-11-05 Thread Tao Ren
On 10/7/18, 2:03 PM, "Linus Walleij" wrote: > > On Wed, Oct 3, 2018 at 11:54 PM Tao Ren wrote: > >> TIMER_INTR_MASK register (Base Address of Timer + 0x38) is not designed >> for masking interrupts on ast2500 chips, and it's not even listed in >> ast2400

[PATCH] watchdog: core: suppress "watchdog did not stop" message

2018-11-15 Thread Tao Ren
> /dev/watchdog" command. Given a critical message usually indicates a serious hardware/software failure, this message could easily lead to confusion, so it's better to just delete the message. Signed-off-by: Tao Ren --- drivers/watchdog/watchdog_dev.c | 1 - 1 file changed, 1 deletion(-

Re: [PATCH] watchdog: core: suppress "watchdog did not stop" message

2018-11-15 Thread Tao Ren
le, I also found posts asking why the message is printed at reboot, and that's why I feel it's confusing. Anyways, please ignore the patch since it's necessary. Thanks, Tao Ren

[PATCH v2] clocksource/drivers/fttmr010: fix invalid interrupt register access

2018-10-03 Thread Tao Ren
ed so the code is more readble. Signed-off-by: Tao Ren --- Changes in v2: - "count_down" is renamed to "is_aspeed" in "fttmr010" structure. - more comments are added to make the code more readable. Tested the patch on: - Facebook Backpack CMM AST2500 BMC.

Re: [PATCH] clocksource/drivers/fttmr010: fix invalid interrupt register access

2018-10-03 Thread Tao Ren
On 10/3/18, 5:28 AM, "Daniel Lezcano" wrote: > the branch tip:timers/urgent will be merged in tip:/timers/core, so the fixes > will be propagated to the master branch. > Base your change in top of tip:timers/urgent, the merge will happen soon and > both fixes will end up in tip:timers/core.

Re: [PATCH v2] clocksource/drivers/fttmr010: fix invalid interrupt register access

2018-10-09 Thread Tao Ren
g to do so. >> >> Besides, "count_down" is renamed to "is_aspeed" in "fttmr010" structure, >> and more comments are added so the code is more readble. >> >> Signed-off-by: Tao Ren >> --- >> Changes in v2: >> - "count_dow

Re: [PATCH] clocksource/drivers/fttmr010: fix invalid interrupt register access

2018-10-02 Thread Tao Ren
The Aspeed variant counts downward */ > /* The Aspeed variant does not have a match interrupt */ > in the code snippets so we see what is going on. Make sense. Let me add more comments. Thanks, Tao Ren

Re: [PATCH] clocksource/drivers/fttmr010: fix invalid interrupt register access

2018-10-03 Thread Tao Ren
rate this patch on top of the first patch or on top of the current "timers/core"? Which one would be easier for you (or Daniel/Thomas)? Sorry I'm pretty new to the community.. Thanks, Tao Ren

[PATCH] clocksource/drivers/fttmr010: fix invalid interrupt register access

2018-10-01 Thread Tao Ren
) is not interrupt status register on ast2400 and ast2500 chips. Although there is no side effect to reset the register in fttmr010_common_init(), it's just misleading to do so. Signed-off-by: Tao Ren --- drivers/clocksource/timer-fttmr010.c | 27 ++- 1 file changed, 14 insertions

[PATCH] clocksource/drivers/fttmr010: fix set_next_event handler

2018-09-19 Thread Tao Ren
takes averagely 240 microseconds to return under the same workload level. Signed-off-by: Tao Ren --- drivers/clocksource/timer-fttmr010.c | 18 +++--- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/drivers/clocksource/timer-fttmr010.c b/drivers/clocksource/timer-fttm

Re: [PATCH] clocksource/drivers/fttmr010: fix set_next_event handler

2018-09-20 Thread Tao Ren
with that. I agree. Besides being more intuitive, timer overflow interrupt (when overflows) could also be avoided by resetting the counter. Thanks, Tao Ren

Re: [PATCH] clocksource/drivers/fttmr010: fix set_next_event handler

2018-09-21 Thread Tao Ren
delay introduced by nanosleep()), but what would be the preferred way to share it? Like a format-patch? Or maybe I should refine the test and send to openbmc for review? Thanks, Tao Ren

Re: [PATCH] clocksource/drivers/fttmr010: fix set_next_event handler

2018-09-21 Thread Tao Ren
00 microseconds stably. > > Tested-by: Lei YU Thank you Lei for the testing! Thanks, Tao Ren

Re: [PATCH] clocksource/drivers/fttmr010: fix set_next_event handler

2018-09-24 Thread Tao Ren
On 9/24/18, 4:20 PM, "Joel Stanley" wrote: > Whatever method is easiest for you. A patch file or a tarball is fine. > I will then add it to the set of tests I run when testing aspeed > kernels. No problem, Joel. I will share the test code with you offline. Thanks, Tao Ren

Re: [PATCH v2] clocksource/drivers/fttmr010: fix invalid interrupt register access

2018-12-07 Thread Tao Ren
On 12/6/18, 11:04 PM, "Daniel Lezcano" wrote: > > On 07/12/2018 02:13, Tao Ren wrote: >> Not sure if I missed any emails from you, but looks like the patch is not >> included in your tree? Are we planning to include the patch in 4.21 merge >> window? > &g

Re: [PATCH v2] clocksource/drivers/fttmr010: fix invalid interrupt register access

2018-12-06 Thread Tao Ren
On 11/5/18, 11:00 AM, "Tao Ren" wrote: > On 11/5/18, 10:51 AM, "Daniel Lezcano" wrote: >> Oh right, sorry. Should it go to stable also ? Is there a Fixes tag it can >> apply ? >> > Personally I don't think it needs to go to stable, because I

Re: [PATCH] watchdog: core: suppress "watchdog did not stop" message

2018-11-26 Thread Tao Ren
/systemd is fine. Perhaps I need to look for a better/official way to manage the watchdog device.. BTW, I will be travelling abroad in the new few days and may not be able to reply emails timely. Thank you again for jumping in. Best regards, Tao Ren

Re: [PATCH 1/3] configs: aspeed: enable UHCI driver in defconfig

2020-09-30 Thread Tao Ren
On Wed, Sep 30, 2020 at 12:08:21PM +0800, Ryan Chen wrote: > Enable UHCI driver in aspeed_g5_defconfig. > > Signed-off-by: Ryan Chen Reviewed-by: Tao Ren

Re: [PATCH 2/3] usb: host: add uhci compatible support for ast2600-uhci

2020-09-30 Thread Tao Ren
On Wed, Sep 30, 2020 at 12:08:22PM +0800, Ryan Chen wrote: > Add support for AST2600 SOC UHCI driver. > > Signed-off-by: Ryan Chen Reviewed-by: Tao Ren

Re: [PATCH 3/3] ARM: dts: add ehci uhci enable in evb dts

2020-09-30 Thread Tao Ren
On Wed, Sep 30, 2020 at 12:08:23PM +0800, Ryan Chen wrote: > Add EHCI UHCI enable build in aspeed-ast2600-evb.dts > > Signed-off-by: Ryan Chen Reviewed-by: Tao Ren

Re: [PATCH v2 3/5] i2c: aspeed: Mask IRQ status to relevant bits

2020-09-08 Thread Tao Ren
by: Eddie James Reviewed-by: Tao Ren > --- > drivers/i2c/busses/i2c-aspeed.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/i2c/busses/i2c-aspeed.c b/drivers/i2c/busses/i2c-aspeed.c > index 31268074c422..2a388911038a 100644 > --- a/drivers/i2c/busses/i2c-asp

Re: [PATCH] usb: gadget: aspeed: fixup vhub port irq handling

2020-08-31 Thread Tao Ren
On Mon, Aug 31, 2020 at 12:54:57PM +0300, Felipe Balbi wrote: > > Hi, > > Tao Ren writes: > > On Mon, Aug 17, 2020 at 04:49:32PM +0300, Felipe Balbi wrote: > >> > >> Hi, > >> > >> rentao.b...@gmail.com writes: > >> >

Re: [PATCH 0/4] ARM: dts: aspeed: Add Facebook Galaxy100 BMC

2020-11-11 Thread Tao Ren
On Wed, Nov 11, 2020 at 11:34:10PM +, Joel Stanley wrote: > On Wed, 11 Nov 2020 at 23:23, wrote: > > > > From: Tao Ren > > > > The patch series adds the initial version of device tree for Facebook > > Galaxy100 (AST2400) BMC. > > > > Patch #1 a

Re: [PATCH 0/4] ARM: dts: aspeed: Add Facebook Galaxy100 BMC

2020-11-11 Thread Tao Ren
On Wed, Nov 11, 2020 at 09:18:28PM -0600, Patrick Williams wrote: > On Wed, Nov 11, 2020 at 11:34:10PM +, Joel Stanley wrote: > > On Wed, 11 Nov 2020 at 23:23, wrote: > > > > > > From: Tao Ren > > > > > > The patch series adds the initial versio

Re: [PATCH 0/4] ARM: dts: aspeed: Add Facebook Galaxy100 BMC

2020-11-12 Thread Tao Ren
On Thu, Nov 12, 2020 at 05:49:30AM +, Joel Stanley wrote: > On Thu, 12 Nov 2020 at 03:18, Patrick Williams wrote: > > > > On Wed, Nov 11, 2020 at 11:34:10PM +, Joel Stanley wrote: > > > On Wed, 11 Nov 2020 at 23:23, wrote: > > > > > > > >

Re: [PATCH v2 0/2] hwmon: (max127) Add Maxim MAX127 hardware monitoring

2020-11-18 Thread Tao Ren
On Thu, Nov 19, 2020 at 12:27:19AM +0100, Andrew Lunn wrote: > On Wed, Nov 18, 2020 at 03:09:27PM -0800, rentao.b...@gmail.com wrote: > > From: Tao Ren > > > > The patch series adds hardware monitoring driver for the Maxim MAX127 > > chip. > > Hi Tao > &g

Re: [PATCH v2 0/2] hwmon: (max127) Add Maxim MAX127 hardware monitoring

2020-11-18 Thread Tao Ren
On Wed, Nov 18, 2020 at 05:26:53PM -0800, Guenter Roeck wrote: > On Wed, Nov 18, 2020 at 05:01:19PM -0800, Guenter Roeck wrote: > > On Wed, Nov 18, 2020 at 03:42:53PM -0800, Tao Ren wrote: > > > On Thu, Nov 19, 2020 at 12:27:19AM +0100, Andrew Lunn wrote: > > > > On W

Re: [PATCH 1/2] hwmon: (max127) Add Maxim MAX127 hardware monitoring driver

2020-11-17 Thread Tao Ren
Hi Guenter, Thanks for pointing out these problems. I'm working on the comments and will send out v2 soon. Cheers, Tao On Mon, Nov 16, 2020 at 09:13:52PM -0800, Guenter Roeck wrote: > On Mon, Nov 16, 2020 at 05:09:43PM -0800, rentao.b...@gmail.com wrote: > > From: Tao Ren >

Re: [PATCH] ARM: dts: aspeed: minipack: Fixup I2C tree

2020-11-16 Thread Tao Ren
On Mon, Nov 16, 2020 at 03:33:45AM +, Joel Stanley wrote: > On Tue, 10 Nov 2020 at 07:24, wrote: > > > > From: Tao Ren > > > > Create all the i2c switches in device tree and use aliases to assign > > child channels with consistent bus numbers. > >

Re: [PATCH v3 1/2] hwmon: (max127) Add Maxim MAX127 hardware monitoring driver

2020-11-22 Thread Tao Ren
On Sun, Nov 22, 2020 at 10:33:42AM -0800, Guenter Roeck wrote: > On Thu, Nov 19, 2020 at 09:53:23AM -0800, rentao.b...@gmail.com wrote: > > From: Tao Ren > > > > Add hardware monitoring driver for the Maxim MAX127 chip. > > > > MAX127 min/max range handling code

Re: [PATCH v3 1/2] hwmon: (max127) Add Maxim MAX127 hardware monitoring driver

2020-11-23 Thread Tao Ren
On Mon, Nov 23, 2020 at 05:16:41AM -0800, Guenter Roeck wrote: > On Sun, Nov 22, 2020 at 11:54:49PM -0800, Tao Ren wrote: > > On Sun, Nov 22, 2020 at 10:33:42AM -0800, Guenter Roeck wrote: > > > On Thu, Nov 19, 2020 at 09:53:23AM -0800, rentao.b...@gmail.com wrote: >

Re: [PATCH v4 1/2] hwmon: (max127) Add Maxim MAX127 hardware monitoring driver

2020-11-23 Thread Tao Ren
On Mon, Nov 23, 2020 at 05:18:32AM -0800, Guenter Roeck wrote: > On Sun, Nov 22, 2020 at 11:45:31PM -0800, rentao.b...@gmail.com wrote: > > From: Tao Ren > > > > Add hardware monitoring driver for the Maxim MAX127 chip. > > > > MAX127 min/max range handling code

Re: [PATCH net-next 2/2] net: phy: broadcom: add 1000Base-X support for BCM54616S

2019-07-29 Thread Tao Ren
On 7/29/19 6:32 PM, Vladimir Oltean wrote: > Hi Tao, > > On Tue, 30 Jul 2019 at 03:31, Tao Ren wrote: >> >> Configure the BCM54616S for 1000Base-X mode when "brcm-phy-mode-1000bx" >> is set in device tree. This is needed when the PHY is used f

Re: [PATCH net-next 1/2] net: phy: broadcom: set features explicitly for BCM54616S

2019-07-29 Thread Tao Ren
On 7/29/19 8:35 PM, Andrew Lunn wrote: > On Mon, Jul 29, 2019 at 05:25:32PM -0700, Tao Ren wrote: >> BCM54616S feature "PHY_GBIT_FEATURES" was removed by commit dcdecdcfe1fc >> ("net: phy: switch drivers to use dynamic feature detection"). As dynamic >

Re: [PATCH net-next 2/2] net: phy: broadcom: add 1000Base-X support for BCM54616S

2019-07-30 Thread Tao Ren
On 7/30/19 3:15 AM, Vladimir Oltean wrote: > On Tue, 30 Jul 2019 at 07:52, Tao Ren wrote: >> >> On 7/29/19 6:32 PM, Vladimir Oltean wrote: >>> Hi Tao, >>> >>> On Tue, 30 Jul 2019 at 03:31, Tao Ren wrote: >>>> >>>> Conf

Re: [PATCH net-next 1/2] net: phy: broadcom: set features explicitly for BCM54616S

2019-07-30 Thread Tao Ren
On 7/29/19 11:00 PM, Heiner Kallweit wrote: > On 30.07.2019 07:05, Tao Ren wrote: >> On 7/29/19 8:35 PM, Andrew Lunn wrote: >>> On Mon, Jul 29, 2019 at 05:25:32PM -0700, Tao Ren wrote: >>>> BCM54616S feature "PHY_GBIT_FEATURES" was removed by commit dcde

Re: [PATCH net-next 2/2] net: phy: broadcom: add 1000Base-X support for BCM54616S

2019-07-30 Thread Tao Ren
On 7/30/19 6:17 AM, Andrew Lunn wrote: >> Again, I don't think Linux has generic support for overwriting (or >> even describing) the operating mode of a PHY, although maybe that's a >> direction we would want to push the discussion towards. RGMII to >> copper, RGMII to fiber, SGMII to copper,

Re: [PATCH net-next 2/2] net: phy: broadcom: add 1000Base-X support for BCM54616S

2019-07-30 Thread Tao Ren
On 7/30/19 6:36 PM, Andrew Lunn wrote: >> The INTF_SEL pins report correct mode (RGMII-Fiber) on my machine, >> but there are 2 "sub-modes" (1000Base-X and 100Base-FX) and I >> couldn't find a proper/safe way to auto-detect which "sub-mode" is >> active. The datasheet just describes instructions

Re: [PATCH net-next 2/2] net: phy: broadcom: add 1000Base-X support for BCM54616S

2019-07-30 Thread Tao Ren
On 7/30/19 7:34 PM, Andrew Lunn wrote: >> Hi Andrew, >> >> The BCM54616S PHY on my machine is connected to a BCM5396 switch chip over >> backplane (1000Base-KX). > > Ah, that is different. So the board is using it for RGMII to 1000Base-KX? > > phy-mode is about the MAC-PHY link. So in this case

Re: [PATCH net-next 1/2] net: phy: broadcom: set features explicitly for BCM54616S

2019-07-31 Thread Tao Ren
On 7/30/19 10:53 PM, Heiner Kallweit wrote: > On 31.07.2019 02:12, Tao Ren wrote: >> On 7/29/19 11:00 PM, Heiner Kallweit wrote: >>> On 30.07.2019 07:05, Tao Ren wrote: >>>> On 7/29/19 8:35 PM, Andrew Lunn wrote: >>>>> On Mon, Jul 29, 2019 at 05:2

Re: [PATCH net-next v7 2/3] net: phy: add support for clause 37 auto-negotiation

2019-08-19 Thread Tao Ren
On 8/11/19 4:40 PM, Tao Ren wrote: > From: Heiner Kallweit > > This patch adds support for clause 37 1000Base-X auto-negotiation. > > Signed-off-by: Heiner Kallweit > Signed-off-by: Tao Ren A kind reminder: could someone help to review the patch when you have bandwid

Re: [PATCH net-next v7 2/3] net: phy: add support for clause 37 auto-negotiation

2019-08-19 Thread Tao Ren
On 8/19/19 4:15 PM, René van Dorst wrote: > Hi Tao, > > Quoting Tao Ren : > >> On 8/11/19 4:40 PM, Tao Ren wrote: >>> From: Heiner Kallweit >>> >>> This patch adds support for clause 37 1000Base-X auto-negotiation. >>> >>> Signed-of

[PATCH net-next v4 1/2] net: phy: modify assignment to OR for dev_flags in phy_attach_direct

2019-08-06 Thread Tao Ren
Modify the assignment to OR when dealing with phydev->dev_flags in phy_attach_direct function, and this is to make sure dev_flags set in driver's probe callback won't be lost. Suggested-by: Andrew Lunn CC: Heiner Kallweit CC: Vladimir Oltean Signed-off-by: Tao Ren --- Changes: - noth

[PATCH net-next v4 2/2] net: phy: broadcom: add 1000Base-X support for BCM54616S

2019-08-06 Thread Tao Ren
ion in 1000Base-X mode. - read_status: BCM54616S and BCM5482 PHY share the same read_status callback which manually set link speed and duplex mode in 1000Base-X mode. Signed-off-by: Tao Ren --- Changes in v4: - add bcm54616s_config_aneg_1000bx() to deal with auto negotiation in 1000Base-X m

Re: [PATCH net-next v4 2/2] net: phy: broadcom: add 1000Base-X support for BCM54616S

2019-08-06 Thread Tao Ren
Hi Andrew / Heiner / Vladimir, On 8/6/19 2:09 PM, Tao Ren wrote: > The BCM54616S PHY cannot work properly in RGMII->1000Base-KX mode (for > example, on Facebook CMM BMC platform), mainly because genphy functions > are designed for copper links, and 1000Base-X (clause 37) auto negotia

Re: [PATCH net-next v4 2/2] net: phy: broadcom: add 1000Base-X support for BCM54616S

2019-08-06 Thread Tao Ren
On 8/6/19 3:00 PM, Heiner Kallweit wrote: > On 06.08.2019 23:09, Tao Ren wrote: >> The BCM54616S PHY cannot work properly in RGMII->1000Base-KX mode (for >> example, on Facebook CMM BMC platform), mainly because genphy functions >> are designed for copper links, and 100

[PATCH net-next] net/ncsi: allow to customize BMC MAC Address offset

2019-08-06 Thread Tao Ren
address ("BaseMAC + 1" is reserved for Host use). This patch adds NET_NCSI_MC_MAC_OFFSET config option to customize offset between NIC's Base MAC address and BMC's MAC address. Its default value is set to 1 to avoid breaking existing users. Signed-off-by: Tao Ren --- net/ncsi/Kconf

Re: [PATCH net-next v4 2/2] net: phy: broadcom: add 1000Base-X support for BCM54616S

2019-08-07 Thread Tao Ren
Hi Heiner, On 8/7/19 12:18 PM, Heiner Kallweit wrote: > On 06.08.2019 23:42, Tao Ren wrote: >> Hi Andrew / Heiner / Vladimir, >> >> On 8/6/19 2:09 PM, Tao Ren wrote: >>> The BCM54616S PHY cannot work properly in RGMII->1000Base-KX mode (for >>> exam

Re: [PATCH net-next] net/ncsi: allow to customize BMC MAC Address offset

2019-08-07 Thread Tao Ren
On 8/7/19 11:41 AM, Andrew Lunn wrote: > On Wed, Aug 07, 2019 at 11:25:18AM -0700, Jakub Kicinski wrote: >> On Tue, 6 Aug 2019 17:21:18 -0700, Tao Ren wrote: >>> Currently BMC's MAC address is calculated by adding 1 to NCSI NIC's base >>> MAC address when CONFIG_

Re: [PATCH net-next] net/ncsi: allow to customize BMC MAC Address offset

2019-08-07 Thread Tao Ren
On 8/7/19 10:36 AM, Vijay Khemka wrote: > Lgtm except one small comment below. > > On 8/6/19, 5:22 PM, "openbmc on behalf of Tao Ren" > tao...@fb.com> wrote: > > Currently BMC's MAC address is calculated by adding 1 to NCSI NIC's base > MAC addres

Re: [PATCH net-next] net/ncsi: allow to customize BMC MAC Address offset

2019-08-08 Thread Tao Ren
Hi Andrew, On 8/8/19 6:32 AM, Andrew Lunn wrote: >> Let me prepare patch v2 using device tree. I'm not sure if standard >> "mac-address" fits this situation because all we need is an offset >> (integer) and BMC MAC is calculated by adding the offset to NIC's >> MAC address. Anyways, let me work

Re: [PATCH net-next v4 2/2] net: phy: broadcom: add 1000Base-X support for BCM54616S

2019-08-08 Thread Tao Ren
Hi Heiner, On 8/7/19 9:24 PM, Tao Ren wrote: > Hi Heiner, > > On 8/7/19 12:18 PM, Heiner Kallweit wrote: >> On 06.08.2019 23:42, Tao Ren wrote: >>> Hi Andrew / Heiner / Vladimir, >>> >>> On 8/6/19 2:09 PM, Tao Ren wrote: >>>> The BCM5461

Re: [PATCH net-next] net/ncsi: allow to customize BMC MAC Address offset

2019-08-08 Thread Tao Ren
On 8/8/19 2:16 PM, Andrew Lunn wrote: > On Thu, Aug 08, 2019 at 07:02:54PM +0000, Tao Ren wrote: >> Hi Andrew, >> >> On 8/8/19 6:32 AM, Andrew Lunn wrote: >>>> Let me prepare patch v2 using device tree. I'm not sure if standard >>>> "ma

Re: [PATCH net-next v4 2/2] net: phy: broadcom: add 1000Base-X support for BCM54616S

2019-08-08 Thread Tao Ren
On 8/8/19 3:11 PM, Heiner Kallweit wrote: > On 08.08.2019 23:47, Tao Ren wrote: >> Hi Heiner, >> >> On 8/7/19 9:24 PM, Tao Ren wrote: >>> Hi Heiner, >>> >>> On 8/7/19 12:18 PM, Heiner Kallweit wrote: >>>> On 06.08.2019 23:42, Tao Ren wr

[PATCH net-next v5 2/3] net: phy: add support for clause 37 auto-negotiation

2019-08-08 Thread Tao Ren
From: Heiner Kallweit This patch adds support for clause 37 1000Base-X auto-negotiation. It's compile-tested only as I don't have fiber equipment. Signed-off-by: Heiner Kallweit --- drivers/net/phy/phy_device.c | 139 +++ include/linux/phy.h | 5 ++

[PATCH net-next v5 1/3] net: phy: modify assignment to OR for dev_flags in phy_attach_direct

2019-08-08 Thread Tao Ren
Modify the assignment to OR when dealing with phydev->dev_flags in phy_attach_direct function, and this is to make sure dev_flags set in driver's probe callback won't be lost. Suggested-by: Andrew Lunn CC: Heiner Kallweit CC: Vladimir Oltean Signed-off-by: Tao Ren Reviewed-by: Andrew L

[PATCH net-next v5 3/3] net: phy: broadcom: add 1000Base-X support for BCM54616S

2019-08-08 Thread Tao Ren
ode; otherwise, genphy_config_aneg will be called. - read_status: calls genphy_c37_read_status when the PHY is running in 1000Base-X mode; otherwise, genphy_read_status will be called. Signed-off-by: Tao Ren --- Changes in v5: - include Heiner's patch "net: phy: add support for clause 37

Re: [PATCH net-next v7 3/3] net: phy: broadcom: add 1000Base-X support for BCM54616S

2019-08-15 Thread Tao Ren
Hi Andrew / Florian / Heiner / Vladimir, Any further suggestions on the patch series? Thanks, Tao On 8/11/19 4:40 PM, Tao Ren wrote: > The BCM54616S PHY cannot work properly in RGMII->1000Base-X mode, mainly > because genphy functions are designed for copper links, and 1000Base-X >

Re: [PATCH net-next v7 3/3] net: phy: broadcom: add 1000Base-X support for BCM54616S

2019-08-15 Thread Tao Ren
On 8/15/19 4:15 PM, Vladimir Oltean wrote: > Hi Tao, > > On Fri, 16 Aug 2019 at 02:13, Tao Ren wrote: >> >> Hi Andrew / Florian / Heiner / Vladimir, >> >> Any further suggestions on the patch series? >> >> >> Thanks, >> >> Tao >&g

Re: [PATCH net-next v7 3/3] net: phy: broadcom: add 1000Base-X support for BCM54616S

2019-08-15 Thread Tao Ren
On 8/15/19 4:36 PM, Florian Fainelli wrote: > On 8/11/19 4:40 PM, Tao Ren wrote: >> The BCM54616S PHY cannot work properly in RGMII->1000Base-X mode, mainly >> because genphy functions are designed for copper links, and 1000Base-X >> (clause 37) auto negotiation needs t

Re: [PATCH 3/5] i2c: aspeed: Mask IRQ status to relevant bits

2020-08-25 Thread Tao Ren
On Tue, Aug 25, 2020 at 02:47:51PM -0500, Eddie James wrote: > > On 8/25/20 1:38 AM, Joel Stanley wrote: > > On Thu, 20 Aug 2020 at 16:12, Eddie James wrote: > > > Mask the IRQ status to only the bits that the driver checks. This > > > prevents excessive driver warnings when operating in slave

Re: [PATCH 5/5] ARM: dts: aspeed: Add Facebook Wedge400 BMC

2020-08-25 Thread Tao Ren
On Tue, Aug 25, 2020 at 04:07:56AM +, Joel Stanley wrote: > On Mon, 24 Aug 2020 at 21:20, wrote: > > > > From: Tao Ren > > > > Add initial version of device tree for Facebook Wedge400 (AST2500) BMC. > > > > Signed-off-by: Tao Ren > > Reviewe

Re: [PATCH 4/5] ARM: dts: aspeed: minipack: Update 64MB FMC flash layout

2020-08-25 Thread Tao Ren
On Tue, Aug 25, 2020 at 09:18:08AM -0500, Patrick Williams wrote: > On Mon, Aug 24, 2020 at 02:19:47PM -0700, rentao.b...@gmail.com wrote: > > From: Tao Ren > > > > Set 64Mb FMC flash layout in Minipack device tree explicitly because the > > flash layout was removed fr

Re: [PATCH] usb: gadget: aspeed: fixup vhub port irq handling

2020-08-17 Thread Tao Ren
On Mon, Aug 17, 2020 at 04:49:32PM +0300, Felipe Balbi wrote: > > Hi, > > rentao.b...@gmail.com writes: > > From: Tao Ren > > > > This is a follow-on patch for commit a23be4ed8f48 ("usb: gadget: aspeed: > > improve vhub port irq handling"):

Re: [PATCH] gpio: aspeed: fix ast2600 bank properties

2020-09-17 Thread Tao Ren
On Thu, Sep 17, 2020 at 08:42:27AM +0930, Andrew Jeffery wrote: > > > On Thu, 17 Sep 2020, at 06:12, rentao.b...@gmail.com wrote: > > From: Tao Ren > > > > GPIO_U is mapped to the least significant byte of input/output mask, and > > the byte in "output&quo

[PATCH net-next v8 1/3] net: phy: modify assignment to OR for dev_flags in phy_attach_direct

2019-09-09 Thread Tao Ren
Modify the assignment to OR when dealing with phydev->dev_flags in phy_attach_direct function, and this is to make sure dev_flags set in driver's probe callback won't be lost. Suggested-by: Andrew Lunn CC: Heiner Kallweit CC: Vladimir Oltean Signed-off-by: Tao Ren Reviewed-by: Andrew L

[PATCH net-next v8 3/3] net: phy: broadcom: add 1000Base-X support for BCM54616S

2019-09-09 Thread Tao Ren
e-FX mode, and 100Base-FX support is not available as of now. Signed-off-by: Tao Ren Acked-by: Vladimir Oltean Reviewed-by: Florian Fainelli --- No changes in v8. Changes in v7: - Add comment "BCM54616S 100Base-FX is not supported". Changes in v6: - nothing changed. Changes in v5: - inc

[PATCH net-next v8 2/3] net: phy: add support for clause 37 auto-negotiation

2019-09-09 Thread Tao Ren
From: Heiner Kallweit This patch adds support for clause 37 1000Base-X auto-negotiation. Signed-off-by: Heiner Kallweit Signed-off-by: Tao Ren Tested-by: René van Dorst --- Changes in v8: - Rebased the patch on top of net-next HEAD. Changes in v7: - Update "if (AUTONEG_ENABLE != p

Re: [PATCH net-next v8 2/3] net: phy: add support for clause 37 auto-negotiation

2019-09-09 Thread Tao Ren
Hi Andrew / Florian, On 9/9/19 1:49 PM, Tao Ren wrote: > From: Heiner Kallweit > > This patch adds support for clause 37 1000Base-X auto-negotiation. > > Signed-off-by: Heiner Kallweit > Signed-off-by: Tao Ren > Tested-by: René van Dorst Just want to check if I mi

Re: [PATCH] usb: gadget: aspeed: fixup vhub port irq handling

2020-05-27 Thread Tao Ren
-0700, rentao.b...@gmail.com wrote: > From: Tao Ren > > This is a follow-on patch for commit a23be4ed8f48 ("usb: gadget: aspeed: > improve vhub port irq handling"): for_each_set_bit() is replaced with > simple for() loop because for() loop runs faster on ASPEED BMC. &g

Re: [PATCH net-next 2/2] net: phy: broadcom: add 1000Base-X support for BCM54616S

2019-07-31 Thread Tao Ren
On 7/30/19 10:55 PM, Tao Ren wrote: > On 7/30/19 7:34 PM, Andrew Lunn wrote: >>> Hi Andrew, >>> >>> The BCM54616S PHY on my machine is connected to a BCM5396 switch chip over >>> backplane (1000Base-KX). >> >> Ah, that is different. So the bo

Re: [PATCH net-next 1/2] net: phy: broadcom: set features explicitly for BCM54616S

2019-07-31 Thread Tao Ren
On 7/30/19 11:00 PM, Tao Ren wrote: > On 7/30/19 10:53 PM, Heiner Kallweit wrote: >> On 31.07.2019 02:12, Tao Ren wrote: >>> On 7/29/19 11:00 PM, Heiner Kallweit wrote: >>>> On 30.07.2019 07:05, Tao Ren wrote: >>>>> On 7/29/19 8:35 PM, Andrew Lunn wro

[PATCH net-next v2] net: phy: broadcom: add 1000Base-X support for BCM54616S

2019-08-01 Thread Tao Ren
d_status" callback if PHY-switch link is 1000Base-X. Signed-off-by: Tao Ren --- Changes in v2: - Auto-detect PHY operation mode instead of passing DT node. - move PHY mode auto-detect logic from config_init to probe callback. - only set speed (not including duplex) in read_status cal

[PATCH] ARM: dts: aspeed: Add Facebook Wedge40 BMC

2019-08-01 Thread Tao Ren
Add initial version of device tree for Facebook Wedge40 AST2400 BMC platform. Signed-off-by: Tao Ren --- arch/arm/boot/dts/Makefile| 1 + .../boot/dts/aspeed-bmc-facebook-wedge40.dts | 141 ++ 2 files changed, 142 insertions(+) create mode 100644 arch/arm

[PATCH] ARM: dts: aspeed: Add Facebook Wedge100 BMC

2019-08-01 Thread Tao Ren
Add initial version of device tree for Facebook Wedge100 AST2400 BMC platform. Signed-off-by: Tao Ren --- arch/arm/boot/dts/Makefile| 1 + .../boot/dts/aspeed-bmc-facebook-wedge100.dts | 149 ++ 2 files changed, 150 insertions(+) create mode 100644 arch

Re: [PATCH net-next 1/2] net: phy: broadcom: set features explicitly for BCM54616S

2019-08-01 Thread Tao Ren
On 7/31/19 10:20 PM, Tao Ren wrote: > On 7/30/19 11:00 PM, Tao Ren wrote: >> On 7/30/19 10:53 PM, Heiner Kallweit wrote: >>> On 31.07.2019 02:12, Tao Ren wrote: >>>> On 7/29/19 11:00 PM, Heiner Kallweit wrote: >>>>> On 30.07.2019 07:05, Tao Ren wrote:

Re: [PATCH] ARM: dts: aspeed: Add Facebook Wedge100 BMC

2019-08-01 Thread Tao Ren
On 8/1/19, 8:02 PM, "Joel Stanley" wrote: > On Fri, 2 Aug 2019 at 01:02, Tao Ren wrote: >> + >> + chosen { >> + stdout-path = >> + bootargs = "debug console=ttyS2,9600n8 root=/dev/ram rw"; > >

Re: [PATCH] ARM: dts: aspeed: Add Facebook Wedge40 BMC

2019-08-01 Thread Tao Ren
On 8/1/19, 7:56 PM, "Andrew Jeffery" wrote: >On Fri, 2 Aug 2019, at 10:24, Tao Ren wrote: >> Add initial version of device tree for Facebook Wedge40 AST2400 BMC >> platform. >> >> Signed-off-by: Tao Ren > > Reviewed-by: Andrew Jeffery Tha

[PATCH v2] ARM: dts: aspeed: Add Facebook Wedge40 BMC

2019-08-01 Thread Tao Ren
Add initial version of device tree for Facebook Wedge40 AST2400 BMC platform. Signed-off-by: Tao Ren Reviewed-by: Andrew Jeffery --- Changes in v2: - remove "debug" from bootargs. arch/arm/boot/dts/Makefile| 1 + .../boot/dts/aspeed-bmc-facebook-wedge40.

[PATCH v2] ARM: dts: aspeed: Add Facebook Wedge100 BMC

2019-08-01 Thread Tao Ren
Add initial version of device tree for Facebook Wedge100 AST2400 BMC platform. Signed-off-by: Tao Ren Reviewed-by: Andrew Jeffery --- Changes in v2: - remove "debug" from bootargs. arch/arm/boot/dts/Makefile| 1 + .../boot/dts/aspeed-bmc-facebook-wedge100

Re: [PATCH v2] ARM: dts: aspeed: Add Facebook Wedge100 BMC

2019-08-01 Thread Tao Ren
On 8/1/19, 9:21 PM, "Joel Stanley" wrote: > On Fri, 2 Aug 2019 at 04:10, Tao Ren wrote: >> >> Add initial version of device tree for Facebook Wedge100 AST2400 BMC >> platform. >> >> Signed-off-by: Tao Ren >> Reviewed-by: Andrew Jeffery &g

Re: [PATCH v2] ARM: dts: aspeed: Add Facebook Wedge100 BMC

2019-08-01 Thread Tao Ren
On 8/1/19, 10:26 PM, "Joel Stanley" wrote: > I've applied both of these to the aspeed tree for 5.4. Thank you Joel. Cheers, Tao

Re: [PATCH net-next v2] net: phy: broadcom: add 1000Base-X support for BCM54616S

2019-08-02 Thread Tao Ren
On 8/2/19 7:50 AM, Andrew Lunn wrote: >> +static int bcm54616s_read_status(struct phy_device *phydev) >> +{ >> +int err; >> + >> +err = genphy_read_status(phydev); >> + >> +/* 1000Base-X register set doesn't provide speed fields: the >> + * link speed is always 1000 Mb/s as long as

[PATCH net-next v3] net: phy: broadcom: add 1000Base-X support for BCM54616S

2019-08-02 Thread Tao Ren
d_status" callback if PHY-switch link is 1000Base-X. Signed-off-by: Tao Ren --- Changes in v3: - rename bcm5482_read_status to bcm54xx_read_status so the callback can be shared by BCM5482 and BCM54616S. Changes in v2: - Auto-detect PHY operation mode instead of passing DT node.

Re: [PATCH net-next v3] net: phy: broadcom: add 1000Base-X support for BCM54616S

2019-08-03 Thread Tao Ren
Hi Vladimir, On 8/3/19 6:49 AM, Vladimir Oltean wrote: > Hi Tao, > > On Sat, 3 Aug 2019 at 00:56, Tao Ren wrote: >> >> genphy_read_status() cannot report correct link speed when BCM54616S PHY >> is configured in RGMII->1000Base-KX mode (for example, o

Re: [PATCH net-next v3] net: phy: broadcom: add 1000Base-X support for BCM54616S

2019-08-05 Thread Tao Ren
Hi Andrew, On 8/4/19 7:51 AM, Andrew Lunn wrote: >>> The patchset looks better now. But is it ok, I wonder, to keep >>> PHY_BCM_FLAGS_MODE_1000BX in phydev->dev_flags, considering that >>> phy_attach_direct is overwriting it? >> > >> I checked ftgmac100 driver (used on my machine) and it calls

[PATCH net-next] net: phy: modify assignment to OR for dev_flags in phy_attach_direct

2019-08-05 Thread Tao Ren
Modify the assignment to OR when dealing with phydev->dev_flags in phy_attach_direct function, and this is to make sure dev_flags set in driver's probe callback won't be lost. Suggested-by: Andrew Lunn CC: Heiner Kallweit CC: Vladimir Oltean Signed-off-by: Tao Ren --- drivers/net/

Re: [PATCH net-next v3] net: phy: broadcom: add 1000Base-X support for BCM54616S

2019-08-05 Thread Tao Ren
On 8/5/19 1:45 PM, Heiner Kallweit wrote: > On 04.08.2019 21:22, Vladimir Oltean wrote: >> On Sun, 4 Aug 2019 at 19:07, Heiner Kallweit wrote: >>> >>> On 04.08.2019 17:59, Vladimir Oltean wrote: On Sun, 4 Aug 2019 at 17:52, Andrew Lunn wrote: > >>> The patchset looks better now. But

Re: [PATCH net-next v8 2/3] net: phy: add support for clause 37 auto-negotiation

2019-09-15 Thread Tao Ren
On 9/14/19 7:17 AM, Andrew Lunn wrote: > On Mon, Sep 09, 2019 at 01:49:06PM -0700, Tao Ren wrote: >> From: Heiner Kallweit >> >> This patch adds support for clause 37 1000Base-X auto-negotiation. >> >> Signed-off-by: Heiner Kallweit >> Signed-off-by

Re: [PATCH net-next v5 2/3] net: phy: add support for clause 37 auto-negotiation

2019-08-08 Thread Tao Ren
On 8/8/19 9:58 PM, Vladimir Oltean wrote: > On Fri, 9 Aug 2019 at 02:48, Tao Ren wrote: >> >> From: Heiner Kallweit >> >> This patch adds support for clause 37 1000Base-X auto-negotiation. >> It's compile-tested only as I don't have fiber equipment. >

Re: [PATCH net-next] net/ncsi: allow to customize BMC MAC Address offset

2019-08-08 Thread Tao Ren
On 8/8/19 4:03 PM, Andrew Lunn wrote: >> After giving it more thought, I'm thinking about adding ncsi dt node >> with following structure (mac/ncsi similar to mac/mdio/phy): >> >> { >> /* MAC properties... */ >> >> use-ncsi; > > This property seems to be specific to Faraday FTGMAC100.

[PATCH net-next v6 3/3] net: phy: broadcom: add 1000Base-X support for BCM54616S

2019-08-08 Thread Tao Ren
ode; otherwise, genphy_config_aneg will be called. - read_status: calls genphy_c37_read_status when the PHY is running in 1000Base-X mode; otherwise, genphy_read_status will be called. Signed-off-by: Tao Ren --- Changes in v6: - nothing changed. Changes in v5: - include Heiner's patch "

[PATCH net-next v6 1/3] net: phy: modify assignment to OR for dev_flags in phy_attach_direct

2019-08-08 Thread Tao Ren
Modify the assignment to OR when dealing with phydev->dev_flags in phy_attach_direct function, and this is to make sure dev_flags set in driver's probe callback won't be lost. Suggested-by: Andrew Lunn CC: Heiner Kallweit CC: Vladimir Oltean Signed-off-by: Tao Ren Reviewed-by: Andrew L

[PATCH net-next v6 2/3] net: phy: add support for clause 37 auto-negotiation

2019-08-08 Thread Tao Ren
From: Heiner Kallweit This patch adds support for clause 37 1000Base-X auto-negotiation. Signed-off-by: Heiner Kallweit Signed-off-by: Tao Ren --- Changes in v6: - add "Signed-off-by: Tao Ren " Changes in v1-v5: - nothing changed. It's given v6 just to align with t

Re: [PATCH net-next v6 3/3] net: phy: broadcom: add 1000Base-X support for BCM54616S

2019-08-09 Thread Tao Ren
Hi Heiner, On 8/9/19 1:21 PM, Heiner Kallweit wrote: > On 09.08.2019 07:44, Tao Ren wrote: >> The BCM54616S PHY cannot work properly in RGMII->1000Base-KX mode (for >> example, on Facebook CMM BMC platform), mainly because genphy functions >> are designed for copper links

Re: [Potential Spoof] Re: [PATCH net-next v6 3/3] net: phy: broadcom: add 1000Base-X support for BCM54616S

2019-08-09 Thread Tao Ren
On 8/9/19 1:54 PM, Tao Ren wrote: > Hi Heiner, > > On 8/9/19 1:21 PM, Heiner Kallweit wrote: >> On 09.08.2019 07:44, Tao Ren wrote: >>> The BCM54616S PHY cannot work properly in RGMII->1000Base-KX mode (for >>> example, on Facebook CMM BMC platfo

Re: [Potential Spoof] Re: [PATCH net-next v6 3/3] net: phy: broadcom: add 1000Base-X support for BCM54616S

2019-08-09 Thread Tao Ren
On 8/9/19 2:59 PM, Heiner Kallweit wrote: > On 09.08.2019 23:13, Tao Ren wrote: >> On 8/9/19 1:54 PM, Tao Ren wrote: >>> Hi Heiner, >>> >>> On 8/9/19 1:21 PM, Heiner Kallweit wrote: >>>> On 09.08.2019 07:44, Tao Ren wrote: >>>>> Th

[PATCH net-next v7 3/3] net: phy: broadcom: add 1000Base-X support for BCM54616S

2019-08-11 Thread Tao Ren
e-FX mode, and 100Base-FX support is not available as of now. Signed-off-by: Tao Ren --- Changes in v7: - Add comment "BCM54616S 100Base-FX is not supported". Changes in v6: - nothing changed. Changes in v5: - include Heiner's patch "net: phy: add support for clause 37 auto-nego

[PATCH net-next v7 2/3] net: phy: add support for clause 37 auto-negotiation

2019-08-11 Thread Tao Ren
From: Heiner Kallweit This patch adds support for clause 37 1000Base-X auto-negotiation. Signed-off-by: Heiner Kallweit Signed-off-by: Tao Ren --- Changes in v7: - Update "if (AUTONEG_ENABLE != phydev->autoneg)" to "if (phydev->autoneg != AUTONEG_ENABLE)"

  1   2   >