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: <20140723162129.GB6871@kroah.com>
Date:	Wed, 23 Jul 2014 09:21:29 -0700
From:	Greg KH <gregkh@...uxfoundation.org>
To:	One Thousand Gnomes <gnomes@...rguk.ukuu.org.uk>
Cc:	Wang YanQing <udknight@...il.com>, linus.walleij@...aro.org,
	jhovold@...il.com, linux-usb@...r.kernel.org,
	linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] usb:serial:pl2303: add GPIOs interface on PL2303

On Wed, Jul 23, 2014 at 05:03:14PM +0100, One Thousand Gnomes wrote:
> > +		if (gpiochip_remove(&spriv->gpio->gpio_chip))
> > +			dev_err(&serial->interface->dev, "unable to remove gpio_chip?\n");
> > +		kfree(spriv->gpio);
> > +	}
> > +#endif
> >  	kfree(spriv);
> 
> Only other question I have - if I have multiple PL2303HX adapters how
> will I work out which GPIO lines belong to which /dev/ttyUSB* interface ?

sysfs _should_ show you this, as it should point to the "parent" device,
which will be associated with the ttyUSB interface.  Well, both the tty
device and the gpio device will have the same parent, is that good
enough to determine this, or should the gpio device have the tty device
as its parent?

thanks,

greg k-h
--
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