From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id D9856E005B9; Wed, 20 May 2015 06:29:51 -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=-2.6 required=5.0 tests=BAYES_00,HTML_MESSAGE, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [85.31.212.143 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.0 HTML_MESSAGE BODY: HTML included in message Received: from fx803.security-mail.net (smtpout140.security-mail.net [85.31.212.143]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 5D5C7E0027F for ; Wed, 20 May 2015 06:29:49 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by fx803.security-mail.net (MTA) with SMTP id 999813B0C944 for ; Wed, 20 May 2015 15:29:48 +0200 (CEST) Received: from fx803 (localhost [127.0.0.1]) by fx803.security-mail.net (MTA) with ESMTP id 9302B3B0C8F7; Wed, 20 May 2015 15:29:48 +0200 (CEST) X-Virus-Scanned: E-securemail x-secugrey: score=-10 x-secugrey: filter=out_default,id=20150520152945-33626-00019,score=-20 x-secugrey: score=-10 x-secugrey: filter=out_default,id=20150520152945-33626-00020,score=-20 Received: from cg92.security-mail.net (cg92.security-mail.net [172.16.248.92]) by fx803.security-mail.net (MTA) with ESMTPS id AD5743B0C8B7; Wed, 20 May 2015 15:29:45 +0200 (CEST) Received: by cg92.security-mail.net (MTA, from userid 0) id 9B1DCAC8B; Wed, 20 May 2015 15:29:45 +0200 (CEST) Received: from [89.91.77.218] (account yannick.calmettes@analogway.com HELO [192.168.0.39]) by mails.optimails.com (CommuniGate Pro SMTP 6.0.11) with ESMTPSA id 1837976201; Wed, 20 May 2015 15:29:45 +0200 Message-ID: <555C8AE7.6040207@analogway.com> Date: Wed, 20 May 2015 15:23:51 +0200 From: Yannick Calmettes User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Fabio Estevam References: <555C80AE.2010806@analogway.com> <555C853B.6070805@analogway.com> <555C8971.4060708@analogway.com> In-Reply-To: X-Virus-Scanned: by Security-Mail Cc: "meta-freescale@yoctoproject.org" Subject: Re: Incorrect GPIO value with Kernel 3.14.28 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 13:29:51 -0000 Content-Type: multipart/alternative; boundary="------------000300000203060201010300" --------------000300000203060201010300 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit You can see below all the things I do related to this GPIO. In 3.10.53 it returns "1". *In DTS :* MX6QDL_PAD_SD4_DAT1__GPIO2_IO09 0xC0000000 *At startup :* echo 41 > /sys/class/gpio/export echo "in" > /sys/class/gpio/gpio41/direction *On Terminal :* root@mx6dl-rev0-main:~# cat /sys/class/gpio/gpio41/value 512 Yannick ** Le 20/05/2015 15:25, Fabio Estevam a écrit : > On Wed, May 20, 2015 at 10:17 AM, Yannick Calmettes > wrote: >> Sorry Fabio, it stills return 512. > How do you read the pins exactly? From kernel or from userspace? > > What was the response in 3.10.53? > > Regards, > > Fabio Estevam > > > > --------------000300000203060201010300 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit You can see below all the things I do related to this GPIO.
In 3.10.53 it returns "1".

In DTS :
MX6QDL_PAD_SD4_DAT1__GPIO2_IO09 0xC0000000

At startup :
echo 41 > /sys/class/gpio/export
echo "in" > /sys/class/gpio/gpio41/direction

On Terminal :
root@mx6dl-rev0-main:~# cat /sys/class/gpio/gpio41/value
512

Yannick


Le 20/05/2015 15:25, Fabio Estevam a écrit :
On Wed, May 20, 2015 at 10:17 AM, Yannick Calmettes
<yannick.calmettes@analogway.com> wrote:
Sorry Fabio, it stills return 512.
How do you read the pins exactly? From kernel or from userspace?

What was the response in 3.10.53?

Regards,

Fabio Estevam






 

--------------000300000203060201010300--