Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935210AbeAHQtF (ORCPT + 1 other); Mon, 8 Jan 2018 11:49:05 -0500 Received: from mail-wr0-f193.google.com ([209.85.128.193]:39224 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935173AbeAHQtB (ORCPT ); Mon, 8 Jan 2018 11:49:01 -0500 X-Google-Smtp-Source: ACJfBova8g3rT5PV8L++17WJffubScBO/bM9L5HAO9iOfe6EbKd1qsRFcMyraB2pjoJ25oDkaU7Xow== Date: Mon, 8 Jan 2018 17:48:55 +0100 From: Gary Bisson To: Stefan Agner Cc: linus.walleij@linaro.org, shawnguo@kernel.org, kernel@pengutronix.de, fabio.estevam@nxp.com, aisheng.dong@nxp.com, robh+dt@kernel.org, mark.rutland@arm.com, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Arvind Yadav Subject: Re: [PATCH v2 1/5] pinctrl: imx: use struct imx_pinctrl_soc_info as a const Message-ID: <20180108164855.GA6504@t450s.lan> References: <20180106142553.15322-1-stefan@agner.ch> <20180106142553.15322-2-stefan@agner.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180106142553.15322-2-stefan@agner.ch> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: Hi Stefan, On Sat, Jan 06, 2018 at 03:25:49PM +0100, Stefan Agner wrote: > For some SoCs the struct imx_pinctrl_soc_info is passed through > of_device_id.data which is const. Most variables are already const > or otherwise not written. However, some fields are modified at > runtime. Move those fields to the dynamically allocated struct > imx_pinctrl. > > Fixes: b3060044e495 ("pinctrl: freescale: imx7d: make of_device_ids const") > Cc: Shawn Guo > Cc: Arvind Yadav > Cc: Dong Aisheng > Cc: Gary Bisson > Signed-off-by: Stefan Agner This is actually more or less a revert of a previous commit: b28742be4709 pinctrl: imx: remove const qualifier of imx_pinctrl_soc_info Note that the idea for this commit was to get dt-overlays working and able to do pinctrl changes using configfs interface to load an overlay (using Pantelis patch). Not sure where we stand on loading such overlay from user-space, is it still something that will happen? Regards, Gary