All of lore.kernel.org
 help / color / mirror / Atom feed
From: James Bottomley <James.Bottomley@HansenPartnership.com>
To: "Raoul Bhatia [IPAX]" <r.bhatia@ipax.at>
Cc: linux-scsi@vger.kernel.org
Subject: Re: Adaptec AIC-9410W (AIC94xx) + SATA HDDs
Date: Wed, 26 Mar 2008 09:26:13 -0700	[thread overview]
Message-ID: <1206548773.3019.35.camel@localhost.localdomain> (raw)
In-Reply-To: <47EA7533.8030304@ipax.at>

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;



  reply	other threads:[~2008-03-26 16:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-26 14:14 Adaptec AIC-9410W (AIC94xx) + SATA HDDs Raoul Bhatia [IPAX]
2008-03-26 14:35 ` James Bottomley
2008-03-26 16:09   ` Raoul Bhatia [IPAX]
2008-03-26 16:26     ` James Bottomley [this message]
2008-03-26 18:48       ` Darrick J. Wong
2008-03-27  8:28       ` Raoul Bhatia [IPAX]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1206548773.3019.35.camel@localhost.localdomain \
    --to=james.bottomley@hansenpartnership.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=r.bhatia@ipax.at \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.