[PATCH] mtd: bcm47xxpart.c: Extra TRX magics, NVRAM part handling
Joseph East
eastyjr at gmail.com
Sat Jul 25 07:33:56 PDT 2015
On 25/07/2015 10:08 PM, Jonas Gorski wrote:
> If it's based on four patches, it should be also submitted as four
> patches, especially as these four changes only have in common that
> they touch the same file.
Will re-send patches as separate items shortly. I thought that as each patch only impacted this one file, squashing them would be the better course of action.
>>
>> + if (!found_nvram) {
>> + pr_err("can not find a nvram partition reserve last block\n");
>
> I have trouble parsing this sentence, do you mean somethign like
> "Cannot find an nvram partition, therefore reserve the last block as
> one."? Also this probably should be a pr_warn, not a pr_err, as you
> don't abort here.
>
>
>> + bcm47xxpart_add_part(&parts[curr_part++], "nvram_guess",
>> + master->size - blocksize * 2, MTD_WRITEABLE);
>> + for (i = 0; i < curr_part; i++) {
>> + if (parts[i].size + parts[i].offset == master->size)
>> + parts[i].offset -= blocksize * 2;
>
> ... and you reserve the last *two* blocks here, not just the last block.
>
Have corrected the description to reflect reservation of the last two blocks in V2.
Cheers,
Joseph
More information about the linux-mtd
mailing list