[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1389620843-3755-1-git-send-email-rui.zhang@intel.com>
Date: Mon, 13 Jan 2014 21:47:23 +0800
From: Zhang Rui <rui.zhang@...el.com>
To: linux-kernel@...r.kernel.org, linux-i2c@...r.kernel.org,
linux-spi@...r.kernel.org
Cc: rjw@...ysocki.net, grant.likely@...retlab.ca,
jarkko.nikula@...ux.intel.com, mika.westerberg@...ux.intel.com,
Zhang Rui <rui.zhang@...el.com>
Subject: [PATCH 0/4] module autoloading fixes
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-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