Skip to content

RFC atp870u: Remove the first level of crap

Ondrej Zary linux-scsi 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest34 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/34atp870u: Remove workportdrivers/scsi/atp870u.c+28 -310 replies
2/34atp870u: Remove tmport1drivers/scsi/atp870u.c+3 -40 replies
3/34atp870u: Untangle tmportdrivers/scsi/atp870u.c+71 -1150 replies
4/34atp870u: Untangle tmport #2drivers/scsi/atp870u.c+32 -470 replies
5/34atp870u: Untangle tmport #3drivers/scsi/atp870u.c+49 -690 replies
6/34atp870u: Untangle tmport #4drivers/scsi/atp870u.c+138 -2320 replies
7/34atp870u: Untangle tmport #5drivers/scsi/atp870u.c+173 -2970 replies
8/34atp870u: Untangle tmport #6drivers/scsi/atp870u.c+49 -870 replies
9/34atp870u: Untangle tmport #7drivers/scsi/atp870u.c+5 -110 replies
10/34atp870u: Untangle tmport #8drivers/scsi/atp870u.c+177 -3010 replies
11/34atp870u: Untangle tmpcipdrivers/scsi/atp870u.c+23 -410 replies
12/34atp870u: Untangle tmpcip #2drivers/scsi/atp870u.c+9 -160 replies
13/34atp870u: Remove ugly gotosdrivers/scsi/atp870u.c+30 -540 replies
14/34atp870u: Remove ugly gotos #2drivers/scsi/atp870u.c+30 -380 replies
15/34atp870u: Remove ugly gotos #3drivers/scsi/atp870u.c+6 -120 replies
16/34atp870u: Remove ugly gotos #4drivers/scsi/atp870u.c+15 -170 replies
17/34atp870u: Remove ugly gotos #5drivers/scsi/atp870u.c+62 -720 replies
18/34atp870u: Introduce HW access wrappersdrivers/scsi/atp870u.c+252 -2200 replies
19/34atp870u: Convert is870() to use wrappersdrivers/scsi/atp870u.c+138 -1380 replies
20/34atp870u: Convert is880() to use wrappersdrivers/scsi/atp870u.c+176 -1760 replies
21/34atp870u: Convert is885() to use wrappersdrivers/scsi/atp870u.c+179 -1790 replies
22/34atp870u: Unify code format in is870(), is880() and is885()drivers/scsi/atp870u.c+101 -690 replies
23/34atp870u: Add channel parameter to is870() and is880()drivers/scsi/atp870u.c+342 -3420 replies
24/34atp870u: Move chip-specific lines out of is880() and is885()drivers/scsi/atp870u.c+10 -140 replies
25/34atp870u: Remove is880()drivers/scsi/atp870u.c+1 -5710 replies
26/34atp870u: Add wide_chip parameter to is870() and is885()drivers/scsi/atp870u.c+25 -210 replies
27/34atp870u: Add remaining 870 support to is885()drivers/scsi/atp870u.c+31 -140 replies
28/34atp870u: Move 870-specific code out of is870()drivers/scsi/atp870u.c+2 -30 replies
29/34atp870u: Remove is870()drivers/scsi/atp870u.c+1 -4260 replies
30/34atp870u: Rename is885() to atp_is()drivers/scsi/atp870u.c+6 -60 replies
31/34atp870u: Convert remaining in[bwl] and out[bwl] to wrappersdrivers/scsi/atp870u.c+118 -1040 replies
32/34atp870u: Replace port 0x80 delay by udelaydrivers/scsi/atp870u.c+9 -90 replies
33/34atp870u: Fix incorrect writeb_io access to register 0x3adrivers/scsi/atp870u.c+4 -40 replies
34/34atp870u: Introduce atp_set_host_iddrivers/scsi/atp870u.c+18 -390 replies

Reviews trailers per patch

None of the 34 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchChristoph Hellwig
SeriesA-b
1/34
2/34
3/34
4/34
5/34
6/34
7/34
8/34
9/34
10/34
11/34
12/34
13/34
14/34
15/34
16/34
17/34
18/34
19/34
20/34
21/34
22/34
23/34
24/34
25/34
26/34
27/34
28/34
29/34
30/34
31/34
32/34
33/34
34/34

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [RFC PATCH 00/34] atp870u: Remove the first level of crap

This patch series removes the first level of crap from atp870u - the worst (in-tree) SCSI driver [1], allowing some more work to be done next.

First the driver is converted to C from something that looks like a (bad) assembler code: use of tmport for all I/O accesses and gotos all over the code.
Then I/O access wrappers are introduced.
Finally, is870, is880 and is885 are unified and two of them removed.

Tested on AEC-6710D (ATP870IU-C).

[1] http://www.spinics.net/lists/linux-scsi/msg81142.html

 atp870u.c | 3226 ++++++++++++++++----------------------------------------------
 1 file changed, 880 insertions(+), 2346 deletions(-)
Signature · 1 line
Ondrej Zary