linux_dsm_epyc7002/drivers/net/ethernet/hisilicon/hns3
Salil Mehta f2f432f2c3 net: hns3: Refactors the requested reset & pending reset handling code
In exisiting code, the way to detect if driver/client reset should
be executed or if hardware should be be soft resetted was overly
complex.

Existing code use to read the interrupt status register from task
context to figure out if the interrupt source event was reset and
then use clear the interrupt source for reset while waiting for the
hardware to finish the reset. This behaviour again was confusing
and overly complex in terms of the flow.

This patch simplifies the handling of the requested reset and the
pending reset(i.e. reset which have already been asserted by the
software and hardware has acknowledged back to driver that it is
processing the hardware reset through interrupt)

Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: lipeng <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-12-05 11:45:18 -05:00
..
hns3pf net: hns3: Refactors the requested reset & pending reset handling code 2017-12-05 11:45:18 -05:00
hnae3.c net: hns3: Fixes the premature exit of loop when matching clients 2017-09-19 16:06:49 -07:00
hnae3.h net: hns3: Add reset process in hclge_main 2017-11-02 21:28:35 +09:00
Makefile net: hns3: Add HNS3 driver to kernel build framework & MAINTAINERS 2017-08-03 15:08:18 -07:00