All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch 25/30] pata_hpt3x3: clean up by using cable method
@ 2007-03-06 10:38 akpm
  2007-03-06 11:59 ` Jeff Garzik
  0 siblings, 1 reply; 5+ messages in thread
From: akpm @ 2007-03-06 10:38 UTC (permalink / raw)
  To: jeff; +Cc: linux-ide, akpm, alan, alan

From: Alan Cox <alan@lxorguk.ukuu.org.uk>

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 drivers/ata/pata_hpt3x3.c |   22 ++--------------------
 1 file changed, 2 insertions(+), 20 deletions(-)

diff -puN drivers/ata/pata_hpt3x3.c~pata_hpt3x3-clean-up-by-using-cable-method drivers/ata/pata_hpt3x3.c
--- a/drivers/ata/pata_hpt3x3.c~pata_hpt3x3-clean-up-by-using-cable-method
+++ a/drivers/ata/pata_hpt3x3.c
@@ -25,25 +25,6 @@
 #define DRV_NAME	"pata_hpt3x3"
 #define DRV_VERSION	"0.4.2"
 
-static int hpt3x3_probe_init(struct ata_port *ap)
-{
-	ap->cbl = ATA_CBL_PATA40;
-	return ata_std_prereset(ap);
-}
-
-/**
- *	hpt3x3_probe_reset	-	reset the hpt3x3 bus
- *	@ap: ATA port to reset
- *
- *	Perform the housekeeping when doing an ATA bus reeset. We just
- *	need to force the cable type.
- */
-
-static void hpt3x3_error_handler(struct ata_port *ap)
-{
-	return ata_bmdma_drive_eh(ap, hpt3x3_probe_init, ata_std_softreset, NULL, ata_std_postreset);
-}
-
 /**
  *	hpt3x3_set_piomode		-	PIO setup
  *	@ap: ATA interface
@@ -139,8 +120,9 @@ static struct ata_port_operations hpt3x3
 
 	.freeze		= ata_bmdma_freeze,
 	.thaw		= ata_bmdma_thaw,
-	.error_handler	= hpt3x3_error_handler,
+	.error_handler	= ata_bmdma_error_handler,
 	.post_internal_cmd = ata_bmdma_post_internal_cmd,
+	.cable_detect	= ata_cable_40wire,
 
 	.bmdma_setup 	= ata_bmdma_setup,
 	.bmdma_start 	= ata_bmdma_start,
_

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

* Re: [patch 25/30] pata_hpt3x3: clean up by using cable method
  2007-03-06 10:38 [patch 25/30] pata_hpt3x3: clean up by using cable method akpm
@ 2007-03-06 11:59 ` Jeff Garzik
  2007-03-06 15:19   ` Alan Cox
  0 siblings, 1 reply; 5+ messages in thread
From: Jeff Garzik @ 2007-03-06 11:59 UTC (permalink / raw)
  To: akpm; +Cc: linux-ide, alan, alan

akpm@linux-foundation.org wrote:
> From: Alan Cox <alan@lxorguk.ukuu.org.uk>
> 
> Signed-off-by: Alan Cox <alan@redhat.com>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
> ---
> 
>  drivers/ata/pata_hpt3x3.c |   22 ++--------------------
>  1 file changed, 2 insertions(+), 20 deletions(-)

dropped patches 9-25.

they should all be rolled up into a single "update ->cable_detect hook" 
patch, as discussed.



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

* Re: [patch 25/30] pata_hpt3x3: clean up by using cable method
  2007-03-06 15:19   ` Alan Cox
@ 2007-03-06 14:25     ` Jeff Garzik
  2007-03-06 16:27       ` Alan Cox
  0 siblings, 1 reply; 5+ messages in thread
From: Jeff Garzik @ 2007-03-06 14:25 UTC (permalink / raw)
  To: Alan Cox; +Cc: akpm, linux-ide, alan

Alan Cox wrote:
>> dropped patches 9-25.
>>
>> they should all be rolled up into a single "update ->cable_detect hook" 
>> patch, as discussed.
> 
> Strongly disagree. Each cable detect for a driver is testable alone which
> means each one is a git bisect point and you can find which driver has
> broken that way.

For most testers, you can generally find out which driver is broken 
through intuition and simple observation, without having to resort to 
git bisect.

	Jeff




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

* Re: [patch 25/30] pata_hpt3x3: clean up by using cable method
  2007-03-06 11:59 ` Jeff Garzik
@ 2007-03-06 15:19   ` Alan Cox
  2007-03-06 14:25     ` Jeff Garzik
  0 siblings, 1 reply; 5+ messages in thread
From: Alan Cox @ 2007-03-06 15:19 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: akpm, linux-ide, alan

> dropped patches 9-25.
> 
> they should all be rolled up into a single "update ->cable_detect hook" 
> patch, as discussed.

Strongly disagree. Each cable detect for a driver is testable alone which
means each one is a git bisect point and you can find which driver has
broken that way.

Alan

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

* Re: [patch 25/30] pata_hpt3x3: clean up by using cable method
  2007-03-06 14:25     ` Jeff Garzik
@ 2007-03-06 16:27       ` Alan Cox
  0 siblings, 0 replies; 5+ messages in thread
From: Alan Cox @ 2007-03-06 16:27 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: akpm, linux-ide, alan

On Tue, 06 Mar 2007 09:25:34 -0500
Jeff Garzik <jeff@garzik.org> wrote:

> through intuition and simple observation, without having to resort to 
> git bisect.

Well if you want one patch you can have one patch. It'll be a while as
I'm still converting drivers over and I'll feed them one by one for real
world testing/verifying to Andrew first. Some like the Jmicron and
pata_sis aren't so trivial although are well worth doing.

Alan

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

end of thread, other threads:[~2007-03-06 15:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-06 10:38 [patch 25/30] pata_hpt3x3: clean up by using cable method akpm
2007-03-06 11:59 ` Jeff Garzik
2007-03-06 15:19   ` Alan Cox
2007-03-06 14:25     ` Jeff Garzik
2007-03-06 16:27       ` Alan Cox

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.