]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'hns-fixes'
authorDavid S. Miller <davem@davemloft.net>
Thu, 30 Aug 2018 01:08:20 +0000 (18:08 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Aug 2018 01:08:20 +0000 (18:08 -0700)
commit710ae019089a5a3e58343fc61b2b77b5983ca710
tree1d0e8330fda26f8dfe73346cec46f01f159bdbe9
parent88877f04e82dbfdb2c2e937ecde16c7564ada6a0
parent7e239c1b4dbd017c06fcde48fcd2d68b9dabee0d
Merge branch 'hns-fixes'

Peng Li says:

====================
net: hns: fix some bugs about speed and duplex change

If there are packets in hardware when changing the spped
or duplex, it may cause hardware hang up.

This patchset adds the code for waiting chip to clean the all
pkts(TX & RX) in chip when the driver uses the function named
"adjust link".

This patchset cleans the pkts as follows:
1) close rx of chip, close tx of protocol stack.
2) wait rcb, ppe, mac to clean.
3) adjust link
4) open rx of chip, open tx of protocol stack.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>