lkml.org 
[lkml]   [2014]   [Sep]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH v8] usb:serial:pl2303: add GPIOs interface on PL2303
From
On Thu, Sep 4, 2014 at 7:35 PM, Wang YanQing <udknight@gmail.com> wrote:
> On Sun, Aug 31, 2014 at 11:24:56PM +0800, Wang YanQing wrote:
>> PL2303 USB Serial devices may has GPIOs, this patch add
>> basic PL2303 gpio support.
>>
>> Known issue:
>> If gpios are in use(export to userspace through sysfs interface, etc),
>> then call pl2303_release(unplug usb-serial convertor, modprobe -r, etc),
>> will cause trouble, so we need to make sure there is no gpio user before
>> call pl2303_release.
>>
>> Signed-off-by: Wang YanQing <udknight@gmail.com>
>> ---
>> Note: I sniffed office HXD gpio test program to get
>> gpios control protocol with PL2303 RA, so I only
>> test it with PL2303 RA and HXA, I don't have HXD,
>> but because it is *office* HXD gpio test program,
>> so if it doesn't work with HXD, I will feel surprise.

I can confirm your patch is working fine on the HXD:

http://www.zoobab.com/pl2303hxd-gpio

I am still hunting for a simple C program to test the speed of the
GPIOs and sysfs, if you have a good reference.

Best,

--
Benjamin Henrion <bhenrion at ffii.org>
FFII Brussels - +32-484-566109 - +32-2-4148403
"In July 2005, after several failed attempts to legalise software
patents in Europe, the patent establishment changed its strategy.
Instead of explicitly seeking to sanction the patentability of
software, they are now seeking to create a central European patent
court, which would establish and enforce patentability rules in their
favor, without any possibility of correction by competing courts or
democratically elected legislators."


\
 
 \ /
  Last update: 2014-09-05 00:21    [W:0.056 / U:1.980 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site