Re: [PATCH 2/2] of: search the best compatible match first in __of_match_node()

2014-02-17 Thread Kevin Hao
On Mon, Feb 17, 2014 at 05:58:34PM +, Grant Likely wrote: > This seems wrong also. The compatible order should be checked for even > when m->name or m->type are set. You actually need to score the entries > to do this properly. The pseudo-code should look like this: > > uint best_score = ~0;

Re: PCI-PCI bridge configuration in linux device tree

2014-02-17 Thread Scott Wood
On Sat, 2014-02-15 at 18:03 +0530, Anand Mistry wrote: > Hello, > > We are working on a cPCI based application involving MPC8313 processor. The > cPCI back-plane has a PCI-PCI bridge on it. > > While booting, the linux kernel(2.6.23) 2.6.23 is over 6 years old. Why are you using it for new har

Re: [PATCH v2 10/11] powerpc/perf: add kconfig option for hypervisor provided counters

2014-02-17 Thread Cody P Schafer
On 02/16/2014 11:11 PM, Michael Ellerman wrote: On Fri, 2014-02-14 at 16:25 -0800, Cody P Schafer wrote: On Fri, Feb 14, 2014 at 04:32:13PM -0600, Scott Wood wrote: On Fri, 2014-02-14 at 14:02 -0800, Cody P Schafer wrote: diff --git a/arch/powerpc/platforms/Kconfig.cputype b/arch/powerpc/plat

Re: Anyone using SysRQ key sequences on console serial port ?

2014-02-17 Thread Scott Wood
On Sun, 2014-02-16 at 10:56 -0500, Paul Gortmaker wrote: > On Fri, Feb 14, 2014 at 3:42 PM, John Donnelly wrote: > > Hi, > > > > I tried using the SysRq hotkey sequence on a serial console - > > 3.11.0-5-powerpc-e500mc system, by issuing a " break " and the system > > immediately wedges after dis

Re: [PATCH] of: give priority to the compatible match in __of_match_node()

2014-02-17 Thread Grant Likely
On Thu, 13 Feb 2014 13:01:42 -0600, Rob Herring wrote: > On Wed, Feb 12, 2014 at 5:38 AM, Kevin Hao wrote: > > When the device node do have a compatible property, we definitely > > prefer the compatible match besides the type and name. Only if > > there is no such a match, we then consider the ca

Re: [PATCH 2/2] of: search the best compatible match first in __of_match_node()

2014-02-17 Thread Grant Likely
On Fri, 14 Feb 2014 09:53:40 -0600, Rob Herring wrote: > On Thu, Feb 13, 2014 at 11:22 PM, Kevin Hao wrote: > > Currently, of_match_node compares each given match against all node's > > compatible strings with of_device_is_compatible. > > > > To achieve multiple compatible strings per node with o

Re: [PATCH 2/2] of: search the best compatible match first in __of_match_node()

2014-02-17 Thread Grant Likely
On Fri, 14 Feb 2014 13:22:46 +0800, Kevin Hao wrote: > Currently, of_match_node compares each given match against all node's > compatible strings with of_device_is_compatible. > > To achieve multiple compatible strings per node with ordering from > specific to generic, this requires given matches