[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Fri, 10 Oct 2008 20:25:15 +0100
From: Alan Cox <alan@...rguk.ukuu.org.uk>
To: Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Cc: linux-ide@...r.kernel.org, torvalds@...l.org, jens.axboe@...cle.com
Subject: Re: libata: set queue SSD flag for SSD devices
> + ATA_ID_ROT_SPEED = 217,
> ATA_ID_PIO4 = (1 << 1),
>
> ATA_ID_SERNO_LEN = 20,
> @@ -691,6 +692,11 @@ static inline int ata_id_is_cfa(const u16 *id)
> return 0;
> }
>
> +static inline int ata_id_is_ssd(const u16 *id)
> +{
> + return id[ATA_ID_ROT_SPEED] == 0x01;
> +}
This patch is buggy.
Word 217 only has a defined meaning in late revision ATA standards so a
version check is needed. Please copy ATA patch copies to linux-ide.
Alan
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists