From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754530Ab0I1FZn (ORCPT ); Tue, 28 Sep 2010 01:25:43 -0400 Received: from sm-d311v.smileserver.ne.jp ([203.211.202.206]:2244 "EHLO sm-d311v.smileserver.ne.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750861Ab0I1FZm (ORCPT ); Tue, 28 Sep 2010 01:25:42 -0400 Message-ID: <003001cb5ecd$97577930$66f8800a@maildom.okisemi.com> From: "Masayuki Ohtake" To: "Mike Frysinger" Cc: "Mark Brown" , "Andrew Morton" , "Samuel Ortiz" , "Randy Dunlap" , "Alek Du" , , , "ML linux-kernel" , "Qi" , , , "Yong Y" , "Tomoya MORINAGA" , , , References: <4C80D3C8.9020204@dsn.okisemi.com> <20100903134827.GA7614@rakim.wolfsonmicro.main> <000301cb5ebc$35ad8d20$66f8800a@maildom.okisemi.com> <201009272338.23762.vapier@gentoo.org> <002801cb5ec9$b7936a00$66f8800a@maildom.okisemi.com> Subject: Re: [MeeGo-Dev][PATCH] Topcliff: Update PCH_GPIO driver to 2.6.35 Date: Tue, 28 Sep 2010 14:25:36 +0900 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1983 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1983 X-Hosting-Pf: 0 X-NAI-Spam-Score: 2 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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" To: "Masayuki Ohtake" Cc: "Mark Brown" ; "Andrew Morton" ; "Samuel Ortiz" ; "Randy Dunlap" ; "Alek Du" ; ; ; "ML linux-kernel" ; "Qi" ; ; ; "Yong Y" ; "Tomoya MORINAGA" ; ; ; 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@localhost gpio]# ls > export gpiochip244 unexport > [root@localhost gpio]# echo 1 > export > bash: echo: write error: Invalid argument > [root@localhost 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