* [PATCH 05/71] ncr5380: Remove NCR5380_local_declare and NCR5380_setup macros [not found] <20151118083455.331768508@telegraphics.com.au> @ 2015-11-18 8:35 ` Finn Thain 2015-11-19 7:41 ` Hannes Reinecke 2015-11-18 8:35 ` [PATCH 07/71] ncr5380: Split NCR5380_init() into two functions Finn Thain ` (6 subsequent siblings) 7 siblings, 1 reply; 10+ messages in thread From: Finn Thain @ 2015-11-18 8:35 UTC (permalink / raw) To: linux-arm-kernel An embedded and charset-unspecified text was scrubbed... Name: ncr5380-eliminate-local_declare-macros URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20151118/1436c36a/attachment.ksh> ^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 05/71] ncr5380: Remove NCR5380_local_declare and NCR5380_setup macros 2015-11-18 8:35 ` [PATCH 05/71] ncr5380: Remove NCR5380_local_declare and NCR5380_setup macros Finn Thain @ 2015-11-19 7:41 ` Hannes Reinecke 0 siblings, 0 replies; 10+ messages in thread From: Hannes Reinecke @ 2015-11-19 7:41 UTC (permalink / raw) To: linux-arm-kernel On 11/18/2015 09:35 AM, Finn Thain wrote: > The NCR5380_local_declare and NCR5380_setup macros exist to define and > initialize a particular local variable, to provide the address of the > chip registers needed for the driver's implementation of its > NCR5380_read/write register access macros. > > In cumana_1 and macscsi, these macros generate pointless code like this, > struct Scsi_Host *_instance; > _instance = instance; > > In pas16, the use of NCR5380_read/write in pas16_hw_detect() requires that > the io_port local variable has been defined and initialized, but the > NCR5380_local_declare and NCR5380_setup macros can't be used for that > purpose because the Scsi_Host struct has not yet been instantiated. > > Moreover, these macros were removed from atari_NCR5380.c long ago and > now they constitute yet another discrepancy between the two core driver > forks. > > Remove these "optimizations". > > Signed-off-by: Finn Thain <fthain@telegraphics.com.au> > > --- Reviewed-by: Hannes Reinecke <hare@suse.com> Cheers, Hannes -- Dr. Hannes Reinecke zSeries & Storage hare at suse.de +49 911 74053 688 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 N?rnberg GF: F. Imend?rffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton HRB 21284 (AG N?rnberg) ^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 07/71] ncr5380: Split NCR5380_init() into two functions [not found] <20151118083455.331768508@telegraphics.com.au> 2015-11-18 8:35 ` [PATCH 05/71] ncr5380: Remove NCR5380_local_declare and NCR5380_setup macros Finn Thain @ 2015-11-18 8:35 ` Finn Thain 2015-11-19 13:30 ` Hannes Reinecke 2015-11-18 8:35 ` [PATCH 19/71] ncr5380: Cleanup bogus {request, release}_region() calls Finn Thain ` (5 subsequent siblings) 7 siblings, 1 reply; 10+ messages in thread From: Finn Thain @ 2015-11-18 8:35 UTC (permalink / raw) To: linux-arm-kernel An embedded and charset-unspecified text was scrubbed... Name: ncr5380-bus-wedge URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20151118/1ae98848/attachment.ksh> ^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 07/71] ncr5380: Split NCR5380_init() into two functions 2015-11-18 8:35 ` [PATCH 07/71] ncr5380: Split NCR5380_init() into two functions Finn Thain @ 2015-11-19 13:30 ` Hannes Reinecke 0 siblings, 0 replies; 10+ messages in thread From: Hannes Reinecke @ 2015-11-19 13:30 UTC (permalink / raw) To: linux-arm-kernel On 11/18/2015 09:35 AM, Finn Thain wrote: > This patch splits the NCR5380_init() function into two parts, similar > to the scheme used with atari_NCR5380.c. This avoids two problems. > > Firstly, NCR5380_init() may perform a bus reset, which would cause the > chip to assert IRQ. The chip is unable to mask its bus reset interrupt. > Drivers can't call request_irq() before calling NCR5380_init(), because > initialization must happen before the interrupt handler executes. If > driver initialization causes an interrupt it may be problematic on some > platforms. To avoid that, first move the bus reset code into > NCR5380_maybe_reset_bus(). > > Secondly, NCR5380_init() contains some board-specific interrupt setup code > for the NCR53C400 that does not belong in the core driver. In moving this > code, better not re-order interrupt initialization and bus reset. Again, > the solution is to move the bus reset code into NCR5380_maybe_reset_bus(). > > Signed-off-by: Finn Thain <fthain@telegraphics.com.au> > Reviewed-by: Hannes Reinecke <hare@suse.com> Cheers, Hannes -- Dr. Hannes Reinecke zSeries & Storage hare at suse.de +49 911 74053 688 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 N?rnberg GF: F. Imend?rffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton HRB 21284 (AG N?rnberg) ^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 19/71] ncr5380: Cleanup bogus {request, release}_region() calls [not found] <20151118083455.331768508@telegraphics.com.au> 2015-11-18 8:35 ` [PATCH 05/71] ncr5380: Remove NCR5380_local_declare and NCR5380_setup macros Finn Thain 2015-11-18 8:35 ` [PATCH 07/71] ncr5380: Split NCR5380_init() into two functions Finn Thain @ 2015-11-18 8:35 ` Finn Thain 2015-11-18 8:35 ` [PATCH 20/71] ncr5380: Introduce unbound workqueue Finn Thain ` (4 subsequent siblings) 7 siblings, 0 replies; 10+ messages in thread From: Finn Thain @ 2015-11-18 8:35 UTC (permalink / raw) To: linux-arm-kernel An embedded and charset-unspecified text was scrubbed... Name: ncr5380-cleanup-request_region-release_region URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20151118/f1c07ae0/attachment.ksh> ^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 20/71] ncr5380: Introduce unbound workqueue [not found] <20151118083455.331768508@telegraphics.com.au> ` (2 preceding siblings ...) 2015-11-18 8:35 ` [PATCH 19/71] ncr5380: Cleanup bogus {request, release}_region() calls Finn Thain @ 2015-11-18 8:35 ` Finn Thain 2015-11-18 8:35 ` [PATCH 24/71] ncr5380: Implement NCR5380_dma_xfer_len and remove LIMIT_TRANSFERSIZE macro Finn Thain ` (3 subsequent siblings) 7 siblings, 0 replies; 10+ messages in thread From: Finn Thain @ 2015-11-18 8:35 UTC (permalink / raw) To: linux-arm-kernel An embedded and charset-unspecified text was scrubbed... Name: ncr5380-new-workqueue URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20151118/3cc1d646/attachment.ksh> ^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 24/71] ncr5380: Implement NCR5380_dma_xfer_len and remove LIMIT_TRANSFERSIZE macro [not found] <20151118083455.331768508@telegraphics.com.au> ` (3 preceding siblings ...) 2015-11-18 8:35 ` [PATCH 20/71] ncr5380: Introduce unbound workqueue Finn Thain @ 2015-11-18 8:35 ` Finn Thain 2015-11-18 8:35 ` [PATCH 45/71] ncr5380: Cleanup #include directives Finn Thain ` (2 subsequent siblings) 7 siblings, 0 replies; 10+ messages in thread From: Finn Thain @ 2015-11-18 8:35 UTC (permalink / raw) To: linux-arm-kernel An embedded and charset-unspecified text was scrubbed... Name: ncr5380-implement-NCR5380_dma_xfer_len URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20151118/98f96b59/attachment.ksh> ^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 45/71] ncr5380: Cleanup #include directives [not found] <20151118083455.331768508@telegraphics.com.au> ` (4 preceding siblings ...) 2015-11-18 8:35 ` [PATCH 24/71] ncr5380: Implement NCR5380_dma_xfer_len and remove LIMIT_TRANSFERSIZE macro Finn Thain @ 2015-11-18 8:35 ` Finn Thain 2015-11-18 8:35 ` [PATCH 51/71] ncr5380: Remove command list debug code Finn Thain 2015-11-18 8:35 ` [PATCH 57/71] ncr5380: Use standard list data structure Finn Thain 7 siblings, 0 replies; 10+ messages in thread From: Finn Thain @ 2015-11-18 8:35 UTC (permalink / raw) To: linux-arm-kernel An embedded and charset-unspecified text was scrubbed... Name: ncr5380-move-core-driver-includes URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20151118/acb2858d/attachment.ksh> ^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 51/71] ncr5380: Remove command list debug code [not found] <20151118083455.331768508@telegraphics.com.au> ` (5 preceding siblings ...) 2015-11-18 8:35 ` [PATCH 45/71] ncr5380: Cleanup #include directives Finn Thain @ 2015-11-18 8:35 ` Finn Thain 2015-11-18 8:35 ` [PATCH 57/71] ncr5380: Use standard list data structure Finn Thain 7 siblings, 0 replies; 10+ messages in thread From: Finn Thain @ 2015-11-18 8:35 UTC (permalink / raw) To: linux-arm-kernel An embedded and charset-unspecified text was scrubbed... Name: ncr5380-remove-cmd-list-debug-code URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20151118/9db1a415/attachment.ksh> ^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 57/71] ncr5380: Use standard list data structure [not found] <20151118083455.331768508@telegraphics.com.au> ` (6 preceding siblings ...) 2015-11-18 8:35 ` [PATCH 51/71] ncr5380: Remove command list debug code Finn Thain @ 2015-11-18 8:35 ` Finn Thain 7 siblings, 0 replies; 10+ messages in thread From: Finn Thain @ 2015-11-18 8:35 UTC (permalink / raw) To: linux-arm-kernel An embedded and charset-unspecified text was scrubbed... Name: ncr5380-use-list_head URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20151118/2fb557e3/attachment.ksh> ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2015-11-19 13:30 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20151118083455.331768508@telegraphics.com.au>
2015-11-18 8:35 ` [PATCH 05/71] ncr5380: Remove NCR5380_local_declare and NCR5380_setup macros Finn Thain
2015-11-19 7:41 ` Hannes Reinecke
2015-11-18 8:35 ` [PATCH 07/71] ncr5380: Split NCR5380_init() into two functions Finn Thain
2015-11-19 13:30 ` Hannes Reinecke
2015-11-18 8:35 ` [PATCH 19/71] ncr5380: Cleanup bogus {request, release}_region() calls Finn Thain
2015-11-18 8:35 ` [PATCH 20/71] ncr5380: Introduce unbound workqueue Finn Thain
2015-11-18 8:35 ` [PATCH 24/71] ncr5380: Implement NCR5380_dma_xfer_len and remove LIMIT_TRANSFERSIZE macro Finn Thain
2015-11-18 8:35 ` [PATCH 45/71] ncr5380: Cleanup #include directives Finn Thain
2015-11-18 8:35 ` [PATCH 51/71] ncr5380: Remove command list debug code Finn Thain
2015-11-18 8:35 ` [PATCH 57/71] ncr5380: Use standard list data structure Finn Thain
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).