public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
From: linux@prisktech.co.nz (Tony Prisk)
To: linux-arm-kernel@lists.infradead.org
Subject: GPIO sysfs 'default' values
Date: Thu, 21 Feb 2013 20:11:20 +1300	[thread overview]
Message-ID: <1361430680.10390.7.camel@gitbox> (raw)

Hi Grant, Linus.

I was testing our new gpio/pinctrl driver today and noticed something a
little weird.

I exported gpio0 via sysfs and echoed the direction value - it was 'in'.
This pin is used to control an LCD panel, and is actually in 'out' mode.
If I write 'in' to direction, it changes mode to 'in' and the panel
turns off. Setting it back to 'out' and value=0, and the panel turns on
again.

I noticed that I had no gpiochip->get_direction, so I added it, but the
result was the same.

Any idea what I've missed?

Regards
Tony Prisk

             reply	other threads:[~2013-02-21  7:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-21  7:11 Tony Prisk [this message]
2013-02-21  7:27 ` GPIO sysfs 'default' values Tony Prisk
2013-02-21  7:37 ` Lothar Waßmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1361430680.10390.7.camel@gitbox \
    --to=linux@prisktech.co.nz \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox