From mboxrd@z Thu Jan 1 00:00:00 1970 From: narmstrong@baylibre.com (Neil Armstrong) Date: Fri, 24 Mar 2017 17:52:10 +0100 Subject: [RFT PATCH 5/6] pinctrl: meson: use gpio-ranges from DT In-Reply-To: References: <1490286449-19448-1-git-send-email-narmstrong@baylibre.com> <1490286449-19448-6-git-send-email-narmstrong@baylibre.com> Message-ID: <45f14809-8303-b58b-1f38-7b76a3b7c00b@baylibre.com> To: linus-amlogic@lists.infradead.org List-Id: linus-amlogic.lists.infradead.org On 03/23/2017 09:09 PM, Martin Blumenstingl wrote: > Hi Neil, > > On Thu, Mar 23, 2017 at 5:27 PM, Neil Armstrong wrote: >> When trying to add a gpio-hog, we enter a weird loop where the gpio-ranges >> is needed when gpiochip_add_data() is called but in the current implementation >> the ranges are added from the driver afterwards. >> >> A simple solution is to rely on the DR gpio-ranges attribute and remove the >> call to gpiochip_add_pin_range(). > did you mean devicetree or DT instead of "DR"? > > > Regards, > Martin > Indeed, sorry for the typo. Neil