On Wed, 2008-03-26 at 17:09 +0100, Raoul Bhatia [IPAX] wrote: > James Bottomley wrote: > > On Wed, 2008-03-26 at 15:14 +0100, Raoul Bhatia [IPAX] wrote: > >> can anyone point me out, why the adaptec aic-9410W sas controller > >> detects my sata drive but the kernel does not? > > [...] > >> sas: unhandled device 5 > > > > This is what libsas produces when it's compiled with CONFIG_SCSI_SAS_ATA > > set to N. You need to recompile libsas with support for ATA devices > > (it's a separate compile option because it sucks in the whole of libata > > and thus doubles the size of the code). > > thanks, this is working now. sorry for bothering you ;) It's no bother and the warning is, um, a bit cryptic. I'm not sure how anyone who didn't know the code intimately could work out what's going on. How about this update just in case anyone else falls into the same trap? James --- diff --git a/drivers/scsi/libsas/sas_discover.c b/drivers/scsi/libsas/sas_discover.c index 31b9af2..e7d6c63 100644 --- a/drivers/scsi/libsas/sas_discover.c +++ b/drivers/scsi/libsas/sas_discover.c @@ -295,11 +295,14 @@ static void sas_discover_domain(struct work_struct *work) case FANOUT_DEV: error = sas_discover_root_expander(dev); break; -#ifdef CONFIG_SCSI_SAS_ATA case SATA_DEV: case SATA_PM: +#ifdef CONFIG_SCSI_SAS_ATA error = sas_discover_sata(dev); break; +#else + SAS_DPRINTK("ATA device seen but CONFIG_SCSI_SAS_ATA=N so cannot attach\n"); + /* Fall through */ #endif default: error = -ENXIO; -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html