* [PATCH 0/4] module autoloading fixes
@ 2014-01-13 13:47 Zhang Rui
0 siblings, 0 replies; 2+ messages in thread
From: Zhang Rui @ 2014-01-13 13:47 UTC (permalink / raw)
To: linux-kernel-u79uwXL29TY76Z2rM5mHXA,
linux-i2c-u79uwXL29TY76Z2rM5mHXA,
linux-spi-u79uwXL29TY76Z2rM5mHXA
Cc: rjw-LthD3rsA81gm4RdzfppkhA, grant.likely-s3s/WqlpOiPyB63q8FvJNQ,
jarkko.nikula-VuQAYsv1563Yd54FQh9/CA,
mika.westerberg-VuQAYsv1563Yd54FQh9/CA, Zhang Rui
Hi, all,
This patch set fixes a couple of module autoloading problem.
Patch 1/4 fixes a bug in ACPI device 'modalias' and 'uevent' attributes,
although the bug can rarely be reproduced (only if there is an
output error of snprintf, or the ids are longer than 1024 bytes)
Patch 2/4 introduces two new APIs for exporting ACPI style 'modalias' and
'uevent' attributes in other buses.
Patch 3/4 introduce support for ACPI style 'modalias' and 'uevent'
attributes in platform, I2C and SPI bus.
Patch 4/4 add OF style 'modalias' support for platform bus.
I did some tests and can confirm that the code for ACPI enumerated platform
bus device works well.
I tried with a patch with convert ACPI Fan device/driver to platform bus,
and can confirm that the code for ACPI enumerated platform device works well,
both the platform Fan driver and device show their modalias as "acpi:PNP0C0B".
thanks,
rui
----------------------------------------------------------------
Zhang Rui (4):
ACPI: fix create_modalias() return value handling
ACPI: add module autoloading support for ACPI enumerated devices
fix module autoloading for ACPI enumerated devices
OF: introduce OF style 'modalias' support for platform bus.
drivers/acpi/scan.c | 73 +++++++++++++++++++++++++++++++++++++++++----
drivers/base/platform.c | 16 +++++++++-
drivers/i2c/i2c-core.c | 11 +++++++
drivers/of/device.c | 3 ++
drivers/spi/spi.c | 10 +++++++
include/linux/acpi.h | 15 ++++++++++
include/linux/of_device.h | 6 ++++
7 files changed, 127 insertions(+), 7 deletions(-)
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 0/4] module autoloading fixes
@ 2014-01-14 8:46 Zhang Rui
0 siblings, 0 replies; 2+ messages in thread
From: Zhang Rui @ 2014-01-14 8:46 UTC (permalink / raw)
To: linux-kernel-u79uwXL29TY76Z2rM5mHXA,
linux-acpi-u79uwXL29TY76Z2rM5mHXA,
linux-i2c-u79uwXL29TY76Z2rM5mHXA,
linux-spi-u79uwXL29TY76Z2rM5mHXA
Cc: wsa-z923LK4zBo2bacvFa/9K2g, broonie-QSEj5FYQhm4dnm+yROfE0A,
gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r,
rafael.j.wysocki-ral2JQCrhuEAvxtiuMwx3w,
grant.likely-QSEj5FYQhm4dnm+yROfE0A,
rob.herring-bsGFqQB8/DxBDgjK7y7TUQ,
jarkko.nikula-VuQAYsv1563Yd54FQh9/CA,
mika.westerberg-VuQAYsv1563Yd54FQh9/CA, Zhang Rui
Hi, all,
This patch set fixes a couple of module autoloading problem.
Patch 1/4 fixes a bug in ACPI device 'modalias' and 'uevent' attributes,
although the bug can rarely be reproduced (only if there is an
output error of snprintf, or the ids are longer than 1024 bytes)
Patch 2/4 introduces two new APIs for exporting ACPI style 'modalias' and
'uevent' attributes in other buses.
Patch 3/4 introduce support for ACPI style 'modalias' and 'uevent'
attributes in platform, I2C and SPI bus.
Patch 4/4 add OF style 'modalias' support for platform bus.
I did some tests and can confirm that the code for ACPI enumerated platform
bus device works well.
I tried with a patch with convert ACPI Fan device/driver to platform bus,
and can confirm that the code for ACPI enumerated platform device works well,
both the platform Fan driver and device show their modalias as "acpi:PNP0C0B".
thanks,
rui
----------------------------------------------------------------
Zhang Rui (4):
ACPI: fix create_modalias() return value handling
ACPI: add module autoloading support for ACPI enumerated devices
fix module autoloading for ACPI enumerated devices
OF: introduce OF style 'modalias' support for platform bus.
drivers/acpi/scan.c | 73 +++++++++++++++++++++++++++++++++++++++++----
drivers/base/platform.c | 16 +++++++++-
drivers/i2c/i2c-core.c | 11 +++++++
drivers/of/device.c | 3 ++
drivers/spi/spi.c | 10 +++++++
include/linux/acpi.h | 15 ++++++++++
include/linux/of_device.h | 6 ++++
7 files changed, 127 insertions(+), 7 deletions(-)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-01-14 8:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-13 13:47 [PATCH 0/4] module autoloading fixes Zhang Rui
-- strict thread matches above, loose matches on Subject: below --
2014-01-14 8:46 Zhang Rui
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).