Re: [PATCH] net: ethernet: ti: cpsw: use var instead of func for usage count

2017-02-14 Thread David Miller
From: Ivan Khoronzhuk Date: Tue, 14 Feb 2017 16:02:36 +0200 > The usage count function is based on ndev_running flag that is > updated before calling ndo_open/close, but if ndo is called in > another place, as with suspend/resume, the counter is not changed, > that breaks sus/resume. For common r

[PATCH] net: ethernet: ti: cpsw: use var instead of func for usage count

2017-02-14 Thread Ivan Khoronzhuk
The usage count function is based on ndev_running flag that is updated before calling ndo_open/close, but if ndo is called in another place, as with suspend/resume, the counter is not changed, that breaks sus/resume. For common resource no difference which device is using it, does matter only devic