aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/arm/acornscsi.c
diff options
context:
space:
mode:
authorPaul Bolle <pebolle@tiscali.nl>2014-05-24 06:13:53 -0400
committerChristoph Hellwig <hch@lst.de>2014-05-28 12:14:16 -0400
commite6842f09aa3fb00616980e501c471ec9098c5d69 (patch)
treed297772aa038d6522b65d74b45030f9b07eb30c9 /drivers/scsi/arm/acornscsi.c
parent16b9d870a0f19f6c1061927a623d9c51c09f2bed (diff)
acornscsi: remove linked command support
The acornscsi driver was added in v2.1.88. It has always #undef-ed CONFIG_SCSI_ACORNSCSI_LINK near the top of acornscsi.c. And, just to be sure, it has also always triggered a preprocessor error if CONFIG_SCSI_ACORNSCSI_LINK was still defined. But, as far as I can see, it has never even been possible to set SCSI_ACORNSCSI_LINK through kconfig, or its predecessors, in the first place. Let's remove the code involved. Signed-off-by: Paul Bolle <pebolle@tiscali.nl> Acked-by: Russell King <rmk+kernel@arm.linux.org.uk> Acked-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/scsi/arm/acornscsi.c')
-rw-r--r--drivers/scsi/arm/acornscsi.c53
1 files changed, 0 insertions, 53 deletions
diff --git a/drivers/scsi/arm/acornscsi.c b/drivers/scsi/arm/acornscsi.c
index 059ff477a398..2e797a367608 100644
--- a/drivers/scsi/arm/acornscsi.c
+++ b/drivers/scsi/arm/acornscsi.c
@@ -62,13 +62,6 @@
62 */ 62 */
63#undef CONFIG_SCSI_ACORNSCSI_TAGGED_QUEUE 63#undef CONFIG_SCSI_ACORNSCSI_TAGGED_QUEUE
64/* 64/*
65 * SCSI-II Linked command support.
66 *
67 * The higher level code doesn't support linked commands yet, and so the option
68 * is undef'd here.
69 */
70#undef CONFIG_SCSI_ACORNSCSI_LINK
71/*
72 * SCSI-II Synchronous transfer support. 65 * SCSI-II Synchronous transfer support.
73 * 66 *
74 * Tried and tested... 67 * Tried and tested...
@@ -160,10 +153,6 @@
160#error "Yippee! ABORT TAG is now defined! Remove this error!" 153#error "Yippee! ABORT TAG is now defined! Remove this error!"
161#endif 154#endif
162 155
163#ifdef CONFIG_SCSI_ACORNSCSI_LINK
164#error SCSI2 LINKed commands not supported (yet)!
165#endif
166
167#ifdef USE_DMAC 156#ifdef USE_DMAC
168/* 157/*
169 * DMAC setup parameters 158 * DMAC setup parameters
@@ -1668,42 +1657,6 @@ void acornscsi_message(AS_Host *host)
1668 } 1657 }
1669 break; 1658 break;
1670 1659
1671#ifdef CONFIG_SCSI_ACORNSCSI_LINK
1672 case LINKED_CMD_COMPLETE:
1673 case LINKED_FLG_CMD_COMPLETE:
1674 /*
1675 * We don't support linked commands yet
1676 */
1677 if (0) {
1678#if (DEBUG & DEBUG_LINK)
1679 printk("scsi%d.%c: lun %d tag %d linked command complete\n",
1680 host->host->host_no, acornscsi_target(host), host->SCpnt->tag);
1681#endif
1682 /*
1683 * A linked command should only terminate with one of these messages
1684 * if there are more linked commands available.
1685 */
1686 if (!host->SCpnt->next_link) {
1687 printk(KERN_WARNING "scsi%d.%c: lun %d tag %d linked command complete, but no next_link\n",
1688 instance->host_no, acornscsi_target(host), host->SCpnt->tag);
1689 acornscsi_sbic_issuecmd(host, CMND_ASSERTATN);
1690 msgqueue_addmsg(&host->scsi.msgs, 1, ABORT);
1691 } else {
1692 struct scsi_cmnd *SCpnt = host->SCpnt;
1693
1694 acornscsi_dma_cleanup(host);
1695
1696 host->SCpnt = host->SCpnt->next_link;
1697 host->SCpnt->tag = SCpnt->tag;
1698 SCpnt->result = DID_OK | host->scsi.SCp.Message << 8 | host->Scsi.SCp.Status;
1699 SCpnt->done(SCpnt);
1700
1701 /* initialise host->SCpnt->SCp */
1702 }
1703 break;
1704 }
1705#endif
1706
1707 default: /* reject message */ 1660 default: /* reject message */
1708 printk(KERN_ERR "scsi%d.%c: unrecognised message %02X, rejecting\n", 1661 printk(KERN_ERR "scsi%d.%c: unrecognised message %02X, rejecting\n",
1709 host->host->host_no, acornscsi_target(host), 1662 host->host->host_no, acornscsi_target(host),
@@ -2825,9 +2778,6 @@ char *acornscsi_info(struct Scsi_Host *host)
2825#ifdef CONFIG_SCSI_ACORNSCSI_TAGGED_QUEUE 2778#ifdef CONFIG_SCSI_ACORNSCSI_TAGGED_QUEUE
2826 " TAG" 2779 " TAG"
2827#endif 2780#endif
2828#ifdef CONFIG_SCSI_ACORNSCSI_LINK
2829 " LINK"
2830#endif
2831#if (DEBUG & DEBUG_NO_WRITE) 2781#if (DEBUG & DEBUG_NO_WRITE)
2832 " NOWRITE (" __stringify(NO_WRITE) ")" 2782 " NOWRITE (" __stringify(NO_WRITE) ")"
2833#endif 2783#endif
@@ -2851,9 +2801,6 @@ static int acornscsi_show_info(struct seq_file *m, struct Scsi_Host *instance)
2851#ifdef CONFIG_SCSI_ACORNSCSI_TAGGED_QUEUE 2801#ifdef CONFIG_SCSI_ACORNSCSI_TAGGED_QUEUE
2852 " TAG" 2802 " TAG"
2853#endif 2803#endif
2854#ifdef CONFIG_SCSI_ACORNSCSI_LINK
2855 " LINK"
2856#endif
2857#if (DEBUG & DEBUG_NO_WRITE) 2804#if (DEBUG & DEBUG_NO_WRITE)
2858 " NOWRITE (" __stringify(NO_WRITE) ")" 2805 " NOWRITE (" __stringify(NO_WRITE) ")"
2859#endif 2806#endif