* [PATCH 01/12] scsi/NCR5380: remove unused BOARD_NORMAL and BOARD_NCR53C400
2014-03-18 0:42 [PATCH 00/12] scsi/NCR5380: fix debugging macros and #include structure Finn Thain
@ 2014-03-18 0:42 ` Finn Thain
2014-05-28 9:48 ` Christoph Hellwig
2014-03-18 0:42 ` [PATCH 02/12] scsi/NCR5380: remove redundant HOSTS_C macro tests Finn Thain
` (10 subsequent siblings)
11 siblings, 1 reply; 27+ messages in thread
From: Finn Thain @ 2014-03-18 0:42 UTC (permalink / raw)
To: linux-arm-kernel
An embedded and charset-unspecified text was scrubbed...
Name: ncr5380-BOARD-macros
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140318/1fe6b0cf/attachment.ksh>
^ permalink raw reply [flat|nested] 27+ messages in thread
* [PATCH 02/12] scsi/NCR5380: remove redundant HOSTS_C macro tests
2014-03-18 0:42 [PATCH 00/12] scsi/NCR5380: fix debugging macros and #include structure Finn Thain
2014-03-18 0:42 ` [PATCH 01/12] scsi/NCR5380: remove unused BOARD_NORMAL and BOARD_NCR53C400 Finn Thain
@ 2014-03-18 0:42 ` Finn Thain
2014-05-28 9:49 ` Christoph Hellwig
2014-03-18 0:42 ` [PATCH 03/12] scsi/NCR5380: remove old CVS keywords Finn Thain
` (9 subsequent siblings)
11 siblings, 1 reply; 27+ messages in thread
From: Finn Thain @ 2014-03-18 0:42 UTC (permalink / raw)
To: linux-arm-kernel
An embedded and charset-unspecified text was scrubbed...
Name: ncr5380-HOSTS_C-macro
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140318/fec75727/attachment.ksh>
^ permalink raw reply [flat|nested] 27+ messages in thread
* [PATCH 03/12] scsi/NCR5380: remove old CVS keywords
2014-03-18 0:42 [PATCH 00/12] scsi/NCR5380: fix debugging macros and #include structure Finn Thain
2014-03-18 0:42 ` [PATCH 01/12] scsi/NCR5380: remove unused BOARD_NORMAL and BOARD_NCR53C400 Finn Thain
2014-03-18 0:42 ` [PATCH 02/12] scsi/NCR5380: remove redundant HOSTS_C macro tests Finn Thain
@ 2014-03-18 0:42 ` Finn Thain
2014-05-28 9:49 ` Christoph Hellwig
2014-03-18 0:42 ` [PATCH 04/12] scsi/NCR5380: use NCR5380_dprint() instead of NCR5380_print() Finn Thain
` (8 subsequent siblings)
11 siblings, 1 reply; 27+ messages in thread
From: Finn Thain @ 2014-03-18 0:42 UTC (permalink / raw)
To: linux-arm-kernel
An embedded and charset-unspecified text was scrubbed...
Name: ncr5380-remove-cvs-keywords
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140318/c7fa994e/attachment.ksh>
^ permalink raw reply [flat|nested] 27+ messages in thread
* [PATCH 04/12] scsi/NCR5380: use NCR5380_dprint() instead of NCR5380_print()
2014-03-18 0:42 [PATCH 00/12] scsi/NCR5380: fix debugging macros and #include structure Finn Thain
` (2 preceding siblings ...)
2014-03-18 0:42 ` [PATCH 03/12] scsi/NCR5380: remove old CVS keywords Finn Thain
@ 2014-03-18 0:42 ` Finn Thain
2014-05-28 9:49 ` Christoph Hellwig
2014-03-18 0:42 ` [PATCH 05/12] scsi/NCR5380: fix build failures when debugging is enabled Finn Thain
` (7 subsequent siblings)
11 siblings, 1 reply; 27+ messages in thread
From: Finn Thain @ 2014-03-18 0:42 UTC (permalink / raw)
To: linux-arm-kernel
An embedded and charset-unspecified text was scrubbed...
Name: ncr5380-debug-macros-sun3-NCR5380_print
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140318/ba5a5468/attachment.ksh>
^ permalink raw reply [flat|nested] 27+ messages in thread
* [PATCH 05/12] scsi/NCR5380: fix build failures when debugging is enabled
2014-03-18 0:42 [PATCH 00/12] scsi/NCR5380: fix debugging macros and #include structure Finn Thain
` (3 preceding siblings ...)
2014-03-18 0:42 ` [PATCH 04/12] scsi/NCR5380: use NCR5380_dprint() instead of NCR5380_print() Finn Thain
@ 2014-03-18 0:42 ` Finn Thain
2014-05-28 9:50 ` Christoph Hellwig
2014-03-18 0:42 ` [PATCH 06/12] scsi/NCR5380: fix dprintk macro usage and definition Finn Thain
` (6 subsequent siblings)
11 siblings, 1 reply; 27+ messages in thread
From: Finn Thain @ 2014-03-18 0:42 UTC (permalink / raw)
To: linux-arm-kernel
An embedded and charset-unspecified text was scrubbed...
Name: ncr5380-debug-macros-build-failures
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140318/ffbc9e5f/attachment.ksh>
^ permalink raw reply [flat|nested] 27+ messages in thread
* [PATCH 05/12] scsi/NCR5380: fix build failures when debugging is enabled
2014-03-18 0:42 ` [PATCH 05/12] scsi/NCR5380: fix build failures when debugging is enabled Finn Thain
@ 2014-05-28 9:50 ` Christoph Hellwig
2014-05-28 12:09 ` Finn Thain
0 siblings, 1 reply; 27+ messages in thread
From: Christoph Hellwig @ 2014-05-28 9:50 UTC (permalink / raw)
To: linux-arm-kernel
On Tue, Mar 18, 2014 at 11:42:17AM +1100, Finn Thain wrote:
> The change from cmd->target to cmd->device->id was apparently the purpose of
> commit a7f251228390e87d86c5e3846f99a455517fdd8e in
> kernel/git/tglx/history.git but some instances have been missed.
>
> Also fix the "NDEBUG_LAST_WRITE_SENT" and "NDEBUG_ALL" typo's.
>
> Also fix some format strings (%ul becomes %lu) that caused compiler warnings.
>
> Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Looks good,
Reviewed-by: Christoph Hellwig <hch@lst.de>
^ permalink raw reply [flat|nested] 27+ messages in thread
* [PATCH 05/12] scsi/NCR5380: fix build failures when debugging is enabled
2014-05-28 9:50 ` Christoph Hellwig
@ 2014-05-28 12:09 ` Finn Thain
2014-05-28 12:13 ` Christoph Hellwig
0 siblings, 1 reply; 27+ messages in thread
From: Finn Thain @ 2014-05-28 12:09 UTC (permalink / raw)
To: linux-arm-kernel
On Wed, 28 May 2014, Christoph Hellwig wrote:
> Looks good,
>
> Reviewed-by: Christoph Hellwig <hch@lst.de>
>
Thanks for reviewing. There was a later submission (version 2) with
changes made to three of these patches,
[PATCH v2 05/12] scsi/NCR5380: fix build failures when debugging is enabled
[PATCH v2 06/12] scsi/NCR5380: fix dprintk macro usage and definition
[PATCH v2 09/12] scsi/NCR5380: fix and standardize NDEBUG macros
And several patches in the v2 submission had some acked-by tags added.
The v2 series is the one to merge (but I think James intends to do that).
--
^ permalink raw reply [flat|nested] 27+ messages in thread
* [PATCH 06/12] scsi/NCR5380: fix dprintk macro usage and definition
2014-03-18 0:42 [PATCH 00/12] scsi/NCR5380: fix debugging macros and #include structure Finn Thain
` (4 preceding siblings ...)
2014-03-18 0:42 ` [PATCH 05/12] scsi/NCR5380: fix build failures when debugging is enabled Finn Thain
@ 2014-03-18 0:42 ` Finn Thain
2014-05-28 9:50 ` Christoph Hellwig
2014-03-18 0:42 ` [PATCH 07/12] scsi/NCR5380: adopt NCR5380_dprint() and NCR5380_dprint_phase() Finn Thain
` (5 subsequent siblings)
11 siblings, 1 reply; 27+ messages in thread
From: Finn Thain @ 2014-03-18 0:42 UTC (permalink / raw)
To: linux-arm-kernel
An embedded and charset-unspecified text was scrubbed...
Name: ncr5380-debug-macros-dprintk-params
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140318/d7ab36b9/attachment.ksh>
^ permalink raw reply [flat|nested] 27+ messages in thread
* [PATCH 07/12] scsi/NCR5380: adopt NCR5380_dprint() and NCR5380_dprint_phase()
2014-03-18 0:42 [PATCH 00/12] scsi/NCR5380: fix debugging macros and #include structure Finn Thain
` (5 preceding siblings ...)
2014-03-18 0:42 ` [PATCH 06/12] scsi/NCR5380: fix dprintk macro usage and definition Finn Thain
@ 2014-03-18 0:42 ` Finn Thain
2014-05-28 9:51 ` Christoph Hellwig
2014-03-18 0:42 ` [PATCH 08/12] scsi/NCR5380: adopt dprintk() Finn Thain
` (4 subsequent siblings)
11 siblings, 1 reply; 27+ messages in thread
From: Finn Thain @ 2014-03-18 0:42 UTC (permalink / raw)
To: linux-arm-kernel
An embedded and charset-unspecified text was scrubbed...
Name: ncr5380-debug-macros-substitute-NCRPRINT
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140318/ee78eeed/attachment.ksh>
^ permalink raw reply [flat|nested] 27+ messages in thread
* [PATCH 07/12] scsi/NCR5380: adopt NCR5380_dprint() and NCR5380_dprint_phase()
2014-03-18 0:42 ` [PATCH 07/12] scsi/NCR5380: adopt NCR5380_dprint() and NCR5380_dprint_phase() Finn Thain
@ 2014-05-28 9:51 ` Christoph Hellwig
0 siblings, 0 replies; 27+ messages in thread
From: Christoph Hellwig @ 2014-05-28 9:51 UTC (permalink / raw)
To: linux-arm-kernel
On Tue, Mar 18, 2014 at 11:42:19AM +1100, Finn Thain wrote:
> All NCR5380 drivers already include the NCR5380.h header. Better to
> adopt those macros rather than have three variations on them.
>
> Moreover, the macros in NCR5380.h are preferable anyway: the atari_NCR5380
> and sun3_NCR5380 versions are inflexible. For example, they can't accomodate
> NCR5380_dprint(NDEBUG_MAIN | NDEBUG_QUEUES, ...)
>
> Replace the NCR_PRINT* macros from atari_NCR5380.h and sun3_NCR5380.h with
> the equivalent macros from NCR5380.h.
>
> Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Looks good,
Reviewed-by: Christoph Hellwig <hch@lst.de>
^ permalink raw reply [flat|nested] 27+ messages in thread
* [PATCH 08/12] scsi/NCR5380: adopt dprintk()
2014-03-18 0:42 [PATCH 00/12] scsi/NCR5380: fix debugging macros and #include structure Finn Thain
` (6 preceding siblings ...)
2014-03-18 0:42 ` [PATCH 07/12] scsi/NCR5380: adopt NCR5380_dprint() and NCR5380_dprint_phase() Finn Thain
@ 2014-03-18 0:42 ` Finn Thain
2014-05-28 9:52 ` Christoph Hellwig
2014-03-18 0:42 ` [PATCH 09/12] scsi/NCR5380: fix and standardize NDEBUG macros Finn Thain
` (3 subsequent siblings)
11 siblings, 1 reply; 27+ messages in thread
From: Finn Thain @ 2014-03-18 0:42 UTC (permalink / raw)
To: linux-arm-kernel
An embedded and charset-unspecified text was scrubbed...
Name: ncr5380-debug-macros-substitute-X_PRINTK
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140318/30865ff5/attachment.ksh>
^ permalink raw reply [flat|nested] 27+ messages in thread
* [PATCH 08/12] scsi/NCR5380: adopt dprintk()
2014-03-18 0:42 ` [PATCH 08/12] scsi/NCR5380: adopt dprintk() Finn Thain
@ 2014-05-28 9:52 ` Christoph Hellwig
0 siblings, 0 replies; 27+ messages in thread
From: Christoph Hellwig @ 2014-05-28 9:52 UTC (permalink / raw)
To: linux-arm-kernel
On Tue, Mar 18, 2014 at 11:42:20AM +1100, Finn Thain wrote:
> All NCR5380 drivers already include the NCR5380.h header. Better to
> adopt those macros rather than have three variations on them.
>
> Moreover, the macros in NCR5380.h are preferable because the atari_NCR5380
> and sun3_NCR5380 versions are inflexible. For example, they can't accomodate
> dprintk(NDEBUG_MAIN | NDEBUG_QUEUES, ...)
>
> Replace the *_PRINTK macros from atari_NCR5380.h and sun3_NCR5380.h with
> the equivalent macros from NCR5380.h.
>
> Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Looks good,
Reviewed-by: Christoph Hellwig <hch@lst.de>
^ permalink raw reply [flat|nested] 27+ messages in thread
* [PATCH 09/12] scsi/NCR5380: fix and standardize NDEBUG macros
2014-03-18 0:42 [PATCH 00/12] scsi/NCR5380: fix debugging macros and #include structure Finn Thain
` (7 preceding siblings ...)
2014-03-18 0:42 ` [PATCH 08/12] scsi/NCR5380: adopt dprintk() Finn Thain
@ 2014-03-18 0:42 ` Finn Thain
2014-05-28 9:54 ` Christoph Hellwig
2014-03-18 0:42 ` [PATCH 10/12] scsi/NCR5380: remove unused macro definitions Finn Thain
` (2 subsequent siblings)
11 siblings, 1 reply; 27+ messages in thread
From: Finn Thain @ 2014-03-18 0:42 UTC (permalink / raw)
To: linux-arm-kernel
An embedded and charset-unspecified text was scrubbed...
Name: ncr5380-debug-macros-fix-NDEBUG
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140318/0214b636/attachment.ksh>
^ permalink raw reply [flat|nested] 27+ messages in thread
* [PATCH 09/12] scsi/NCR5380: fix and standardize NDEBUG macros
2014-03-18 0:42 ` [PATCH 09/12] scsi/NCR5380: fix and standardize NDEBUG macros Finn Thain
@ 2014-05-28 9:54 ` Christoph Hellwig
0 siblings, 0 replies; 27+ messages in thread
From: Christoph Hellwig @ 2014-05-28 9:54 UTC (permalink / raw)
To: linux-arm-kernel
On Tue, Mar 18, 2014 at 11:42:21AM +1100, Finn Thain wrote:
> All three NCR5380 core driver implementations share the same NCR5380.h
> header file so they need to agree on certain macro definitions.
>
> The flag bit used by the NDEBUG_MERGING macro in atari_NCR5380 and
> sun3_NCR5380 collides with the bit used by NDEBUG_LISTS.
>
> Moreover, NDEBUG_ABORT appears in NCR5380.c so it should be defined in
> NCR5380.h rather than in each of the many drivers using that core.
>
> An undefined NDEBUG_ABORT macro caused compiler errors and led to dodgy
> workarounds in the core driver that can now be removed.
> (See commits f566a576bca09de85bf477fc0ab2c8c96405b77b and
> 185a7a1cd79b9891e3c17abdb103ba1c98d6ca7a.)
>
> Move all of the NDEBUG_ABORT, NDEBUG_TAGS and NDEBUG_MERGING macro
> definitions into NCR5380.h where all the other NDEBUG macros live.
>
> Also, incorrect "#ifdef NDEBUG" becomes "#if NDEBUG" to fix the warning:
> drivers/scsi/mac_scsi.c: At top level:
> drivers/scsi/NCR5380.c:418: warning: 'NCR5380_print' defined but not used
> drivers/scsi/NCR5380.c:459: warning: 'NCR5380_print_phase' defined but not used
>
> The debugging code is now enabled when NDEBUG != 0.
>
> Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Looks good,
Reviewed-by: Christoph Hellwig <hch@lst.de>
^ permalink raw reply [flat|nested] 27+ messages in thread
* [PATCH 10/12] scsi/NCR5380: remove unused macro definitions
2014-03-18 0:42 [PATCH 00/12] scsi/NCR5380: fix debugging macros and #include structure Finn Thain
` (8 preceding siblings ...)
2014-03-18 0:42 ` [PATCH 09/12] scsi/NCR5380: fix and standardize NDEBUG macros Finn Thain
@ 2014-03-18 0:42 ` Finn Thain
2014-05-28 9:54 ` Christoph Hellwig
2014-03-18 0:42 ` [PATCH 11/12] scsi/NCR5380: reduce depth of sun3_scsi nested includes Finn Thain
2014-03-18 0:42 ` [PATCH 12/12] scsi/NCR5380: merge sun3_scsi_vme.c into sun3_scsi.c Finn Thain
11 siblings, 1 reply; 27+ messages in thread
From: Finn Thain @ 2014-03-18 0:42 UTC (permalink / raw)
To: linux-arm-kernel
An embedded and charset-unspecified text was scrubbed...
Name: ncr5380-debug-macros-remove-X_PRINTK-NCRPRINT
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140318/ef907de7/attachment.ksh>
^ permalink raw reply [flat|nested] 27+ messages in thread
* [PATCH 11/12] scsi/NCR5380: reduce depth of sun3_scsi nested includes
2014-03-18 0:42 [PATCH 00/12] scsi/NCR5380: fix debugging macros and #include structure Finn Thain
` (9 preceding siblings ...)
2014-03-18 0:42 ` [PATCH 10/12] scsi/NCR5380: remove unused macro definitions Finn Thain
@ 2014-03-18 0:42 ` Finn Thain
2014-05-28 9:55 ` Christoph Hellwig
2014-03-18 0:42 ` [PATCH 12/12] scsi/NCR5380: merge sun3_scsi_vme.c into sun3_scsi.c Finn Thain
11 siblings, 1 reply; 27+ messages in thread
From: Finn Thain @ 2014-03-18 0:42 UTC (permalink / raw)
To: linux-arm-kernel
An embedded and charset-unspecified text was scrubbed...
Name: ncr5380-sun3-includes
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140318/96fc3260/attachment.ksh>
^ permalink raw reply [flat|nested] 27+ messages in thread
* [PATCH 12/12] scsi/NCR5380: merge sun3_scsi_vme.c into sun3_scsi.c
2014-03-18 0:42 [PATCH 00/12] scsi/NCR5380: fix debugging macros and #include structure Finn Thain
` (10 preceding siblings ...)
2014-03-18 0:42 ` [PATCH 11/12] scsi/NCR5380: reduce depth of sun3_scsi nested includes Finn Thain
@ 2014-03-18 0:42 ` Finn Thain
2014-05-28 9:55 ` Christoph Hellwig
11 siblings, 1 reply; 27+ messages in thread
From: Finn Thain @ 2014-03-18 0:42 UTC (permalink / raw)
To: linux-arm-kernel
An embedded and charset-unspecified text was scrubbed...
Name: ncr5380-sun3-vme-merge
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140318/72dfb411/attachment.ksh>
^ permalink raw reply [flat|nested] 27+ messages in thread
* [PATCH 12/12] scsi/NCR5380: merge sun3_scsi_vme.c into sun3_scsi.c
2014-03-18 0:42 ` [PATCH 12/12] scsi/NCR5380: merge sun3_scsi_vme.c into sun3_scsi.c Finn Thain
@ 2014-05-28 9:55 ` Christoph Hellwig
0 siblings, 0 replies; 27+ messages in thread
From: Christoph Hellwig @ 2014-05-28 9:55 UTC (permalink / raw)
To: linux-arm-kernel
On Tue, Mar 18, 2014 at 11:42:24AM +1100, Finn Thain wrote:
> The sun3 drivers suffer from a whole bunch of duplicated code. Fix this
> by following the g_NCR5380_mmio example. (Notionally, sun3_scsi relates to
> sun3_scsi_vme in the same way that g_NCR5380 relates to g_NCR5380_mmio.)
>
> Dead code is also removed: we now have working debug macros so
> SUN3_SCSI_DEBUG is undesirable. Dead code within #ifdef OLD_DMA is also
> dropped, consistent with sun3_scsi_vme.c.
>
> Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Looks good,
Reviewed-by: Christoph Hellwig <hch@lst.de>
^ permalink raw reply [flat|nested] 27+ messages in thread