[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <000e01cb5edd$b750f2b0$66f8800a@maildom.okisemi.com>
Date: Tue, 28 Sep 2010 16:21:03 +0900
From: "Masayuki Ohtake" <masa-korg@....okisemi.com>
To: "Mike Frysinger" <vapier@...too.org>,
"Mark Brown" <broonie@...nsource.wolfsonmicro.com>
Cc: "Andrew Morton" <akpm@...ux-foundation.org>,
"Samuel Ortiz" <sameo@...ux.intel.com>,
"Randy Dunlap" <randy.dunlap@...cle.com>,
"Alek Du" <alek.du@...el.com>, <richard.rojfors@...ean-labs.com>,
<meego-dev@...go.com>,
"ML linux-kernel" <linux-kernel@...r.kernel.org>,
"Qi" <qi.wang@...el.com>, <andrew.chih.howe.khor@...el.com>,
<gregkh@...e.de>, "Yong Y" <yong.y.wang@...el.com>,
"Tomoya MORINAGA" <morinaga526@....okisemi.com>,
<joel.clark@...el.com>, <margie.foster@...el.com>,
<kok.howg.ewe@...el.com>
Subject: Re: [MeeGo-Dev][PATCH] Topcliff: Update PCH_GPIO driver to 2.6.35
Hi Mike and Mark,
> [root@...alhost gpio]# ls
> export gpiochip244 unexport
> [root@...alhost gpio]# echo 1 > export
> bash: echo: write error: Invalid argument
> [root@...alhost 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@...too.org>
To: "Masayuki Ohtake" <masa-korg@....okisemi.com>
Cc: "Mark Brown" <broonie@...nsource.wolfsonmicro.com>; "Andrew Morton" <akpm@...ux-foundation.org>; "Samuel Ortiz"
<sameo@...ux.intel.com>; "Randy Dunlap" <randy.dunlap@...cle.com>; "Alek Du" <alek.du@...el.com>;
<richard.rojfors@...ean-labs.com>; <meego-dev@...go.com>; "ML linux-kernel" <linux-kernel@...r.kernel.org>; "Qi"
<qi.wang@...el.com>; <andrew.chih.howe.khor@...el.com>; <gregkh@...e.de>; "Yong Y" <yong.y.wang@...el.com>; "Tomoya
MORINAGA" <morinaga526@....okisemi.com>; <joel.clark@...el.com>; <margie.foster@...el.com>; <kok.howg.ewe@...el.com>
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists