From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750992AbdE1Qah (ORCPT ); Sun, 28 May 2017 12:30:37 -0400 Received: from goliath.siemens.de ([192.35.17.28]:35548 "EHLO goliath.siemens.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750942AbdE1Qaf (ORCPT ); Sun, 28 May 2017 12:30:35 -0400 Subject: Re: [PATCH v3 09/10] gpio-exar/8250-exar: Make set of exported GPIOs configurable To: Andy Shevchenko Cc: Greg Kroah-Hartman , Linus Walleij , Alexandre Courbot , Linux Kernel Mailing List , "linux-serial@vger.kernel.org" , "linux-gpio@vger.kernel.org" , Sudip Mukherjee , Sascha Weisenberger References: <1f047bc2a36a3808170cb32e18f272109e675d0c.1495814557.git.jan.kiszka@siemens.com> From: Jan Kiszka Message-ID: <678c7b34-211e-a3a3-29ef-5c4b6a0cf400@siemens.com> Date: Sun, 28 May 2017 18:30:13 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2017-05-27 15:48, Andy Shevchenko wrote: > On Fri, May 26, 2017 at 7:02 PM, Jan Kiszka wrote: >> On the SIMATIC, IOT2040 only a single pin is exportable as GPIO, the >> rest is required to operate the UART. To allow modeling this case, >> expand the platform device data structure to specify a (consecutive) pin >> subset for exporting by the gpio-exar driver. > >> + unsigned int first_pin; > >> + if (device_property_read_u32(&pdev->dev, "first_pin", &first_pin) < 0 || > > And again, we need to follow the rules of the device property > bindings. (No underscores - use dashes; name should be registered). > > Without Rafael's / Mika's and Rob's opinions I would not go with a > such name even for internal property. > > DWC3 (USB) for example is still using "linux," prefix. I dunno if it's > the case here, I mean can or can't we use similar approach. > >> + device_property_read_u32(&pdev->dev, "npins", &npins) < 0) > > "ngpios" > Yeah, forgot to change all this before reposting. Will make the names DT-alike. But there is nothing to register: DT shall stay away from this device. Jan -- Siemens AG, Corporate Technology, CT RDA ITP SES-DE Corporate Competence Center Embedded Linux