Thread (13 messages) flat view 13 messages, 6 authors, 2011-06-13
STALE5561d

[PATCH 3/4] ARM: pmu: add OF probing support

From: Mark.Rutland@arm.com (Mark Rutland)
Date: 2011-06-13 13:48:05

-----Original Message-----
From: Rob Herring [mailto:robherring2 at gmail.com]
Sent: 13 June 2011 14:40
To: Mark Rutland
Cc: linux-arm-kernel at lists.infradead.org; Jamie Iles; Will Deacon
Subject: Re: [PATCH 3/4] ARM: pmu: add OF probing support

Mark,

On 06/13/2011 04:35 AM, Mark Rutland wrote:
quoted
This is based on an earlier patch from Rob Herring
[off-list ref]
quoted
quoted
Add OF match table to enable OF style driver binding. The dts entry
is like
quoted
quoted
this:

pmu {
   compatible = "arm,cortex-a9-pmu";
   interrupts = <100 101>;
};

The use of pdev->id as an index breaks with OF device binding, so
set the type
quoted
quoted
based on the OF compatible string.
This modification sets the PMU hardware type based on data embedded
in the
quoted
binding, allowing easy addition of new PMU types in future.

Support for new PMU types not provided by devicetree can be added
later using
quoted
platform_device_id tables in a similar fashion.

Cc: Jamie Iles <redacted>
Cc: Rob Herring <redacted>
Cc: Will Deacon <redacted>
---

 Rob: would you be happy to merge this into your tree? or would you
 rather I sent it through Russell?
Looks good to me. I'm happy for you to take it.

Rob
Thanks. Mind if I add your Ack?

Mark.

-- IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium.  Thank you.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help