Re: [MeeGo-Dev][PATCH] Topcliff: Update PCH_GPIO driver to 2.6.35

From: Masayuki Ohtake
Date: Tue Sep 28 2010 - 03:21:13 EST


Hi Mike and Mark,

> [root@localhost gpio]# ls
> export gpiochip244 unexport
> [root@localhost gpio]# echo 1 > export
> bash: echo: write error: Invalid argument
> [root@localhost gpio]#

I could confirm GPIO node creation with success using the following command.
echo 244 > export

It seems "gpiochip244" means base GPIO number is 244 NOT 0.

Thanks, Ohtake(OKISemi)
----- Original Message -----
From: "Mike Frysinger" <vapier@xxxxxxxxxx>
To: "Masayuki Ohtake" <masa-korg@xxxxxxxxxxxxxxx>
Cc: "Mark Brown" <broonie@xxxxxxxxxxxxxxxxxxxxxxxxxxx>; "Andrew Morton" <akpm@xxxxxxxxxxxxxxxxxxxx>; "Samuel Ortiz"
<sameo@xxxxxxxxxxxxxxx>; "Randy Dunlap" <randy.dunlap@xxxxxxxxxx>; "Alek Du" <alek.du@xxxxxxxxx>;
<richard.rojfors@xxxxxxxxxxxxxxx>; <meego-dev@xxxxxxxxx>; "ML linux-kernel" <linux-kernel@xxxxxxxxxxxxxxx>; "Qi"
<qi.wang@xxxxxxxxx>; <andrew.chih.howe.khor@xxxxxxxxx>; <gregkh@xxxxxxx>; "Yong Y" <yong.y.wang@xxxxxxxxx>; "Tomoya
MORINAGA" <morinaga526@xxxxxxxxxxxxxxx>; <joel.clark@xxxxxxxxx>; <margie.foster@xxxxxxxxx>; <kok.howg.ewe@xxxxxxxxx>
Sent: Tuesday, September 28, 2010 2:32 PM
Subject: Re: [MeeGo-Dev][PATCH] Topcliff: Update PCH_GPIO driver to 2.6.35


> On Tue, Sep 28, 2010 at 01:25, Masayuki Ohtake wrote:
> >> find out what range of GPIO numbers your driver is using and use those
> >> instead of "1"
> >
> > I have attached a part of our source file.
> >
> > Since I set "ngpio=12",
> > I guess 0-11 can be used, thus, "echo 1 > export" should be success too.
> > Is this true ?
>
> there are often multiple gpio sources in a system. whichever one is
> registered first (usually the arch/cpu specific one) tends to start at
> 0.
>
> i'm merely providing generic gpio information. i know nothing of your
> specific arch/cpu/board setup. you'll have to do some
> digging/debugging on your side.
> -mike
>


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/