From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnd Bergmann Subject: Re: [PATCH 1/1] serial: 8250_dw: Fix get_mctrl behaviour Date: Wed, 25 Feb 2015 21:07:04 +0100 Message-ID: <28028936.6Eanz3YmFb@wuerfel> References: <1424891056-1222-2-git-send-email-jonathar@broadcom.com> <3836329.RsbZqYqPAB@wuerfel> <54EE29CF.6090208@broadcom.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Return-path: In-Reply-To: <54EE29CF.6090208@broadcom.com> Sender: linux-kernel-owner@vger.kernel.org To: Jonathan Richardson Cc: Dmitry Torokhov , Anatol Pomazau , Scott Branden , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Greg Kroah-Hartman , Jiri Slaby , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org List-Id: devicetree@vger.kernel.org On Wednesday 25 February 2015 12:00:15 Jonathan Richardson wrote: > On 15-02-25 11:21 AM, Arnd Bergmann wrote: > > On Wednesday 25 February 2015 11:04:16 Jonathan Richardson wrote: > >> +- msr-override : array of strings to be used to override the individual > >> + modem status signals for DCD, DSR, CTS, and RI. If the property is not > >> + present, the individual signals are obtained from the modem status register. > >> + Strings accepted are "dcd", "dsr", "cts", and "ri". If "dcd", "dsr", or > >> + "cts" are present, these signals will always be reported as active. If > >> + "ri" is present, this signal will always be reported as inactive. > >> > > > > Did you copy this definition from another driver? If not, we should try > > to come up with a more natural way to do it. How about defining four > > boolean properties instead, like > > > > dcd-override > > dsr-override > > cts-override > > ri-override > > > > Simplifies the parser and the binding. > > I didn't see anything similar in another driver. I agree with the bools > instead of strings. Did you want to keep these in the Synopsis driver > for now or were you thinking of putting them somewhere that they could > be re-used? I'm fine with it either way. Unless someone else has an opinion on the matter, feel free to pick what makes sense to you. Arnd