Re: [U-Boot] [PATCH v2 08/10] scsi: move the partition initialization out of the scsi detection
On 9 April 2017 at 13:27, Simon Glasswrote: > On 7 April 2017 at 05:42, Jean-Jacques Hiblot wrote: >> We might want to get information about the scsi device without initializing >> the partition. >> >> Signed-off-by: Jean-Jacques Hiblot >> --- >> common/scsi.c | 3 ++- >> 1 file changed, 2 insertions(+), 1 deletion(-) > > Reviewed-by: Simon Glass Applied to u-boot-dm, thanks! ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot
Re: [U-Boot] [PATCH v2 08/10] scsi: move the partition initialization out of the scsi detection
On 7 April 2017 at 05:42, Jean-Jacques Hiblotwrote: > We might want to get information about the scsi device without initializing > the partition. > > Signed-off-by: Jean-Jacques Hiblot > --- > common/scsi.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) Reviewed-by: Simon Glass ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot
Re: [U-Boot] [PATCH v2 08/10] scsi: move the partition initialization out of the scsi detection
On Fri, Apr 07, 2017 at 01:42:07PM +0200, Jean-Jacques Hiblot wrote: > We might want to get information about the scsi device without initializing > the partition. > > Signed-off-by: Jean-Jacques HiblotReviewed-by: Tom Rini -- Tom signature.asc Description: Digital signature ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot
[U-Boot] [PATCH v2 08/10] scsi: move the partition initialization out of the scsi detection
We might want to get information about the scsi device without initializing the partition. Signed-off-by: Jean-Jacques Hiblot--- common/scsi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/scsi.c b/common/scsi.c index d55ba89..972ef338 100644 --- a/common/scsi.c +++ b/common/scsi.c @@ -540,7 +540,6 @@ static int scsi_detect_dev(int target, int lun, struct blk_desc *dev_desc) dev_desc->blksz = blksz; dev_desc->log2blksz = LOG2(dev_desc->blksz); dev_desc->type = perq; - part_init(_desc[0]); removable: return 0; } @@ -605,6 +604,7 @@ int scsi_scan(int mode) device_unbind(bdev); continue; } + part_init(bdesc); if (mode == 1) { printf(" Device %d: ", 0); @@ -634,6 +634,7 @@ int scsi_scan(int mode) _dev_desc[scsi_max_devs]); if (ret) continue; + part_init(_dev_desc[scsi_max_devs]); if (mode == 1) { printf(" Device %d: ", 0); -- 1.9.1 ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot