Re: [PATCH 2/6] mtd: diskonchip: don't call nand_scan_bbt() directly

2015-04-23 Thread Rafał Miłecki
On 23 April 2015 at 02:30, Peter Pan 潘栋 (peterpandong) wrote: > On Thu, Apr 23, 2015 at 01:51:27PM +, Brian Norris wrote: >> >> On Thu, Apr 16, 2015 at 02:11:24AM +, Peter Pan 潘栋 (peterpandong) >> wrote: >> > The diskonchip driver almost uses the default nand_base hooks as-is, >> > except

Re: [PATCH 2/6] mtd: diskonchip: don't call nand_scan_bbt() directly

2015-04-23 Thread Rafał Miłecki
On 23 April 2015 at 02:30, Peter Pan 潘栋 (peterpandong) peterpand...@micron.com wrote: On Thu, Apr 23, 2015 at 01:51:27PM +, Brian Norris wrote: On Thu, Apr 16, 2015 at 02:11:24AM +, Peter Pan 潘栋 (peterpandong) wrote: The diskonchip driver almost uses the default nand_base hooks

RE: [PATCH 2/6] mtd: diskonchip: don't call nand_scan_bbt() directly

2015-04-22 Thread peterpandong
On Thu, Apr 23, 2015 at 01:51:27PM +, Brian Norris wrote: > > On Thu, Apr 16, 2015 at 02:11:24AM +, Peter Pan 潘栋 (peterpandong) > wrote: > > The diskonchip driver almost uses the default nand_base hooks as-is, > > except that it provides custom on-flash BBT descriptors and avoids > using

Re: [PATCH 2/6] mtd: diskonchip: don't call nand_scan_bbt() directly

2015-04-22 Thread Brian Norris
On Thu, Apr 16, 2015 at 02:11:24AM +, Peter Pan 潘栋 (peterpandong) wrote: > The diskonchip driver almost uses the default nand_base hooks as-is, > except that it provides custom on-flash BBT descriptors and avoids using > factory-marked bad blockers. > > So let's refactor the BBT

Re: [PATCH 2/6] mtd: diskonchip: don't call nand_scan_bbt() directly

2015-04-22 Thread Brian Norris
On Thu, Apr 16, 2015 at 02:11:24AM +, Peter Pan 潘栋 (peterpandong) wrote: The diskonchip driver almost uses the default nand_base hooks as-is, except that it provides custom on-flash BBT descriptors and avoids using factory-marked bad blockers. So let's refactor the BBT initialization

RE: [PATCH 2/6] mtd: diskonchip: don't call nand_scan_bbt() directly

2015-04-22 Thread peterpandong
On Thu, Apr 23, 2015 at 01:51:27PM +, Brian Norris wrote: On Thu, Apr 16, 2015 at 02:11:24AM +, Peter Pan 潘栋 (peterpandong) wrote: The diskonchip driver almost uses the default nand_base hooks as-is, except that it provides custom on-flash BBT descriptors and avoids using

[PATCH 2/6] mtd: diskonchip: don't call nand_scan_bbt() directly

2015-04-15 Thread peterpandong
The diskonchip driver almost uses the default nand_base hooks as-is, except that it provides custom on-flash BBT descriptors and avoids using factory-marked bad blockers. So let's refactor the BBT initialization code into a private 'late_init' hook which handles all the private details. Note the

[PATCH 2/6] mtd: diskonchip: don't call nand_scan_bbt() directly

2015-04-15 Thread peterpandong
The diskonchip driver almost uses the default nand_base hooks as-is, except that it provides custom on-flash BBT descriptors and avoids using factory-marked bad blockers. So let's refactor the BBT initialization code into a private 'late_init' hook which handles all the private details. Note the