net: hns: add attribute port-rst-offset for dsaf port node
The reset offset for each port in a dsaf is different. The current code is not so readability. This patch adds configuration named port-rst-offset to make the code simple and more readability. If this attribute doesn't exist, default value of this attribute is equal to its port index. Signed-off-by:Yisen Zhuang <yisen.zhuang@huawei.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c 10 additions, 0 deletionsdrivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c
- drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h 1 addition, 0 deletionsdrivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h
- drivers/net/ethernet/hisilicon/hns/hns_dsaf_misc.c 8 additions, 17 deletionsdrivers/net/ethernet/hisilicon/hns/hns_dsaf_misc.c
Loading
Please register or sign in to comment