Re: [PATCH net] net: dsa: microchip: initialize mutex before use

2018-10-31 Thread David Miller
From: Date: Tue, 30 Oct 2018 16:45:49 -0700 > @@ -1206,6 +1201,12 @@ int ksz_switch_register(struct ksz_device *dev) > if (dev->pdata) > dev->chip_id = dev->pdata->chip_id; > > + /* mutex is used in next function call. */ > + mutex_init(&dev->reg_mutex); > + mute

Re: [PATCH net] net: dsa: microchip: initialize mutex before use

2018-10-31 Thread Pavel Machek
On Tue 2018-10-30 16:45:49, tristram...@microchip.com wrote: > From: Tristram Ha > > Initialize mutex before use. Avoid kernel complaint when > CONFIG_DEBUG_LOCK_ALLOC is enabled. > > Fixes: b987e98e50ab90e5 ("dsa: add DSA switch driver for Microchip KSZ9477") > Signed-off-by: Tristram Ha Ack

Re: [PATCH net] net: dsa: microchip: initialize mutex before use

2018-10-30 Thread Andrew Lunn
On Tue, Oct 30, 2018 at 04:45:49PM -0700, tristram...@microchip.com wrote: > From: Tristram Ha > > Initialize mutex before use. Avoid kernel complaint when > CONFIG_DEBUG_LOCK_ALLOC is enabled. > > Fixes: b987e98e50ab90e5 ("dsa: add DSA switch driver for Microchip KSZ9477") > Signed-off-by: Tri

[PATCH net] net: dsa: microchip: initialize mutex before use

2018-10-30 Thread Tristram.Ha
From: Tristram Ha Initialize mutex before use. Avoid kernel complaint when CONFIG_DEBUG_LOCK_ALLOC is enabled. Fixes: b987e98e50ab90e5 ("dsa: add DSA switch driver for Microchip KSZ9477") Signed-off-by: Tristram Ha --- drivers/net/dsa/microchip/ksz_common.c | 11 ++- 1 file changed, 6