Re: [PATCH 3/6] gpio: add a userspace chardev ABI for GPIOs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jan 29, 2016 at 11:24 AM, Bamvor Zhang Jian
<bamvor.zhangjian@xxxxxxxxxx> wrote:
> On 01/28/2016 07:14 PM, Linus Walleij wrote:
>> On Wed, Jan 27, 2016 at 11:05 AM, Bamvor Zhang Jian
>> <bamvor.zhangjian@xxxxxxxxxx> wrote:
>>
>>> From the api(ioctl GPIO_GET_CHIPINFO_IOCTL: gpiochip_info), it seems
>>> that I could list all the gpiochips or list only one gpiochip. But
>>> I could not list gpiochip belongs to one gpio driver.
>>
>> I think you can get that information from parsing sysfs?
> Yeap, I could get the directory:
> "/sys/devices/platform/gpio-mockup/gpio/"
>
> I notice that you mark the sysfs ABI as obsolete in these series. I
> am not sure whether it is reasonable to read it from syfs when using
> chardev.

They can probably be used in parallel. I don't have a Kconfig
option for the chardev, it is always turned on, so as to make
people use it.

I even consider putting nasty stuff in dmesg and the boot crawl
for people using the sysfs at some point.

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux