Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753603AbbBSXQN (ORCPT ); Thu, 19 Feb 2015 18:16:13 -0500 Received: from skprod2.natinst.com ([130.164.80.23]:43676 "EHLO ni.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752621AbbBSXQL (ORCPT ); Thu, 19 Feb 2015 18:16:11 -0500 Date: Thu, 19 Feb 2015 17:15:58 -0600 From: Josh Cartwright To: Bryan Wu Cc: Ricardo Ribalda Delgado , Rob Herring , Richard Purdie , Linux LED Subsystem , lkml Subject: Re: [PATCH] led/led-class: Handle LEDs with the same name Message-ID: <20150219231558.GA30417@jcartwri.amer.corp.natinst.com> References: <1423657572-22299-1-git-send-email-ricardo.ribalda@gmail.com> MIME-Version: 1.0 In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-MIMETrack: Itemize by SMTP Server on US-AUS-MGWOut1/AUS/H/NIC(Release 8.5.3FP6|November 21, 2013) at 02/19/2015 05:15:58 PM, Serialize by Router on US-AUS-MGWOut1/AUS/H/NIC(Release 8.5.3FP6|November 21, 2013) at 02/19/2015 05:15:58 PM, Serialize complete at 02/19/2015 05:15:58 PM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2015-02-19_03:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1175 Lines: 26 On Tue, Feb 17, 2015 at 04:52:45PM -0800, Bryan Wu wrote: > On Tue, Feb 17, 2015 at 4:32 PM, Ricardo Ribalda Delgado [..] > > Then we have TWO gpios chip. Each of them have a led named red. When > > the second gpio-led is probed we have an error. Everything else > > (address offset, phandle, device renaming) is handled properly already > > by the kernel. > > > > On this system I cannot control card.dtb, or which type of cards will > > the user connect to the system. The DT is generated in run-time based > > on the hardware connected to the pci slots. > > > So you're supposed to get 2 card.dtb files for 2 PCI cards, right? > They should be different and you need to choose different name for the > hardware. Is this solvable by adding support for led properties in an aliases { } node? I suppose that would mean you'd need to also overlay a selection of which LED is "red", but I don't know if that is a problem. Josh -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/