Jiawen Wu
0b6ffefbb0
net: libwx: Fix dead code for duplicate check
...
Fix duplicate check on polling timeout.
Fixes: 1efa9bfe58 ("net: libwx: Implement interaction with firmware")
Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com >
Reviewed-by: Leon Romanovsky <leonro@nvidia.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2022-11-18 10:53:13 +00:00
YueHaibing
5e2ea7801f
net: txgbe: Fix unsigned comparison to zero in txgbe_calc_eeprom_checksum()
...
The error checks on checksum for a negative error return always fails because
it is unsigned and can never be negative.
Fixes: 049fe53653 ("net: txgbe: Add operations to interact with firmware")
Signed-off-by: YueHaibing <yuehaibing@huawei.com >
Signed-off-by: Jakub Kicinski <kuba@kernel.org >
2022-11-07 20:00:10 -08:00
YueHaibing
a068d33e54
net: txgbe: Fix memleak in txgbe_calc_eeprom_checksum()
...
eeprom_ptrs should be freed before returned.
Fixes: 049fe53653 ("net: txgbe: Add operations to interact with firmware")
Signed-off-by: YueHaibing <yuehaibing@huawei.com >
Signed-off-by: Jakub Kicinski <kuba@kernel.org >
2022-11-07 20:00:09 -08:00
Mengyuan Lou
02338c484a
net: ngbe: Initialize sw info and register netdev
...
Initialize ngbe mac/phy type.
Check whether the firmware is initialized.
Initialize ngbe hw and register netdev.
Signed-off-by: Mengyuan Lou <mengyuanlou@net-swift.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2022-11-02 12:31:23 +00:00
Jiawen Wu
049fe53653
net: txgbe: Add operations to interact with firmware
...
Add firmware interaction to get EEPROM information.
Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2022-11-02 12:31:23 +00:00
Jiawen Wu
1efa9bfe58
net: libwx: Implement interaction with firmware
...
Add mailbox commands to interact with firmware.
Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2022-11-02 12:31:23 +00:00
Jiawen Wu
d21d2c7f58
net: txgbe: Set MAC address and register netdev
...
Add MAC address related operations, and register netdev.
Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2022-10-28 11:25:53 +01:00
Jiawen Wu
b08012568e
net: txgbe: Reset hardware
...
Reset and initialize the hardware by configuring the MAC layer.
Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2022-10-28 11:25:53 +01:00
Jiawen Wu
a34b3e6ed8
net: txgbe: Store PCI info
...
Get PCI config space info, set LAN id and check flash status.
Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2022-10-28 11:25:53 +01:00
Mengyuan Lou
e79e40c83b
net: ngbe: Add build support for ngbe
...
Add build options and guidance doc.
Initialize pci device access for Wangxun Gigabit Ethernet devices.
Reviewed-by: Andrew Lunn <andrew@lunn.ch >
Signed-off-by: Mengyuan Lou <mengyuanlou@net-swift.com >
Link: https://lore.kernel.org/r/20220826034609.51854-1-mengyuanlou@net-swift.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com >
2022-08-30 12:32:51 +02:00
Jakub Kicinski
049d5d9890
eth: fix the help in Wangxun's Kconfig
...
The text was copy&pasted from Intel, adjust it to say Wangxun.
Reported-by: Ingo Saitz <ingo@hannover.ccc.de >
Fixes: 3ce7547e5b ("net: txgbe: Add build support for txgbe")
Link: https://lore.kernel.org/r/20220804182641.1442000-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org >
2022-08-05 19:01:45 -07:00
Christophe JAILLET
2e8f205d91
net: txgbe: Fix an error handling path in txgbe_probe()
...
A pci_enable_pcie_error_reporting() should be balanced by a corresponding
pci_disable_pcie_error_reporting() call in the error handling path, as
already done in the remove function.
Fixes: 3ce7547e5b ("net: txgbe: Add build support for txgbe")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr >
Reviewed-by: Jiawen Wu <jiawenwu@trustnetic.com >
Link: https://lore.kernel.org/r/082003d00be1f05578c9c6434272ceb314609b8e.1659285240.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Jakub Kicinski <kuba@kernel.org >
2022-08-01 12:27:12 -07:00
Jiawen Wu
3ce7547e5b
net: txgbe: Add build support for txgbe
...
Add doc build infrastructure for txgbe driver.
Initialize PCI memory space for WangXun 10 Gigabit Ethernet devices.
Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com >
Link: https://lore.kernel.org/r/20220628095530.889344-1-jiawenwu@trustnetic.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org >
2022-06-29 20:57:06 -07:00