Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1334669

Re: [PATCH v5 RESEND 4/5] ARM: amba: Move reading of periphid to amba_match()

From Russell King - ARM Linux <linux@arm.linux.org.uk>
Newsgroups linux.kernel
Subject Re: [PATCH v5 RESEND 4/5] ARM: amba: Move reading of periphid to amba_match()
Date 2016-02-15 19:00 +0100
Message-ID <r2vBf-4if-1@gated-at.bofh.it> (permalink)
References <r0Avn-12b-5@gated-at.bofh.it> <r0Avn-12b-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, Feb 10, 2016 at 11:47:29AM +0100, Marek Szyprowski wrote:
> From: Tomeu Vizoso <tomeu.vizoso@collabora.com>
> 
> 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.

I've just realised, we can't do this.  We need to read the peripheral
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.

-- 
RMK's Patch system: http://www.arm.linux.org.uk/developer/patches/
FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up
according to speedtest.net.

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v5 RESEND 4/5] ARM: amba: Move reading of periphid to  amba_match() Marek Szyprowski <m.szyprowski@samsung.com> - 2016-02-10 11:50 +0100
  Re: [PATCH v5 RESEND 4/5] ARM: amba: Move reading of periphid to  amba_match() Russell King - ARM Linux <linux@arm.linux.org.uk> - 2016-02-15 19:00 +0100
    Re: [PATCH v5 RESEND 4/5] ARM: amba: Move reading of periphid to  amba_match() Russell King - ARM Linux <linux@arm.linux.org.uk> - 2016-02-16 17:40 +0100
    Re: [PATCH v5 RESEND 4/5] ARM: amba: Move reading of periphid to  amba_match() Marek Szyprowski <m.szyprowski@samsung.com> - 2016-02-17 09:00 +0100
      Re: [PATCH v5 RESEND 4/5] ARM: amba: Move reading of periphid to  amba_match() Russell King - ARM Linux <linux@arm.linux.org.uk> - 2016-02-17 21:20 +0100

csiph-web