Skip to contentSkip to conversation

aic79xx small cleanup

PATCH New Emmanuel Fusté 1 participant 1 message Apr 3, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 aic79xx small cleanup

[PATCH] aic79xx small cleanup

After Hannes Reinecke update to the aic79xx bus reset handling, we could now remove ahd_freeze/release_simq like in the aic7xxx driver.

---

Accédez au courrier électronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,34 €/mn) ; tél : 08 92 68 13 50 (0,34€/mn)

[PATCH] aic79xx small cleanup

After Hannes Reinecke update to the aic79xx bus reset handling, we could now remove ahd_freeze/release_simq like in the aic7xxx driver.

drivers/scsi/aic7xxx/aic79xx_osm.c +2 -14
@@ -1225,9 +1225,9 @@ ahd_linux_initialize_scsi_bus(struct ahd
 	ahd_unlock(ahd, &s);
 	/* Give the bus some time to recover */
 	if ((ahd->flags & AHD_RESET_BUS_A) != 0) {
-		ahd_freeze_simq(ahd);
+		scsi_block_requests(ahd->platform_data->host);
 		msleep(AIC79XX_RESET_DELAY);
-		ahd_release_simq(ahd);
+		scsi_unblock_requests(ahd->platform_data->host);
 	}
 }
 
@@ -2081,18 +2081,6 @@ ahd_linux_queue_cmd_complete(struct ahd_
 	cmd->scsi_done(cmd);
 }
 
-void
-ahd_freeze_simq(struct ahd_softc *ahd)
-{
-	scsi_block_requests(ahd->platform_data->host);
-}
-
-void
-ahd_release_simq(struct ahd_softc *ahd)
-{
-	scsi_unblock_requests(ahd->platform_data->host);
-}
-
 static int
 ahd_linux_queue_abort_cmd(struct scsi_cmnd *cmd)
 {
drivers/scsi/aic7xxx/aic79xx_osm.h +0 -2
@@ -853,8 +853,6 @@ int	ahd_platform_alloc(struct ahd_softc 
 void	ahd_platform_free(struct ahd_softc *ahd);
 void	ahd_platform_init(struct ahd_softc *ahd);
 void	ahd_platform_freeze_devq(struct ahd_softc *ahd, struct scb *scb);
-void	ahd_freeze_simq(struct ahd_softc *ahd);
-void	ahd_release_simq(struct ahd_softc *ahd);
 
 static __inline void
 ahd_freeze_scb(struct scb *scb)