Re: [PATCH v2] net: macb: Write only necessary bits in NCR in macb reset

2016-11-29 Thread Nicolas Ferre
Le 29/11/2016 à 06:56, Harini Katakam a écrit : > In macb_reset_hw, use read-modify-write to disable RX and TX. > Existing settings, for ex. management port enable, > are being cleared in the current implementation. > Also certain reserved bits are read only. > Hence it is better to use read-modify

[PATCH v2] net: macb: Write only necessary bits in NCR in macb reset

2016-11-28 Thread Harini Katakam
In macb_reset_hw, use read-modify-write to disable RX and TX. Existing settings, for ex. management port enable, are being cleared in the current implementation. Also certain reserved bits are read only. Hence it is better to use read-modify-write. Use the same method for clearing statistics as wel