lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ