Re: [PATCH 13/13] ACPI: use unique number as bus_id of ACPI device in sysfs

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

 



> Another way to fix this naming problem.
> Many devices in ACPI namespace is meaningless. Only the devices with a
> PNPID are physical devices and should be exported to userspace.
> So we can only register these devices and use "PNPID:instance no" as its
> name.
> Add instance_no in struct acpi_device. Every time we fail to register an
> ACPI device and get an error of "-EEXIST", loop acpi_device_list to get
> the right instance_no and register again.

Yes, PNP-id's have definitions, and when we have the luxury of having
devices with PNP-id's, we should use those, along with an instance number
to handle the case of multiple devices of the PNPid.

Indeed, the question is if we should go so far as to translate the PNPid
into English, or simply use the PNPid string.

eg "PNP0C0C" vs "button".

I vote for the PNPid, since it requires less maintenance:-)

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

[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux