From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mika Westerberg Subject: Re: [PATCH v2] i2c: Add generic support passing secondary devices addresses Date: Tue, 19 Apr 2016 15:40:28 +0300 Message-ID: <20160419124028.GF1725@lahna.fi.intel.com> References: <1454254380-9246-1-git-send-email-jean-michel.hautbois@veo-labs.com> <20160415080111.GD1714@lahna.fi.intel.com> <1460992811.8946.22.camel@linux.intel.com> <5714FCBE.3060009@metafoo.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <5714FCBE.3060009-Qo5EllUWu/uELgA04lAiVw@public.gmane.org> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Lars-Peter Clausen Cc: Srinivas Pandruvada , Jean-Michel Hautbois , linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, galak-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org, ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg@public.gmane.org, mark.rutland-5wv7dgnIgG8@public.gmane.org, pawel.moll-5wv7dgnIgG8@public.gmane.org, robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, wsa-z923LK4zBo2bacvFa/9K2g@public.gmane.org, laurent.pinchart-ryLnwIuWjnjg/C1BVhZhaw@public.gmane.org, Jean-Michel Hautbois List-Id: devicetree@vger.kernel.org On Mon, Apr 18, 2016 at 05:26:54PM +0200, Lars-Peter Clausen wrote: > A generic API by indexes wont work. The order between DT and ACPI will most > likely be different. I'd even assume that the order will be different with > ACPI for the same device on different platforms. Yes, unfortunately that might be possible. > If we want to support ACPI over the same interface drivers need to provide a > lookup table that maps a name to the index. Indeed something like we already have with GPIOs. The lookup table could be filled from names in _DSD where it is available. -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html