Jean-Jacques Hiblot 4e27b9a584 dm: scsi: fix divide-by-0 error in scsi_scan()
With DM_SCSI enabled, blk_create_devicef() is called with blkz = 0, leading
to a divide-by-0 exception.
scsi_detect_dev() can be used to get the required parameters (block size
and number of blocks) from the drive before calling blk_create_devicef().

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2017-04-14 19:38:57 -06:00
..
2017-01-20 15:38:01 -05:00
2013-04-01 16:33:52 -04:00
2017-04-05 16:36:56 -04:00
2013-04-01 16:33:52 -04:00
2015-05-21 09:13:19 -04:00
2017-04-12 13:28:27 -04:00
2014-03-21 16:43:59 -04:00
2014-04-17 17:44:36 -04:00
2014-03-21 16:43:59 -04:00
2014-03-21 16:43:59 -04:00
2016-04-18 12:29:14 -04:00
2016-02-06 12:00:59 +01:00
2016-05-02 18:37:09 -04:00
2016-03-27 09:12:17 -04:00
2011-10-22 01:13:35 +02:00
2016-09-23 17:53:48 -04:00