Re: [U-Boot] [PATCH v2 03/40] dm: blk: Add a generic function for block device commands

2017-08-31 Thread Bin Meng
Hi Simon, On Thu, Aug 31, 2017 at 8:51 PM, Simon Glass wrote: > Hi Bin, > > On 1 August 2017 at 12:56, Bin Meng wrote: >> Hi Simon, >> >> On Sun, Jul 30, 2017 at 1:34 AM, Simon Glass wrote: >>> Most block devices provide a command (e.g. 'sata', 'scsi', 'ide') and >>> these commands generally do

Re: [U-Boot] [PATCH v2 03/40] dm: blk: Add a generic function for block device commands

2017-08-31 Thread Simon Glass
Hi Bin, On 1 August 2017 at 12:56, Bin Meng wrote: > Hi Simon, > > On Sun, Jul 30, 2017 at 1:34 AM, Simon Glass wrote: >> Most block devices provide a command (e.g. 'sata', 'scsi', 'ide') and >> these commands generally do the same thing. This makes it harder to >> maintain this code and keep it

Re: [U-Boot] [PATCH v2 03/40] dm: blk: Add a generic function for block device commands

2017-07-31 Thread Bin Meng
Hi Simon, On Sun, Jul 30, 2017 at 1:34 AM, Simon Glass wrote: > Most block devices provide a command (e.g. 'sata', 'scsi', 'ide') and > these commands generally do the same thing. This makes it harder to > maintain this code and keep it consistent. > > We now have a block device interface which i

[U-Boot] [PATCH v2 03/40] dm: blk: Add a generic function for block device commands

2017-07-29 Thread Simon Glass
Most block devices provide a command (e.g. 'sata', 'scsi', 'ide') and these commands generally do the same thing. This makes it harder to maintain this code and keep it consistent. We now have a block device interface which is either implemented by driver model (when CONFIG_BLK is enabled) or with