Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mtip32xx: increase wait time for hba reset

In LUN failure conditions, device takes longer time to complete the hba reset.
Increased wait time from 1 second to 10 seconds.

Signed-off-by: Sam Bradshaw <sbradshaw@micron.com>
Signed-off-by: Asai Thambi S P <asamymuthupa@micron.com>
Signed-off-by: Jens Axboe <axboe@fb.com>

authored by

Asai Thambi SP and committed by
Jens Axboe
2f17d71d 75787265

+5 -2
+5 -2
drivers/block/mtip32xx/mtip32xx.c
··· 269 269 /* Flush */ 270 270 readl(dd->mmio + HOST_CTL); 271 271 272 - /* Spin for up to 2 seconds, waiting for reset acknowledgement */ 273 - timeout = jiffies + msecs_to_jiffies(2000); 272 + /* 273 + * Spin for up to 10 seconds waiting for reset acknowledgement. Spec 274 + * is 1 sec but in LUN failure conditions, up to 10 secs are required 275 + */ 276 + timeout = jiffies + msecs_to_jiffies(10000); 274 277 do { 275 278 mdelay(10); 276 279 if (test_bit(MTIP_DDF_REMOVE_PENDING_BIT, &dd->dd_flag))