From: Patrick DELAUNAY Date: Thu, 31 Oct 2019 14:43:33 +0000 Subject: [U-Boot] [PATCH 04/13] dm: pinctrl: migrate pinctrl-generic to livetree In-Reply-To: References: <20191023134448.20149-1-patrick.delaunay@st.com> <20191023134448.20149-5-patrick.delaunay@st.com> Message-ID: <22091a9e55d64fb6964dad4c0d0a6730@SFHDAG6NODE3.st.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Simon > From: Simon Glass > Sent: mercredi 30 octobre 2019 02:48 > > Hi Patrick, > > On Wed, 23 Oct 2019 at 07:45, Patrick Delaunay > wrote: > > > > Migrate pinctrl-generic to livetree: > > - ofnode_get_first_property > > - ofnode_get_next_property > > - ofnode_get_property_by_prop > > - ofnode_read_string_count > > - ofnode_read_string_index > > and get rid of DECLARE_GLOBAL_DATA_PTR. > > > > This solve parsing issue during test in sandbox for pin configuration > > (OF_LIVE is activated in sandbox_defconfig and sub node are not > > correctly parsed in pinctrl_generic_set_state_subnode with fdt lib > > API). > > > > Signed-off-by: Patrick Delaunay > > --- > > > > drivers/pinctrl/pinctrl-generic.c | 36 > > +++++++++++++++---------------- > > 1 file changed, 17 insertions(+), 19 deletions(-) > > > > It looks like this should use dev_read_...() too. Yes I miss it. Thanks > Regards, > Simon Regards Patrick