linux/drivers/net
Josua Mayer 45ed4e5149 net: phy: dp83869: fix default value for tx-/rx-internal-delay
commit 82e2c39f9e upstream.

dp83869 internally uses a look-up table for mapping supported delays in
nanoseconds to register values.
When specific delays are defined in device-tree, phy_get_internal_delay
does the lookup automatically returning an index.

The default case wrongly assigns the nanoseconds value from the lookup
table, resulting in numeric value 2000 applied to delay configuration
register, rather than the expected index values 0-7 (7 for 2000).
Ultimately this issue broke RX for 1Gbps links.

Fix default delay configuration by assigning the intended index value
directly.

Cc: stable@vger.kernel.org
Fixes: 736b25afe2 ("net: dp83869: Add RGMII internal delay configuration")
Co-developed-by: Yazan Shhady <yazan.shhady@solid-run.com>
Signed-off-by: Yazan Shhady <yazan.shhady@solid-run.com>
Signed-off-by: Josua Mayer <josua@solid-run.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Link: https://lore.kernel.org/r/20230323102536.31988-1-josua@solid-run.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2023-04-05 11:24:59 +02:00
..
appletalk make legacy ISA probe optional 2021-08-03 13:05:26 +01:00
arcnet arcnet: fix potential memory leak in com20020_probe() 2022-12-02 17:41:07 +01:00
bonding bonding: restore bond's IFF_SLAVE flag if a non-eth dev enslave fails 2023-03-22 13:31:29 +01:00
caif caif_virtio: fix race between virtio_device_ready() and ndo_open() 2022-07-07 17:53:27 +02:00
can can: esd_usb: Move mislocated storage of SJA1000_ECC_SEG bits in case of a bus error 2023-03-10 09:39:18 +01:00
dsa net: dsa: mv88e6xxx: Enable IGMP snooping on user ports only 2023-04-05 11:24:58 +02:00
ethernet net: ethernet: mtk_eth_soc: fix flow block refcounting logic 2023-04-05 11:24:58 +02:00
fddi net: defxx: Fix missing err handling in dfx_init() 2022-12-31 13:14:18 +01:00
fjes fjes: Check for error irq 2021-12-29 12:28:44 +01:00
hamradio hamradio: baycom_epp: Fix return type of baycom_send_packet() 2022-12-31 13:14:41 +01:00
hippi drivers: net: hippi: Fix deadlock in rr_close() 2022-05-09 09:14:40 +02:00
hyperv hv_netvsc: Check status in SEND_RNDIS_PKT completion message 2023-03-10 09:39:51 +01:00
ieee802154 ca8210: Fix unsigned mac_len comparison with zero in ca8210_skb_tx() 2023-04-05 11:24:54 +02:00
ipa net: ipa: compute DMA pool size properly 2023-04-05 11:24:57 +02:00
ipvlan ipvlan: Make skb->skb_iif track skb->dev for l3s mode 2023-03-22 13:31:24 +01:00
mctp mctp: Add initial driver infrastructure 2021-07-29 15:06:50 +01:00
mdio net: mdio: thunder: Add missing fwnode_handle_put() 2023-03-30 12:47:50 +02:00
netdevsim netdevsim: remove dir in nsim_dev_debugfs_init() when creating ports dir failed 2022-11-03 23:59:19 +09:00
pcs net: pcs: xpcs: propagate xpcs_read error to xpcs_get_state_c37_sgmii 2022-08-03 12:03:48 +02:00
phy net: phy: dp83869: fix default value for tx-/rx-internal-delay 2023-04-05 11:24:59 +02:00
plip net: plip: don't call kfree_skb/dev_kfree_skb() under spin_lock_irq() 2022-12-14 11:37:29 +01:00
ppp ppp: associate skb with a device at tx 2022-12-31 13:14:42 +01:00
slip drivers: net: slip: fix NPD bug in sl_tx_timeout() 2022-04-20 09:34:17 +02:00
team net: team: Unsync device addresses on ndo_stop 2022-09-28 11:11:48 +02:00
usb net: usb: qmi_wwan: add Telit 0x1080 composition 2023-03-30 12:47:54 +02:00
vmxnet3 vmxnet3: correctly report csum_level for encapsulated packet 2023-01-12 11:59:09 +01:00
wan net: wan: Add checks for NULL for utdm in undo_uhdlc_init and unmap_si_regs 2023-02-01 08:27:08 +01:00
wireguard wireguard: netlink: avoid variable-sized memcpy on sockaddr 2022-09-28 11:11:51 +02:00
wireless wifi: ath9k: use proper statements in conditionals 2023-03-10 09:40:15 +01:00
wwan net: wwan: iosm: fix dma_alloc_coherent incompatible pointer type 2022-12-08 11:28:41 +01:00
xen-netback xen/netback: don't do grant copy across page boundary 2023-04-05 11:24:59 +02:00
bareudp.c bareudp: use ipv6_mod_enabled to check if IPv6 enabled 2022-04-08 14:23:41 +02:00
dummy.c net: bonding, dummy, ifb, team: advertise NETIF_F_GSO_SOFTWARE 2020-11-03 16:53:55 -08:00
eql.c eql: use ndo_siocdevprivate 2021-07-27 20:11:43 +01:00
geneve.c geneve: fix TOS inheriting for ipv4 2022-08-25 11:40:15 +02:00
gtp.c gtp: reset mac_header after decap 2021-06-28 12:44:17 -07:00
ifb.c ifb: fix building without CONFIG_NET_CLS_ACT 2021-11-18 19:16:04 +01:00
Kconfig lib/crypto: blake2s: include as built-in 2022-05-30 09:28:59 +02:00
LICENSE.SRC Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
loopback.c net: loopback: use NET_NAME_PREDICTABLE for name_assign_type 2022-12-21 17:36:38 +01:00
macsec.c net: macsec: fix net device access prior to holding a lock 2022-12-31 13:14:37 +01:00
macvlan.c macvlan: enforce a consistent minimal mtu 2022-11-26 09:24:50 +01:00
macvtap.c macvtap: advertise link netns via netlink 2022-04-13 20:59:07 +02:00
Makefile net: mhi: Remove MBIM protocol 2021-08-04 10:10:12 +01:00
mdio.c net: mdio: Correct function name mdio45_links_ok() in comment 2021-03-29 13:42:44 -07:00
mhi_net.c net: mhi: Fix memory leak in mhi_net_dellink() 2022-11-26 09:24:40 +01:00
mii.c net: mii: make mii_ethtool_gset() return void 2021-08-19 13:06:53 +01:00
net_failover.c net/net_failover: fix txq exceeding warning 2023-04-05 11:24:55 +02:00
netconsole.c net: netconsole: Add description for 'netconsole_target's extended attribute 2020-11-03 16:40:09 -08:00
nlmon.c net: don't include ethtool.h from netdevice.h 2020-11-23 17:27:04 -08:00
ntb_netdev.c ntb_netdev: Use dev_kfree_skb_any() in interrupt context 2022-12-31 13:14:20 +01:00
rionet.c rionet: Fix use correct return type for ndo_start_xmit() 2020-04-30 12:15:13 -07:00
sb1000.c sb1000: use ndo_siocdevprivate 2021-07-27 20:11:44 +01:00
Space.c wan: remove sbni/granch driver 2021-08-03 13:05:26 +01:00
sungem_phy.c net: sungem_phy: Add of_node_put() for reference returned by of_get_parent() 2022-08-03 12:03:48 +02:00
tap.c tap: tap_open(): correctly initialize socket uid 2023-03-10 09:39:15 +01:00
thunderbolt.c net: thunderbolt: fix memory leak in tbnet_open() 2022-12-14 11:37:30 +01:00
tun.c tun: tun_chr_open(): correctly initialize socket uid 2023-03-10 09:39:15 +01:00
veth.c veth: Fix race with AF_XDP exposing old or uninitialized descriptors 2023-01-12 11:59:09 +01:00
virtio_net.c virtio-net: Keep stop() to follow mirror sequence of open() 2023-02-09 11:26:38 +01:00
vrf.c vrf: fix packet sniffing for traffic originating from ip tunnels 2022-04-13 20:59:15 +02:00
vsockmon.c net: don't include ethtool.h from netdevice.h 2020-11-23 17:27:04 -08:00
vxlan.c vxlan: fix error return code in vxlan_fdb_append 2022-04-27 14:38:55 +02:00
xen-netfront.c xen-netfront: Fix NULL sring after live migration 2022-12-14 11:37:26 +01:00