On Thu, Mar 23, 2017 at 12:41 AM, Rafael J. Wysocki <rafael@xxxxxxxxxx> wrote: > On Wed, Mar 22, 2017 at 11:58 PM, Joerg Roedel <jroedel@xxxxxxx> wrote: >> Hi Rafael, >> >> On Wed, Mar 22, 2017 at 06:42:39PM +0100, Rafael J. Wysocki wrote: >>> On Wednesday, March 22, 2017 06:33:25 PM Joerg Roedel wrote: >>> > From: Joerg Roedel <jroedel@xxxxxxx> >>> > >>> > No platform-device is required for IO(x)APICs, so don't even >>> > create them. >>> > >>> > Signed-off-by: Joerg Roedel <jroedel@xxxxxxx> >>> >>> If we do this, I'd prefer not to do [2/3], because we'll introduce code that >>> will be essentially dead then. >> >> In this case the code in acpi_bus_attach() adding platform_devices is also >> dead. Could it be removed then? > > It is not dead. > > Platform devices are actually created by it, but they never go away. IOW, they should never be created for anything hot-removable. If they are, this is a bug (as you noticed). Thanks, Rafael -- 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