From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752770AbdKHV4c (ORCPT ); Wed, 8 Nov 2017 16:56:32 -0500 Received: from fllnx209.ext.ti.com ([198.47.19.16]:34618 "EHLO fllnx209.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750777AbdKHV4a (ORCPT ); Wed, 8 Nov 2017 16:56:30 -0500 Subject: Re: [PATCH 8/9] ASoC: tlv320aic31xx: Fix the reset GPIO OF name To: Mark Brown CC: Liam Girdwood , Rob Herring , Mark Rutland , =?UTF-8?Q?Beno=c3=aet_Cousson?= , Tony Lindgren , Shawn Guo , Sascha Hauer , , , References: <20171108212505.28320-1-afd@ti.com> <20171108212505.28320-9-afd@ti.com> <20171108213639.iymb7wuyjpuirbdu@sirena.co.uk> From: "Andrew F. Davis" Message-ID: <80169c43-ad7f-d89c-61bf-5ca054aacda5@ti.com> Date: Wed, 8 Nov 2017 15:53:51 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20171108213639.iymb7wuyjpuirbdu@sirena.co.uk> Content-Type: text/plain; charset="windows-1252" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/08/2017 03:36 PM, Mark Brown wrote: > On Wed, Nov 08, 2017 at 03:25:04PM -0600, Andrew F. Davis wrote: > >> - ret = of_get_named_gpio(np, "gpio-reset", 0); >> + ret = of_get_named_gpio(np, "reset-gpio", 0); > > This is obviously an incompatible change in the binding which will break > any production DTs relying on the current behaviour. You need to keep > support for the existing property. > I understand the reasons not to change driver behavior wrt DT, but this driver did not make functional use of this gpio, only going forward will this gpio be used for actually reseting the device (in some patches I will post soon). So I would like to fix this incorrect binding *before* fixing it will cause behavior incompatibilities. > It also doesn't look like a good fix if we're aiming for conformance > with DT naming conventions as unless things changed all GPIO related > properties are supposed to end -gpios even if they can only ever specify > a single GPIO. > If that is the new standard I can fix this patch to use -gpios. I know we cant change all messed up DT bindings, but I hope an exception can be make in this case for sanity sake.