On Tue 01 May 14:31 PDT 2018, Rob Herring wrote:
Deferred probe will currently wait forever on dependent devices to probe,But how do you know if this is the case?
but sometimes a driver will never exist. It's also not always critical for
a driver to exist. Platforms can rely on default configuration from the
bootloader or reset defaults for things such as pinctrl and power domains.
This is often the case with initial platform support until various driversCan you please name platform that has enough support for Alexander to
get enabled.
care about backwards and forwards compatibility but lacks a pinctrl
driver.
There's at least 2 scenarios where deferred probe can renderI agree that there is a chance that you _might_ get some parts of the
a platform broken. Both involve using a DT which has more devices and
dependencies than the kernel supports. The 1st case is a driver may be
disabled in the kernel config.
system working by relying on the boot loader configuration, but
misconfiguration issues applies to any other fundamental providers, such
as clocks, regulators, power domains and gpios as well.
The 2nd case is the kernel version mayAs above, this is in no way limited to pinctrl drivers.
simply not have the dependent driver. This can happen if using a newer DT
(provided by firmware perhaps) with a stable kernel version.
Unfortunately, this change breaks with modules as we have no way ofOn the Qualcomm platform most drivers are tristate and on most platforms
knowing when modules are done loading. One possibility is to make this
opt in or out based on compatible strings rather than at a subsystem level.
Ideally this information could be extracted automatically somehow. OTOH,
maybe the lists are pretty small. There's only a handful of subsystems
that can be optional, and then only so many drivers in those that can be
modules (at least for pinctrl, many drivers are built-in only).
there are size restrictions in the proprietary boot loader preventing us
from boot the kernel after switching all these frameworks from tristate
to bool (which feels like a more appropriate solution than your hack).
Cc: Alexander Graf <agraf@xxxxxxx>There are two cases here:
Signed-off-by: Rob Herring <robh@xxxxxxxxxx>
---
This patch came out of a discussion on the ARM boot-architecture
list[1] about DT forwards and backwards compatibility issues. There are
issues with newer DTs breaking on older, stable kernels. Some of these
are difficult to solve, but cases of optional devices not having
kernel support should be solvable.
1) DT contains compatibles that isn't supported by the kernel. In this
case the associated device will remain in the probe deferral list and
user space won't know about the device.
2) DT contains compatibles known to the kernel but has new optional
properties that makes things functional or works around hardware bugs.
I tested this on a RPi3 B with the pinctrl driver forced off. With thisCool, so what about graphics, audio, networking, usb and all the other
change, the MMC/SD and UART drivers can function without the pinctrl
driver.
things that people actually expect when they _use_ a distro?