Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 73D2FE00992; Wed, 20 May 2015 12:27:11 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [178.32.116.78 listed in list.dnswl.org] X-Greylist: delayed 6599 seconds by postgrey-1.32 at yocto-www; Wed, 20 May 2015 12:26:26 PDT Received: from 8.mo5.mail-out.ovh.net (8.mo5.mail-out.ovh.net [178.32.116.78]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id A8420E005B9 for ; Wed, 20 May 2015 12:26:26 -0700 (PDT) Received: from mail243.ha.ovh.net (b6.ovh.net [213.186.33.56]) by mo5.mail-out.ovh.net (Postfix) with SMTP id 8C463FFB93F for ; Wed, 20 May 2015 18:57:21 +0200 (CEST) Received: from localhost (HELO queueout) (127.0.0.1) by localhost with SMTP; 20 May 2015 18:57:21 +0200 Received: from tal33-3-82-233-81-124.fbx.proxad.net (HELO e6520eb.localdomain) (eric%eukrea.com@82.233.81.124) by ns0.ovh.net with SMTP; 20 May 2015 18:57:19 +0200 Date: Wed, 20 May 2015 18:57:18 +0200 From: Eric =?UTF-8?B?QsOpbmFyZA==?= To: Gary Thomas Message-ID: <20150520185718.38580cf6@e6520eb.localdomain> In-Reply-To: <555CBBAB.9070906@mlbassoc.com> References: <1432137253-5312-1-git-send-email-gary@mlbassoc.com> <20150520184919.3e6b8d9b@e6520eb.localdomain> <555CBBAB.9070906@mlbassoc.com> Organization: =?UTF-8?B?RXVrcsOpYQ==?= Electromatique X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.28; x86_64-redhat-linux-gnu) MIME-Version: 1.0 X-Ovh-Tracer-Id: 13614100200042900853 X-Ovh-Remote: 82.233.81.124 (tal33-3-82-233-81-124.fbx.proxad.net) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-OVH-SPAMSTATE: OK X-OVH-SPAMSCORE: -100 X-OVH-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeekuddrudekucetufdoteggodetrfcurfhrohhfihhlvgemucfqggfjnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeekuddrudekucetufdoteggodetrfcurfhrohhfihhlvgemucfqggfjnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd Cc: "meta-freescale@yoctoproject.org" , Otavio Salvador Subject: Re: [PATCH] kernel 3.14.28/gpiolib: Return GPIO logical value, not true value X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 May 2015 19:27:11 -0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Le Wed, 20 May 2015 10:51:55 -0600, Gary Thomas a =C3=A9crit : > On 2015-05-20 10:49, Eric B=C3=A9nard wrote: > > Le Wed, 20 May 2015 13:34:24 -0300, > > Otavio Salvador a =C3=A9crit : > > > >> On Wed, May 20, 2015 at 12:54 PM, Gary Thomas wrot= e: > >>> Previous versions of the kernel returned the logical value of > >>> GPIO signals (i.e. 0 or 1). This patch restores this behavior. > >>> > >>> Signed-off-by: Gary Thomas > >> > >> I am not sure this is a correct fix. I tried to find out the commit > >> which changed the behaviour without success. > >> > >> Fabio, is it possible for you to check how mainline is behaving? and > >> more important does it need any fix? > >> > > fixed mainline by : > > 25b35da gpio: generic: clamp retured value to [0,1] > > which is not in 3.4.28 >=20 > True enough, but this patch won't apply to 3.14.28 as the > code is very different. >=20 I think it should apply easily, as gpio-generic.c is very similar between 3.14.28 and mainline : 3.14.28 https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/tree/d= rivers/gpio/gpio-generic.c?h=3Dlinux-3.14.y&id=3Dv3.14.28#n142 commit 25b35da :=20 https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit= /drivers/gpio/gpio-generic.c?id=3D25b35da7f4cce82271859f1b6eabd9f3bd41a2bb Eric