Re: About dynamically loading the acpiphp.ko

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

 



2013/4/18 Gavin Guo <tuffkidtt@xxxxxxxxx>:
> Hi All,
>
> I've a Dell platform which has PCI-to-USB card and would like to let
> the module be dynamically insmoded when hotplugging this card.
> Firstly, I've submitted a patch, which added acpiphp to the
> /etc/modules, to the init-module-tools package in the Debian system,
> but maintainer rejected to accept the patch and said it would be done
> in the kernel side to enable the automatically loading. Then, I've
> tried to read the code about acpiphp under drivers/pci/hotplug/* and
> found that acpiphp_ibm.c seems providing a hook to build the
> dependency with acpiphp.ko, providing a way to construct a empty
> ibm_handle_events-liked callback function, named dell_handle_events,
> for acpi_install_notify_handler and the acpiphp_dell.ko could be
> insmoded by udev through the MODULE_ALIAS("dmi*...") which describe
> the dell platform information. However, writing a code with fake empty
> function just to enable the hotplugging PCI is silly in my opinion, I
> would be appreciated if anyone could provide a method to enable the
> hotplugging automatically.
>
> Thanks,
> Gavin Guo

Hi all,

I found that jiang.liu@xxxxxxxxxx has committed a patch and was
already in the Bjorn Helgaas's git tree. That means the only way to
use the hot-plugging in the future is just to build in the function.

Thanks
Gavin Guo
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux