mkinitrd unification across distributions
 help / color / mirror / Atom feed
* [PATCH] Fix ahci detection in kernel 2.6.35
@ 2010-08-05 16:06 Andrey Borzenkov
  2010-08-05 16:17 ` Harald Hoyer
  0 siblings, 1 reply; 2+ messages in thread
From: Andrey Borzenkov @ 2010-08-05 16:06 UTC (permalink / raw)
  To: initramfs-u79uwXL29TY76Z2rM5mHXA

Kernel 2.6.35 (may be, earlier) split ahci into libahci.ko and ahci.ko
and added ahci_platform.ko. As a result, drivers ahci and ahci_platform
do not contain any symbol that are checked for storage modules (it is
libahci.ko that references ata_scsi_ioctl now). So add additional
symbol ahci_init_controller; it seems this is expected to be called by
every driver based on libahci.ko.

Signed-off-by: Andrey Borzenkov <arvidjaar-JGs/UdohzUI@public.gmane.org>

---

 modules.d/90kernel-modules/installkernel |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules.d/90kernel-modules/installkernel b/modules.d/90kernel-modules/installkernel
index 2171e5a..e679b10 100755
--- a/modules.d/90kernel-modules/installkernel
+++ b/modules.d/90kernel-modules/installkernel
@@ -1,7 +1,7 @@
 #!/bin/bash
 if [[ -z $drivers ]]; then
     block_module_test() {
-	local blockfuncs='ata_scsi_ioctl|scsi_add_host|blk_init_queue|register_mtd_blktrans|scsi_esp_register|register_virtio_device'
+	local blockfuncs='ahci_init_controller|ata_scsi_ioctl|scsi_add_host|blk_init_queue|register_mtd_blktrans|scsi_esp_register|register_virtio_device'
 
 	egrep -q "$blockfuncs" "$1"
     }

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Fix ahci detection in kernel 2.6.35
  2010-08-05 16:06 [PATCH] Fix ahci detection in kernel 2.6.35 Andrey Borzenkov
@ 2010-08-05 16:17 ` Harald Hoyer
  0 siblings, 0 replies; 2+ messages in thread
From: Harald Hoyer @ 2010-08-05 16:17 UTC (permalink / raw)
  To: Andrey Borzenkov; +Cc: initramfs-u79uwXL29TY76Z2rM5mHXA

Thanks! And pushed.

On 08/05/2010 06:06 PM, Andrey Borzenkov wrote:
> Kernel 2.6.35 (may be, earlier) split ahci into libahci.ko and ahci.ko
> and added ahci_platform.ko. As a result, drivers ahci and ahci_platform
> do not contain any symbol that are checked for storage modules (it is
> libahci.ko that references ata_scsi_ioctl now). So add additional
> symbol ahci_init_controller; it seems this is expected to be called by
> every driver based on libahci.ko.
>
> Signed-off-by: Andrey Borzenkov<arvidjaar-JGs/UdohzUI@public.gmane.org>
>
> ---
>
>   modules.d/90kernel-modules/installkernel |    2 +-
>   1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/modules.d/90kernel-modules/installkernel b/modules.d/90kernel-modules/installkernel
> index 2171e5a..e679b10 100755
> --- a/modules.d/90kernel-modules/installkernel
> +++ b/modules.d/90kernel-modules/installkernel
> @@ -1,7 +1,7 @@
>   #!/bin/bash
>   if [[ -z $drivers ]]; then
>       block_module_test() {
> -	local blockfuncs='ata_scsi_ioctl|scsi_add_host|blk_init_queue|register_mtd_blktrans|scsi_esp_register|register_virtio_device'
> +	local blockfuncs='ahci_init_controller|ata_scsi_ioctl|scsi_add_host|blk_init_queue|register_mtd_blktrans|scsi_esp_register|register_virtio_device'
>
>   	egrep -q "$blockfuncs" "$1"
>       }
>
> --
> To unsubscribe from this list: send the line "unsubscribe initramfs" 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

end of thread, other threads:[~2010-08-05 16:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-05 16:06 [PATCH] Fix ahci detection in kernel 2.6.35 Andrey Borzenkov
2010-08-05 16:17 ` Harald Hoyer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox