On Wed, Feb 10, 2016 at 11:47:29AM +0100, Marek Szyprowski wrote:
From: Tomeu Vizoso <tomeu.vizoso@xxxxxxxxxxxxx>I've just realised, we can't do this. We need to read the peripheral
Reading the periphid when the Primecell device is registered means that
the apb pclk must be available by then or the device won't be registered
at all.
By reading the periphid in amba_match() we can return -EPROBE_DEFER if
the apb pclk isn't there yet and the device will be retried later.
ID at registration time, because that's published to userspace via
(a) a sysfs attribute, and (b) as part of the uevent, which will be
used by udev to locate the driver module.
So, this will have the side effect of breaking systems which have
AMBA primecell devices configured as modules.
Sorry, I can't apply this. We can't regress existing platforms for
the sake of introducing new platforms to this code.