RE: [PATCH v1 net-next 3/4] net: dsa: microchip: use readx_poll_time for polling

2019-02-12 Thread Tristram.Ha
> > -static int ksz9477_wait_vlan_ctrl_ready(struct ksz_device *dev, u32 > waiton, > > - int timeout) > > -{ > > - u8 data; > > - > > - do { > > - ksz_read8(dev, REG_SW_VLAN_CTRL, &data); > > - if (!(data & waiton)) > > - b

Re: [PATCH v1 net-next 3/4] net: dsa: microchip: use readx_poll_time for polling

2019-02-09 Thread Andrew Lunn
On Thu, Feb 07, 2019 at 08:07:08PM -0800, tristram...@microchip.com wrote: > From: Tristram Ha > > Replace register polling functions using timeout with readx_poll_time call. > > Signed-off-by: Tristram Ha > --- > drivers/net/dsa/microchip/ksz9477.c | 91 > +++-

[PATCH v1 net-next 3/4] net: dsa: microchip: use readx_poll_time for polling

2019-02-07 Thread Tristram.Ha
From: Tristram Ha Replace register polling functions using timeout with readx_poll_time call. Signed-off-by: Tristram Ha --- drivers/net/dsa/microchip/ksz9477.c | 91 +++-- 1 file changed, 27 insertions(+), 64 deletions(-) diff --git a/drivers/net/dsa/microchip