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]
Message-ID: <003001cb5ecd$97577930$66f8800a@maildom.okisemi.com>
Date:	Tue, 28 Sep 2010 14:25:36 +0900
From:	"Masayuki Ohtake" <masa-korg@....okisemi.com>
To:	"Mike Frysinger" <vapier@...too.org>
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>
Subject: Re: [MeeGo-Dev][PATCH] Topcliff: Update PCH_GPIO driver to 2.6.35

Hi Mike,

> 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 ?

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:02 PM
Subject: Re: [MeeGo-Dev][PATCH] Topcliff: Update PCH_GPIO driver to 2.6.35


On Tue, Sep 28, 2010 at 00:57, Masayuki Ohtake wrote:
> I have modified for GPIO standard I/F referring other accepted GPIO driver.

no idea what this driver is

> According to Documentation/gpio.txt,
> I tried to create GPIO node like below.
>
> [root@...alhost gpio]# ls
> export gpiochip244 unexport
> [root@...alhost gpio]# echo 1 > export
> bash: echo: write error: Invalid argument
> [root@...alhost gpio]#
>
> But it fails.

find out what range of GPIO numbers your driver is using and use those
instead of "1"
-mike


begin 666 pch_gpio.c
M<W1A=&EC('9O:60@<&-H7V=P:6]?<V5T=7 H<W1R=6-T('!C:%]G<&EO7V-H
M:7 @*F-H:7 I#0I[#0H)<W1R=6-T(&=P:6]?8VAI<" J9W!I;R ]("9C:&EP
M+3YG<&EO.PT*#0H)9W!I;RT^;&%B96P@...D979?;F%M92AC:&EP+3YD978I
M.PT*"6=P:6\M/F]W;F5R(#T@5$A)4U]-3T153$4[#0H)9W!I;RT^9&ER96-T
M:6]N7VEN<'5T(#T@<&-H7V=P:6]?9&ER96-T:6]N7VEN<'5T.PT*"6=P:6\M
M/F=E=" ]('!C:%]G<&EO7V=E=#L-"@EG<&EO+3YD:7)E8W1I;VY?;W5T<'5T
M(#T@<&-H7V=P:6]?9&ER96-T:6]N7V]U='!U=#L-"@EG<&EO+3YS970@...P
M8VA?9W!I;U]S970[#0H)9W!I;RT^9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L-"@D)9&5V7V5R<B@F<&1E=BT^9&5V+" B)7,@
M.B!P8VE?:6]M87 @1D%)3$5$(BP@7U]F=6YC7U\I.PT*"0ER970@/2 M14Y/
M345-.PT*"0EG;W1O(&5R<E]I;VUA<#L-"@E]#0H)8VAI<"T^<F5G(#T@...I
M<"T^<&-H7V=P:6]?8F%S95]A9&1R97-S.PT*#0H)<&-I7W-E=%]D<G9D871A
M*'!D978L(&-H:7 I.PT*"7!C:%]G<&EO7V-B7W)E9VES=&5R*'!C:%]G<&EO
M7V-B+"!C:&EP*3L-"@EC:&EP+3YP8VA?9W!I;U]I<G$@...P9&5V+3YI<G$[
M#0H)9&5V:6-E7W-E=%]W86ME=7!?96YA8FQE*"9P9&5V+3YD978L(#$I.PT*
M#0H)<&-H7V=P:6]?<V5T=7 H8VAI<"D[#0H)<F5T(#T@...I;V-H:7!?861D
M*"9C:&EP+3YG<&EO*3L-"@EI9B H<F5T*2![#0H)"7!R:6YT:RA+15).7T52
M4B B4$-((&=P:6\Z($9A:6QE9"!T;R!R96=I<W1E<B!'4$E/7&XB*3L-"@D)
M9V]T;R!E<G)?9W!I;V-H:7!?861D.PT*"7T-"@T*"7)E='5R;B P.PT*#0IE
M<G)?9W!I;V-H:7!?861D.@T*"7!C:5]I;W5N;6%P*'!D978L(&-H:7 M/G!C
M:%]G<&EO7V)A<V5?861D<F5S<RD[#0H-"F5R<E]I;VUA<#H-"@EP8VE?<F5L
M96%S95]R96=I;VYS*'!D978I.PT*#0IE<G)?<F5Q=65S=%]R96=I;VYS.@T*
M"7!C:5]D:7-A8FQE7V1E=FEC92AP9&5V*3L-"@T*97)R7W!C:5]E;F%B;&4Z
D#0H):V9R964H8VAI<"D[#0H)<F5T=7)N(')E=#L-"GT-"@T*
`
end

--
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