linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [patch for 2.6.24? 1/1] libata: correct handling of TSS DVD
       [not found] <200801140906.m0E96Ks2020536@imap1.linux-foundation.org>
@ 2008-01-15 20:52 ` Jeff Garzik
  2008-01-15 21:01   ` Alan Cox
  0 siblings, 1 reply; 2+ messages in thread
From: Jeff Garzik @ 2008-01-15 20:52 UTC (permalink / raw)
  To: akpm, alan, alan; +Cc: jeff, htejun, Linux IDE mailing list

akpm@linux-foundation.org wrote:
> From: Alan Cox <alan@lxorguk.ukuu.org.uk>
> 
> Devices that misreport the validity bit for word 93 look like SATA.  If
> they are on the blacklist then we must not test for SATA but assume 40 wire
> in the 40 wire case (The TSSCorp reports 80 wire on SATA it seems!)
> 
> Signed-off-by: Alan Cox <alan@redhat.com>
> Cc: Tejun Heo <htejun@gmail.com>
> Cc: Jeff Garzik <jeff@garzik.org>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
> ---
> 
>  include/linux/ata.h |    2 --
>  1 file changed, 2 deletions(-)
> 
> diff -puN include/linux/ata.h~libata-correct-handling-of-tss-dvd include/linux/ata.h
> --- a/include/linux/ata.h~libata-correct-handling-of-tss-dvd
> +++ a/include/linux/ata.h
> @@ -554,8 +554,6 @@ static inline int ata_drive_40wire(const
>  
>  static inline int ata_drive_40wire_relaxed(const u16 *dev_id)
>  {
> -	if (ata_id_is_sata(dev_id))
> -		return 0;	/* SATA */
>  	if ((dev_id[93] & 0x2000) == 0x2000)
>  		return 0;	/* 80 wire */
>  	return 1;


Alan, is this .24 material?

There were a lot of different threads and BZs about this one device, and 
I want to triple-check that multiple fixes are not being applied 
independently for the same problem.

	Jeff




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

* Re: [patch for 2.6.24? 1/1] libata: correct handling of TSS DVD
  2008-01-15 20:52 ` [patch for 2.6.24? 1/1] libata: correct handling of TSS DVD Jeff Garzik
@ 2008-01-15 21:01   ` Alan Cox
  0 siblings, 0 replies; 2+ messages in thread
From: Alan Cox @ 2008-01-15 21:01 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: akpm, alan, alan, htejun, Linux IDE mailing list

On Tue, Jan 15, 2008 at 03:52:09PM -0500, Jeff Garzik wrote:
> > {
> >-	if (ata_id_is_sata(dev_id))
> >-		return 0;	/* SATA */
> > 	if ((dev_id[93] & 0x2000) == 0x2000)
> > 		return 0;	/* 80 wire */
> > 	return 1;
> 
> 
> Alan, is this .24 material?
> 
> There were a lot of different threads and BZs about this one device, and 
> I want to triple-check that multiple fixes are not being applied 
> independently for the same problem.

Yes.

Without this fix a TSScorp CD-ROM on 40 wire ata reports itself as SATA

Alan


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

end of thread, other threads:[~2008-01-15 21:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <200801140906.m0E96Ks2020536@imap1.linux-foundation.org>
2008-01-15 20:52 ` [patch for 2.6.24? 1/1] libata: correct handling of TSS DVD Jeff Garzik
2008-01-15 21:01   ` Alan Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).