Re: Microchip KSZ* DSA drivers Re: [PATCH v1 RFC 1/1] Add Microchip KSZ8795 DSA driver

2017-11-14 Thread Pavel Machek
On Tue 2017-11-14 01:49:47, tristram...@microchip.com wrote: > > Subject: Microchip KSZ* DSA drivers Re: [PATCH v1 RFC 1/1] Add Microchip > > KSZ8795 DSA driver > > > > Hi! > > > > Are there any news here? Is there new release planned? Is there a git > >

RE: Microchip KSZ* DSA drivers Re: [PATCH v1 RFC 1/1] Add Microchip KSZ8795 DSA driver

2017-11-13 Thread Tristram.Ha
> Subject: Microchip KSZ* DSA drivers Re: [PATCH v1 RFC 1/1] Add Microchip > KSZ8795 DSA driver > > Hi! > > Are there any news here? Is there new release planned? Is there a git > tree somewhere? I probably should get it working, soon.. so I guess I > can help with testi

Microchip KSZ* DSA drivers Re: [PATCH v1 RFC 1/1] Add Microchip KSZ8795 DSA driver

2017-11-12 Thread Pavel Machek
Hi! Are there any news here? Is there new release planned? Is there a git tree somewhere? I probably should get it working, soon.. so I guess I can help with testing. Thanks and best regards, Pavel -- (english) http://www.li

RE: [PATCH v1 RFC 1/1] Add Microchip KSZ8795 DSA driver

2017-10-18 Thread Tristram.Ha
> > +static void ksz8795_r_mib_cnt(struct ksz_device *dev, int port, u16 addr, > > + u64 *cnt) > > +{ > > + u32 data; > > + u16 ctrl_addr; > > + u8 check; > > + int loop; > > + > > + ctrl_addr = addr + SWITCH_COUNTER_NUM * port; > > + ctrl_addr |= IND_ACC_TABLE(T

Re: [PATCH v1 RFC 1/1] Add Microchip KSZ8795 DSA driver

2017-10-11 Thread Pavel Machek
Hi! > +static void ksz8795_set_prio_queue(struct ksz_device *dev, int port, int > queue) > +{ > + u8 hi; > + u8 lo; > + > + /* Number of queues can only be 1, 2, or 4. */ > + switch (queue) { > + case 4: > + case 3: > + queue = PORT_QUEUE_SPLIT_4; > +

RE: [PATCH v1 RFC 1/1] Add Microchip KSZ8795 DSA driver

2017-10-09 Thread Tristram.Ha
> in previous version I see that transit traffic (ping) goes to cpu, > then from cpu back to destination port. I.e. it works but with cpu > involving. Is this version supposed to work like that? Yes, it works in the old DSA way such that a software bridge is responsible to forward every packet. N

Re: [PATCH v1 RFC 1/1] Add Microchip KSZ8795 DSA driver

2017-10-09 Thread Maxim Uvarov
Hello Tristram, in previous version I see that transit traffic (ping) goes to cpu, then from cpu back to destination port. I.e. it works but with cpu involving. Is this version supposed to work like that? Thank you, Maxim. 2017-10-06 23:33 GMT+03:00 : > From: Tristram Ha > > Add Microchip KSZ8

[PATCH v1 RFC 1/1] Add Microchip KSZ8795 DSA driver

2017-10-06 Thread Tristram.Ha
From: Tristram Ha Add Microchip KSZ8795 DSA driver. Signed-off-by: Tristram Ha --- drivers/net/dsa/microchip/Kconfig | 17 + drivers/net/dsa/microchip/Makefile |2 + drivers/net/dsa/microchip/ksz8795.c | 1372 +++ drivers/net/dsa/microchip/ksz87