3 comments:
if (!flash || !flash->mst || !flash->mst->spi.data) {
msg_perr("Unable to extract data from flash context.\n");
return SPI_GENERIC_ERROR;
}
I don't know why gerrit lost this comment twice in a row.. You can delete this, none of these are NULL able upon entry into this callback.
data->shm_io_base = 0;
data->ce_high = NULL;
data->ce_low = NULL;
data->it85xx_scratch_rom_reenter = 0;
Its a bit of a style thing, but no need to explicitly set these to 0 since: […]
agree, option (a) is ideal imho.
/* These pointers are not used directly. They will be send to EC's
* register for indirect access. */
base = 0xFFFFF000;
data->ce_high = ((unsigned char *)base) + 0xE00; /* 0xFFFFFE00 */
data->ce_low = ((unsigned char *)base) + 0xD00; /* 0xFFFFFD00 */
This part is very similar between the two LPC_* cases and is a good candidate for a small refactor i […]
We already discussed this Daniel however it is orthogonal to this commit so not addressed here.
To view, visit change 47655. To unsubscribe, or for help writing mail filters, visit settings.