Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net/hns3: fix device capabilities for copper media type
[ upstream commit 68ed5ee ] The configuration operation for PHY is implemented by firmware. And a capability flag will be report to driver, which means the firmware supports the PHY driver. However, the current implementation only supports obtaining the capability bit, but some basic functions of copper ports in driver, such as, the query of link status and link info, are not supported. Therefore, it is necessary for driver to set the copper capability bit to zero when the firmware supports the configuration of the PHY. Fixes: 4387523 ("net/hns3: get device capability from firmware") Fixes: 95e5032 ("net/hns3: support copper media type") Signed-off-by: Huisong Li <lihuisong@huawei.com>
- Loading branch information