linux-sg2042/Documentation
Ard Biesheuvel acd7aaf51b netsec: ignore 'phy-mode' device property on ACPI systems
Since commit bbc4d71d63 ("net: phy: realtek: fix rtl8211e rx/tx
delay config"), the Realtek PHY driver will override any TX/RX delay
set by hardware straps if the phy-mode device property does not match.

This is causing problems on SynQuacer based platforms (the only SoC
that incorporates the netsec hardware), since many were built with
this Realtek PHY, and shipped with firmware that defines the phy-mode
as 'rgmii', even though the PHY is configured for TX and RX delay using
pull-ups.

From the driver's perspective, we should not make any assumptions in
the general case that the PHY hardware does not require any initial
configuration. However, the situation is slightly different for ACPI
boot, since it implies rich firmware with AML abstractions to handle
hardware details that are not exposed to the OS. So in the ACPI case,
it is reasonable to assume that the PHY comes up in the right mode,
regardless of whether the mode is set by straps, by boot time firmware
or by AML executed by the ACPI interpreter.

So let's ignore the 'phy-mode' device property when probing the netsec
driver in ACPI mode, and hardcode the mode to PHY_INTERFACE_MODE_NA,
which should work with any PHY provided that it is configured by the
time the driver attaches to it. While at it, document that omitting
the mode is permitted for DT probing as well, by setting the phy-mode
DT property to the empty string.

Fixes: 533dd11a12 ("net: socionext: Add Synquacer NetSec driver")
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20201018163625.2392-1-ardb@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2020-10-20 15:59:43 -07:00
..
ABI dmaengine updates for v5.10-rc1 2020-10-15 14:33:52 -07:00
PCI Documentation: better locations for sysfs-pci, sysfs-tagging 2020-10-09 09:33:23 -06:00
RCU docs: Fix function name trailing double-()s 2020-08-24 17:19:07 -06:00
accounting
admin-guide networking changes for the 5.10 merge window 2020-10-15 18:42:13 -07:00
arm As hoped, things calmed down for docs this cycle; fewer changes and almost 2020-10-12 16:21:29 -07:00
arm64 As hoped, things calmed down for docs this cycle; fewer changes and almost 2020-10-12 16:21:29 -07:00
block for-5.9/drivers-20200803 2020-08-05 10:51:40 -07:00
bpf bpf: Migrate from patchwork.ozlabs.org to patchwork.kernel.org. 2020-10-11 22:05:47 +02:00
cdrom A handful of obvious fixes that wandered in during the merge window. 2020-08-13 13:57:45 -07:00
core-api dma-mapping updates for 5.10 2020-10-15 14:43:29 -07:00
cpu-freq
crypto crypto: af_alg - add extra parameters for DRBG interface 2020-09-25 17:48:52 +10:00
dev-tools linux-kselftest-next-5.10-rc1 2020-10-15 15:14:32 -07:00
devicetree netsec: ignore 'phy-mode' device property on ACPI systems 2020-10-20 15:59:43 -07:00
doc-guide docs: Document cross-referencing between documentation pages 2020-09-16 11:09:51 -06:00
driver-api networking changes for the 5.10 merge window 2020-10-15 18:42:13 -07:00
fault-injection nvme: rename and document nvme_end_request 2020-08-21 17:14:28 -06:00
fb drm next for 5.10-rc1 2020-10-15 10:46:16 -07:00
features powerpc/mm: Remove DEBUG_VM_PGTABLE support on powerpc 2020-09-02 22:14:26 +10:00
filesystems Driver Core patches for 5.10-rc1 2020-10-14 16:09:32 -07:00
firmware-guide docs: add some new files to their respective index.rst files 2020-09-10 10:48:20 -06:00
firmware_class
fpga Char/Misc driver patches for 5.9-rc1 2020-08-05 11:43:47 -07:00
gpu drm/amdgpu: Add initial kernel documentation for the amd_ip_block_type structure. v3 2020-09-22 17:37:38 -04:00
hid
hwmon - New Drivers 2020-10-14 15:56:58 -07:00
i2c Merge branch 'i2c/for-5.9' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux 2020-08-13 18:41:00 -07:00
ia64 docs/ia64: Drop obsolete Xen documentation 2020-08-31 16:16:03 -06:00
ide
iio Documentation: iio: fix a typo 2020-09-09 11:41:20 -06:00
infiniband
input
isdn
kbuild kbuild: doc: describe proper script invocation 2020-10-13 18:38:26 -07:00
kernel-hacking
leds leds: we don't want people to use LED subsystem for vibrations 2020-08-17 18:04:15 +02:00
litmus-tests
livepatch
locking seqlock: Introduce seqcount_latch_t 2020-09-10 11:19:28 +02:00
m68k
maintainer Documentation/maintainer: rehome sign-off process 2020-09-03 15:39:24 -06:00
mhi
mips dt: Remove booting-without-of.rst 2020-10-13 13:33:16 -05:00
misc-devices
netlabel
networking icmp: randomize the global rate limiter 2020-10-16 16:47:09 -07:00
nios2
nvdimm
openrisc
parisc
pcmcia
power
powerpc Devicetree updates for v5.10: 2020-10-14 15:31:58 -07:00
process docs: programming-languages: refresh blurb on clang support 2020-10-05 09:44:11 -06:00
riscv
s390 It's been a busy cycle for documentation - hopefully the busiest for a 2020-08-04 22:47:54 -07:00
scheduler docs: scheduler: fix the directory name on two files 2020-09-10 10:45:45 -06:00
scsi SPDX patches for 5.10-rc1 2020-10-14 16:19:42 -07:00
security Documentation: remove current_security() reference 2020-09-09 11:33:59 -06:00
sh dt: Remove booting-without-of.rst 2020-10-13 13:33:16 -05:00
sound ALSA: hda: use consistent HDAudio spelling in comments/docs 2020-09-02 19:31:32 +02:00
sparc
sphinx docs: Add automatic cross-reference for documentation pages 2020-09-16 11:09:51 -06:00
sphinx-static
spi
staging remoteproc updates for v5.9 2020-08-11 11:17:45 -07:00
target
timers
trace Updates for tracing and bootconfig: 2020-10-15 15:51:28 -07:00
translations Documentation: Chinese translation of Documentation/arm64/amu.rst 2020-09-28 15:24:24 -06:00
usb
userspace-api drm next for 5.10-rc1 2020-10-15 10:46:16 -07:00
virt Char/Misc driver patches for 5.10-rc1 2020-10-15 10:01:51 -07:00
vm docs/vm: fix 'mm_count' vs 'mm_users' counter confusion 2020-10-13 18:38:32 -07:00
w1 docs: w1: w1_therm: Fix broken xref, mistakes, clarify text 2020-10-08 09:47:15 +02:00
watchdog watchdog: add support for adjusting last known HW keepalive time 2020-08-05 18:43:02 +02:00
x86 Devicetree updates for v5.10: 2020-10-14 15:31:58 -07:00
xtensa
.gitignore
COPYING-logo
Changes
CodingStyle
Kconfig
Makefile
SubmittingPatches
asm-annotations.rst
atomic_bitops.txt
atomic_t.txt
conf.py Make the docs build "work" with Sphinx 3.x 2020-09-04 10:13:45 -06:00
docutils.conf
dontdiff
index.rst
logo.gif
memory-barriers.txt docs/memory-barriers.txt: Fix references for DMA*.txt files 2020-08-31 16:14:44 -06:00
watch_queue.rst docs: watch_queue: fix some warnings 2020-09-10 10:48:56 -06:00