All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH][SCSI] sgiwd93.c: interfacing to wd33c93
@ 2007-02-12 14:27 peter fuerst
  2007-02-16 15:36 ` James Bottomley
  0 siblings, 1 reply; 3+ messages in thread
From: peter fuerst @ 2007-02-12 14:27 UTC (permalink / raw)
  To: James.Bottomley, linux-scsi; +Cc: Ralf Baechle, Kumba, Thiemo Seufer, Tim Yamin



1) sgiwd93 used to switch off asynchronous mode on the wd33c93, discarding
   any "nosync"-requests from the commandline.
   But we need to allow "nosync"-requests for selected devices, for example
   the Pioneer DVD305S.
   (For the curious: this device accepts the SDTR from wd33c93 and success-
   fully sends inquiry data in sync mode, but after the data phase in the
   inquiry command does an unexpected disconnect, seemingly sending no
   "status" or "command complete". Forcing async transfers makes it work
   together flawlessly with the wd33c93. Of course, preferable would be, to
   implement wd33c93's "resume command" stuff, but that probably will not
   come soon.)

2) Maximize benefit from the preceding Fast SCSI patch for wd33c93 by passing
   the higher input-clock frequency explicitely. To be applied after the
   mentioned wd33c93 patch.


with kind regards


Signed-off-by: peter fuerst <post@pfrst.de>

========================================================================
--- dc7bdc97927ea1c519f0d8bd3133739600c841d4/drivers/scsi/sgiwd93.c	Sat Oct  7 00:00:00 2006
+++ new/drivers/scsi/sgiwd93.c	Sun Feb 11 22:10:06 2007
@@ -250,3 +250,3 @@

-	hdata->wh.no_sync = 0;
+	if (0xff == hdata->wh.no_sync) hdata->wh.no_sync = 0;

========================================================================


========================================================================
--- dc7bdc97927ea1c519f0d8bd3133739600c841d4/drivers/scsi/sgiwd93.c	Sat Oct  7 00:00:00 2006
+++ stage2/drivers/scsi/sgiwd93.c	Sun Feb 11 22:10:06 2007
@@ -248,3 +248,3 @@

-	wd33c93_init(host, regs, dma_setup, dma_stop, WD33C93_FS_16_20);
+	wd33c93_init(host, regs, dma_setup, dma_stop, WD33C93_FS_MHZ(20));

========================================================================

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

* Re: [PATCH][SCSI] sgiwd93.c: interfacing to wd33c93
  2007-02-12 14:27 [PATCH][SCSI] sgiwd93.c: interfacing to wd33c93 peter fuerst
@ 2007-02-16 15:36 ` James Bottomley
  2007-02-16 22:39   ` post
  0 siblings, 1 reply; 3+ messages in thread
From: James Bottomley @ 2007-02-16 15:36 UTC (permalink / raw)
  To: post; +Cc: linux-scsi, Ralf Baechle, Kumba, Thiemo Seufer, Tim Yamin

On Mon, 2007-02-12 at 15:27 +0100, peter fuerst wrote:
> ========================================================================
> --- dc7bdc97927ea1c519f0d8bd3133739600c841d4/drivers/scsi/sgiwd93.c	Sat Oct  7 00:00:00 2006
> +++ new/drivers/scsi/sgiwd93.c	Sun Feb 11 22:10:06 2007
> @@ -250,3 +250,3 @@
> 
> -	hdata->wh.no_sync = 0;
> +	if (0xff == hdata->wh.no_sync) hdata->wh.no_sync = 0;
> 
> ========================================================================
> 
> 
> ========================================================================
> --- dc7bdc97927ea1c519f0d8bd3133739600c841d4/drivers/scsi/sgiwd93.c	Sat Oct  7 00:00:00 2006
> +++ stage2/drivers/scsi/sgiwd93.c	Sun Feb 11 22:10:06 2007
> @@ -248,3 +248,3 @@
> 
> -	wd33c93_init(host, regs, dma_setup, dma_stop, WD33C93_FS_16_20);
> +	wd33c93_init(host, regs, dma_setup, dma_stop, WD33C93_FS_MHZ(20));
> 
> ========================================================================

You don't make it easy, do you ... these are two separate patches for
overlapping regions of the file ... neither quilt nor git likes this way
of doing things.  Plus the if should be

if (hdata->wh.no_sync == 0xff)
	hdata->wh.no_sync = 0;

to match the style of the sgiwd93.c.

Since this is pretty simple, I fixed it up.

James



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

* Re: [PATCH][SCSI] sgiwd93.c: interfacing to wd33c93
  2007-02-16 15:36 ` James Bottomley
@ 2007-02-16 22:39   ` post
  0 siblings, 0 replies; 3+ messages in thread
From: post @ 2007-02-16 22:39 UTC (permalink / raw)
  To: James Bottomley; +Cc: linux-scsi, Ralf Baechle, Kumba, Thiemo Seufer, Tim Yamin



Sorry for the annoyance, i split it, since these patches address different
issues: the nosync patch just (re)allows an appropriate commandline
setting (with or without the wd33c93 patches applied) to cope with some
uncooperative devices, while the other one depends on the 2nd wd33c93 patch
being applied already/simultaneously.

kind regards

peter 


On Fri, 16 Feb 2007, James Bottomley wrote:

> Date: Fri, 16 Feb 2007 09:36:02 -0600
> From: James Bottomley <James.Bottomley@HansenPartnership.com>
> To: post@pfrst.de
> Cc: linux-scsi@vger.kernel.org, Ralf Baechle <ralf@linux-mips.org>,
>      Kumba <kumba@gentoo.org>, Thiemo Seufer <ths@networkno.de>,
>      Tim Yamin <plasmaroo@gentoo.org>
> Subject: Re: [PATCH][SCSI] sgiwd93.c: interfacing to wd33c93
> 
> On Mon, 2007-02-12 at 15:27 +0100, peter fuerst wrote:
> > ========================================================================
> > --- dc7bdc97927ea1c519f0d8bd3133739600c841d4/drivers/scsi/sgiwd93.c	Sat Oct  7 00:00:00 2006
> > +++ new/drivers/scsi/sgiwd93.c	Sun Feb 11 22:10:06 2007
> > @@ -250,3 +250,3 @@
> > 
> > -	hdata->wh.no_sync = 0;
> > +	if (0xff == hdata->wh.no_sync) hdata->wh.no_sync = 0;
> > 
> > ========================================================================
> > 
> > 
> > ========================================================================
> > --- dc7bdc97927ea1c519f0d8bd3133739600c841d4/drivers/scsi/sgiwd93.c	Sat Oct  7 00:00:00 2006
> > +++ stage2/drivers/scsi/sgiwd93.c	Sun Feb 11 22:10:06 2007
> > @@ -248,3 +248,3 @@
> > 
> > -	wd33c93_init(host, regs, dma_setup, dma_stop, WD33C93_FS_16_20);
> > +	wd33c93_init(host, regs, dma_setup, dma_stop, WD33C93_FS_MHZ(20));
> > 
> > ========================================================================
> 
> You don't make it easy, do you ... these are two separate patches for
> overlapping regions of the file ... neither quilt nor git likes this way
> of doing things.  Plus the if should be
> 
> if (hdata->wh.no_sync == 0xff)
> 	hdata->wh.no_sync = 0;
> 
> to match the style of the sgiwd93.c.
> 
> Since this is pretty simple, I fixed it up.
> 
> James
> 
> 
> 
> 


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

end of thread, other threads:[~2007-02-16 22:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-12 14:27 [PATCH][SCSI] sgiwd93.c: interfacing to wd33c93 peter fuerst
2007-02-16 15:36 ` James Bottomley
2007-02-16 22:39   ` post

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.