From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752728AbaIJB6v (ORCPT ); Tue, 9 Sep 2014 21:58:51 -0400 Received: from mail-pd0-f177.google.com ([209.85.192.177]:36228 "EHLO mail-pd0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752017AbaIJB6s (ORCPT ); Tue, 9 Sep 2014 21:58:48 -0400 Date: Wed, 10 Sep 2014 09:58:24 +0800 From: Wang YanQing To: Johan Hovold Cc: Benjamin Henrion , gregkh@linuxfoundation.org, linus.walleij@linaro.org, jhovold@gmail.com, andi@lisas.de, dforsi@gmail.com, gnomes@lxorguk.ukuu.org.uk, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v8] usb:serial:pl2303: add GPIOs interface on PL2303 Message-ID: <20140910015824.GA11233@localhost.localdomain> Mail-Followup-To: Wang YanQing , Johan Hovold , Benjamin Henrion , gregkh@linuxfoundation.org, linus.walleij@linaro.org, jhovold@gmail.com, andi@lisas.de, dforsi@gmail.com, gnomes@lxorguk.ukuu.org.uk, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org References: <20140831153201.GA25632@udknight> <20140905013011.GA2133@udknight> <20140909100856.GC2974@localhost> <20140909102131.GA1354@udknight> <20140909104356.GA7939@localhost> <20140909140204.GB7939@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140909140204.GB7939@localhost> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 09, 2014 at 04:02:04PM +0200, Johan Hovold wrote: > On Tue, Sep 09, 2014 at 12:43:56PM +0200, Johan Hovold wrote: > > On Tue, Sep 09, 2014 at 06:21:31PM +0800, Wang YanQing wrote: > > > On Tue, Sep 09, 2014 at 12:08:56PM +0200, Johan Hovold wrote: > > > > On Fri, Sep 05, 2014 at 09:30:11AM +0800, Wang YanQing wrote: > > > > > On Thu, Sep 04, 2014 at 06:44:31PM +0200, Benjamin Henrion wrote: > > > > > > On Thu, Sep 4, 2014 at 6:14 PM, Benjamin Henrion wrote: > > > > > > > I have subscribed to the lkml. > > > > > > > > > > > > > > Can you make me a favour, send me your email as you posted on the LKML > > > > > > > in mbox format attached to an email? > > > > > > > > > > > > > > I am trying to reply to it, but I cannot find an mbox archive, outside > > > > > > > of gmane which rewrites all the email addresses. > > > > > > > > > > > > > > Otherwise, I made a page here: > > > > > > > > > > > > > > http://www.zoobab.com/pl2303hxd-gpio > > > > > > > > > > > > > > I will also try with other adapters to see if the 2 GPIOs show up. > > > > > > > > > > > > > > Any idea how to test the GPIO sysfs speed? > > > > > > > > > > > > Also tested with an HXA laying around, I could export the 2 GPIOS in > > > > > > /sys/class/gpio, but I could not change the status of the pins via > > > > > > echo. > > > > > > > > > > > > Any idea why? > > > > > > > > > > It is strange, I have tested again with my two HXA adapters, they work well. > > > > > How do you test? check cat value or check voltage change? I check cat value, > > > > > and they work good. > > > > > > > > So you haven't verified that the voltage actually changes? > > > > > > > > Johan > > > > > > I have verified the voltage actually changes in previous patch version, > > > but I haven't verified that with v8. > > > > Ok, good. I'll get back to you with some comments on v8 shortly. > > Wait a minute. You restructured the driver, added support for two new > gpios as well as another device type, so you need to verify the voltage > on the pins (on both device types) as well. Benjamin Henrion had verified voltage on pins of HXD, see http://www.zoobab.com/pl2303hxd-gpio Sorry I don't have pinout version of PL2303 RA, so I can't verified voltage on it, I only can test it by echo & cat. Thanks.