Re: [PATCH v2] net: dsa: ksz8795: adjust CPU link to host interface

2020-12-07 Thread Jean Pihet
Hi Andrew, On Tue, Dec 1, 2020 at 9:45 PM Andrew Lunn wrote: > > > Configure the host port of the switch to match the host interface > > settings. This is useful when the switch is directly connected to the > > host MAC interface. > > Why do you need this when no other board does? Why is your boa

Re: [PATCH v2] net: dsa: ksz8795: adjust CPU link to host interface

2020-12-07 Thread Jean Pihet
Hi Vladimir, On Tue, Dec 1, 2020 at 8:48 PM Vladimir Oltean wrote: > > Hi Jean, > > On Tue, Dec 01, 2020 at 07:58:01PM +0100, Jean Pihet wrote: > > Hi Andrew, > > > > On Tue, Dec 1, 2020 at 7:41 PM Andrew Lunn wrote: > > > > > > On Tue, De

Re: [PATCH v2] net: dsa: ksz8795: adjust CPU link to host interface

2020-12-01 Thread Jean Pihet
Hi Andrew, On Tue, Dec 1, 2020 at 7:41 PM Andrew Lunn wrote: > > On Tue, Dec 01, 2020 at 09:34:08AM +0100, Jean Pihet wrote: > > Add support for RGMII in 100 and 1000 Mbps. > > > > Adjust the CPU port settings from the host interface settings: interface > > MII ty

[PATCH v2] net: dsa: ksz8795: adjust CPU link to host interface

2020-12-01 Thread Jean Pihet
Add support for RGMII in 100 and 1000 Mbps. Adjust the CPU port settings from the host interface settings: interface MII type, speed, duplex. Signed-off-by: Jean Pihet --- drivers/net/dsa/microchip/ksz8795.c | 93 ++--- 1 file changed, 57 insertions(+), 36 deletions

Re: [PATCH 1/2] net: dsa: ksz: pad frame to 64 bytes for transmission

2020-11-29 Thread Jean Pihet
Andrew, On Sun, Nov 29, 2020 at 8:38 PM Andrew Lunn wrote: > > On Sun, Nov 29, 2020 at 08:34:27PM +0100, Jean Pihet wrote: > > Hi Andrew, > > > > On Sun, Nov 29, 2020 at 5:56 PM Andrew Lunn wrote: > > > > > > On Sun, Nov 29, 2020 at 11:23:59AM +010

Re: [PATCH 1/2] net: dsa: ksz: pad frame to 64 bytes for transmission

2020-11-29 Thread Jean Pihet
Hi Andrew, On Sun, Nov 29, 2020 at 5:56 PM Andrew Lunn wrote: > > On Sun, Nov 29, 2020 at 11:23:59AM +0100, Jean Pihet wrote: > > Some ethernet controllers (e.g. TI CPSW) pad the frames to a minimum > > of 64 bytes before the FCS is appended. This causes an issue with the >

Re: [PATCH 1/2] net: dsa: ksz: pad frame to 64 bytes for transmission

2020-11-29 Thread Jean Pihet
Andrew, On Sun, Nov 29, 2020 at 5:57 PM Andrew Lunn wrote: > > Hi Jean > > Please also include a patch 0/X which describes the patchset as a > whole. This will be used as the branch merge commit. Sure, will submit a v2 asap. Thx, Jean > >Andrew

[PATCH 2/2] net: dsa: ksz8795: adjust CPU link to host interface

2020-11-29 Thread Jean Pihet
Add support for RGMII in 100 and 1000 Mbps. Adjust the CPU port based on the host interface settings: interface MII type, speed, duplex. Signed-off-by: Jean Pihet --- drivers/net/dsa/microchip/ksz8795.c | 93 ++--- 1 file changed, 57 insertions(+), 36 deletions(-) diff

[PATCH 1/2] net: dsa: ksz: pad frame to 64 bytes for transmission

2020-11-29 Thread Jean Pihet
and the frame is passed for transmission. Signed-off-by: Jean Pihet --- net/dsa/tag_ksz.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/net/dsa/tag_ksz.c b/net/dsa/tag_ksz.c index 0a5aa982c60d..0074702dcbbc 100644 --- a/net/dsa/tag_ksz.c +++ b/net/dsa/tag_ksz.c