Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753532AbdCOVSE convert rfc822-to-8bit (ORCPT ); Wed, 15 Mar 2017 17:18:04 -0400 Received: from mout.kundenserver.de ([212.227.126.133]:58305 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750819AbdCOVSB (ORCPT ); Wed, 15 Mar 2017 17:18:01 -0400 Date: Wed, 15 Mar 2017 22:10:45 +0100 (CET) From: Stefan Wahren To: Ksenija Stanojevic Cc: linux-input@vger.kernel.org, Lee Jones , pmeerw@pmeerw.net, jic23@kernel.org, linux-kernel@vger.kernel.org, Dmitry Torokhov , knaack.h@gmx.de, lars@metafoo.de, harald@ccbib.org, fabio.estevam@freescale.com, linux-iio@vger.kernel.org, marex@denx.de Message-ID: <365485304.502411.1489612245583@email.1und1.de> In-Reply-To: <20170314110545.54jz53xx36vsc3bo@dell> References: <282870591.38324.1488399050890@email.1und1.de> <20170301204855.GG30349@dtor-ws> <20170314110545.54jz53xx36vsc3bo@dell> Subject: Re: [PATCH v14 1/5] mfd: mxs-lradc: Add support for mxs-lradc MFD MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT X-Priority: 3 Importance: Medium X-Mailer: Open-Xchange Mailer v7.8.1-Rev32 X-Originating-Client: open-xchange-appsuite X-Provags-ID: V03:K0:tBX3Vq9NvX/pCvtwL3gc5ZQgRra+4Ik9zKE2v52iR3HSwwmwLak TGOorTCGA4AdS2x34kiDfqyaYthFM2Fls7EAEo2JZx6owqCcDEfiddfqNe7nZJaXeO3O1uN mdgRoYsTRK5kNJvO/7i7CEUpMCdtho/uzCRIvykfIQFBTp2Q+HLfLQVrLJ8g8pirYssCxkB n76Fld4YonWN9JP6LOYBA== X-UI-Out-Filterresults: notjunk:1;V01:K0:pcj36GWTNN4=:GWo4/59NDEHyt71Wkhrvhb u6ga6xDH5nLSx5/lcNrN1rJfUyd3mVH1b0vY4xlkeOtK++RoGUNoZ4E3CiXDIUC++CVogBIeL LuZy54wqK2KBMOljQZ4j8FmeUV9T/kpF/VxIjzLQcVy5SgTrl6IUSmkh/zsg1Y8XxWroQe4F7 mXhrQ/B/rpk2kWeRxh/fLAze+VGH7khlhO2IZkbefD7bJYzPJgDny5khQ690UxZY367kCVXhx I9hXgJwSURZqdwpTszYUTDQt48SCdUqgdwTOcw+44B+GY/dZA8QgjlsxnyI1hY9L+hcfL3Qd7 1mm41mtfs44vJ/60kqPXycfVyZU+G1n/a+AaOd3HJsiQCYDRlZg89Z4kpqZOwYTMDLBoTaNZ3 NfGSs8jmDlKsfzBNCNdMNeBzlbprNU6dBCWirK++qrdG5QAX3yAeRc9qjWDJZdrMU2+jdqRJt 86Tf44LFGeI7yE2FTT1fKfuohAPtV4lY1HsFM0uUdAnrBAuTBqLDlMGApA59mCCo/AdZwZujR nn/wfo+xpyAIiyNKqRrH/aeKOXmwBl3p3xOpOwh82/8gJL48GcAkKfk6i0hTjuDNRmHLfc6JI YpvblbRjjmaRPf2zbFI/5jZl6CIE2WgckwRaG/SgzFOg+INuJflIzqM5iaBQZMM5i1TGxbOW3 RvgXb4SqdyaoX+CkJGldxPkKR0vfUur4oyhG22XYc0XAIRb/WhhgTQggQPmbkAGy6AwI8ZHqR Zz8IgT2dGbg3sU/e Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1184 Lines: 41 Hi Ksenija, > Lee Jones hat am 14. März 2017 um 12:05 geschrieben: > > > On Wed, 01 Mar 2017, Dmitry Torokhov wrote: > > > On Wed, Mar 01, 2017 at 09:10:50PM +0100, Stefan Wahren wrote: ... > > > > > > Since touchscreen is optional it doesn't make to try to register it, notice in the touchscreen driver there is no touchscreen, give the user a confusing error and finally disable the clock. > > > > > > Here are my suggestions: > > > > > > 1) Use the solution from Patch V6 but with an explaining comment that touchscreen is optional > > > > > > if (!lradc->touchscreen_wire) > > > return 0; > > > > > > 2) Return a special error from touchscreen registration so mfd knowns this result is expected. > > > > > > I'm open for better solutions. > > > > > > @Lee: What's your opinion? > > > > I am not Lee, but given that this module already parses touchscreen > > properties and knows whether there is touchscreen or not, #1 seems > > simple and logical. > > Sorry for the delay, I'm currently behind on my mail due to vacation > and conferences. > > +1 > could you please submit a V15? It would be great to get this into 4.12. Thanks Stefan