FDT Support for GPIO (gpiobus and friends)

Luiz Otavio O Souza luiz.souza at ad.com.br
Wed Jul 3 13:19:29 UTC 2013


On Jun 24, 2013, at 11:52 AM, Warner Losh wrote:

> I'm loving this patch, mostly.
> 
> But I don't see where the ivar gets freed...  Perhaps this is because we dont' support detaching GPIOs?
> 

No, you are right. Even if most (if not all) gpio drivers don't allow the detach, gpiobus can be built as a module and as such it has a detach routine which IMO should do the right thing.

Thanks for noticing this.

Here is a patch with a fix (i hope it's correct).

Luiz


-------------- next part --------------
A non-text attachment was scrubbed...
Name: gpioled-fdt.diff
Type: application/octet-stream
Size: 10124 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-arch/attachments/20130703/4dd5850d/attachment.obj>


More information about the freebsd-arch mailing list