[PATCH 12/14] staging: unisys: Don't set polling mode in visorhba_probe

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: David Kershner <david.kershner@xxxxxxxxxx>

Visorbus handles interrupt states for the drivers now, don't need
to handle it in the driver.

Signed-off-by: David Kershner <david.kershner@xxxxxxxxxx>
Signed-off-by: Benjamin Romer <benjamin.romer@xxxxxxxxxx>
---
 drivers/staging/unisys/visorhba/visorhba_main.c | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/drivers/staging/unisys/visorhba/visorhba_main.c b/drivers/staging/unisys/visorhba/visorhba_main.c
index e87bc2b..319ccfd 100644
--- a/drivers/staging/unisys/visorhba/visorhba_main.c
+++ b/drivers/staging/unisys/visorhba/visorhba_main.c
@@ -1085,7 +1085,6 @@ static int visorhba_probe(struct visor_device *dev)
 	struct vhba_config_max max;
 	struct visorhba_devdata *devdata = NULL;
 	int i, err, channel_offset;
-	u64 features;
 
 	scsihost = scsi_host_alloc(&visorhba_driver_template,
 				   sizeof(*devdata));
@@ -1129,16 +1128,6 @@ static int visorhba_probe(struct visor_device *dev)
 	devdata->serverchangingstate = false;
 	devdata->scsihost = scsihost;
 
-	channel_offset = offsetof(struct spar_io_channel_protocol,
-				  channel_header.features);
-	err = visorbus_read_channel(dev, channel_offset, &features, 8);
-	if (err)
-		goto err_scsi_remove_host;
-	features |= ULTRA_IO_CHANNEL_IS_POLLING;
-	err = visorbus_write_channel(dev, channel_offset, &features, 8);
-	if (err)
-		goto err_scsi_remove_host;
-
 	devdata->thread_wait_ms = 2;
 	tasklet_init(&devdata->tasklet, process_incoming_rsps,
 		     (unsigned long)devdata);
@@ -1153,9 +1142,6 @@ static int visorhba_probe(struct visor_device *dev)
 
 	return 0;
 
-err_scsi_remove_host:
-	scsi_remove_host(scsihost);
-
 err_scsi_host_put:
 	scsi_host_put(scsihost);
 	return err;
-- 
2.5.0

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel



[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux