Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753259AbbHERnK (ORCPT ); Wed, 5 Aug 2015 13:43:10 -0400 Received: from mail-la0-f41.google.com ([209.85.215.41]:34933 "EHLO mail-la0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752472AbbHERnH (ORCPT ); Wed, 5 Aug 2015 13:43:07 -0400 MIME-Version: 1.0 In-Reply-To: <1438795388-22743-3-git-send-email-edubezval@gmail.com> References: <1438795388-22743-1-git-send-email-edubezval@gmail.com> <1438795388-22743-3-git-send-email-edubezval@gmail.com> Date: Wed, 5 Aug 2015 14:43:05 -0300 Message-ID: Subject: Re: [PATCH 2/2] gpio/mxc: implement reading output gpio value From: Fabio Estevam To: Eduardo Valentin Cc: Linus Walleij , Alexandre Courbot , ubrindis56@gmail.com, Fabio Estevam , "linux-gpio@vger.kernel.org" , linux-kernel Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 573 Lines: 18 Hi Eduardo, On Wed, Aug 5, 2015 at 2:23 PM, Eduardo Valentin wrote: > In current implementation, reading the value of an output gpio > always return 0. The reason is because when a gpio is configured Have you tried setting the SION bit for the pad? This should fix the problem. Regards, Fabio Estevam -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/