cciss: do not attempt to read from a write-only register
PATCH 1/1 cciss: do not attempt to read from a write-only register
From: Stephen M. Cameron <[email protected]>
Most smartarrays will tolerate it, but some new ones don't.
Signed-off-by Stephen M. Cameron <[email protected]>
--- drivers/block/cciss.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/block/cciss.h +1 -1
@@ -223,7 +223,7 @@ static void SA5_submit_command( ctlr_info_t *h, CommandList_struct *c) h->ctlr, c->busaddr);#endif /* CCISS_DEBUG */ writel (c->busaddr, h->vaddr +SA5_REQUEST_PORT_OFFSET ); -readl (h->vaddr +SA5_REQUEST_PORT_OFFSET ); +readl (h->vaddr +SA5_SCRATCHPAD_OFFSET ); h->commands_outstanding++;if ( h->commands_outstanding > h->max_outstanding) h->max_outstanding = h->commands_outstanding;
Jens Axboe
maintainerQuoted 3 lines · Stephen M. Cameron
From: Stephen M. Cameron <[email protected]>
Most smartarrays will tolerate it, but some new ones don't.
Thanks, I'll queue this for 3.1 and mark for stable backport.
Signature · 1 line
Jens Axboe