Hello Sajida Bhanu,
I'd like you to do a code review. Please visit
https://review.coreboot.org/c/coreboot/+/38542
to review the following change.
Change subject: sc7180: QSIP SPI NOR addressing mode ......................................................................
sc7180: QSIP SPI NOR addressing mode
Putting SPI NOR 3 byte addressing mode as it is not supporting 4 byte addressing mode.
Change-Id: I232dde9387f0c83dd1578f3cbab4ab85a711349d Signed-off-by: Veerabhadrarao Badiganti vbadigan@codeaurora.org Signed-off-by: Shaik Sajida Bhanu sbhanu@codeaurora.org --- M src/drivers/spi/spi_flash.c M src/drivers/spi/winbond.c 2 files changed, 24 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/42/38542/1
diff --git a/src/drivers/spi/spi_flash.c b/src/drivers/spi/spi_flash.c index 90dd587..85cc160 100644 --- a/src/drivers/spi/spi_flash.c +++ b/src/drivers/spi/spi_flash.c @@ -459,6 +459,7 @@ { struct spi_slave spi; int ret = -1; + u8 reg8;
if (spi_setup_slave(bus, cs, &spi)) { printk(BIOS_WARNING, "SF: Failed to set up slave\n"); @@ -491,6 +492,21 @@ " CONFIG_ROM_SIZE 0x%x!!\n", flash->size, CONFIG_ROM_SIZE); } + + /*Check addressing mode*/ + spi_flash_cmd(&flash->spi, 0x15, ®8, sizeof(reg8)); + + if (reg8 & 0x1 ) { + printk(BIOS_WARNING, "4 byte adressing mode set:%02x\n. Falling back to 3 byte addressing mode\n", reg8); + } + + spi_flash_cmd(&flash->spi, 0xe9, NULL, 0); + spi_flash_cmd(&flash->spi, 0x15, ®8, sizeof(reg8)); + if (reg8 & 0x1 ) { + printk(BIOS_WARNING, "4 byte adressing mode set:%02x\n. Exiting 4 byte mode not working . Looping here\n ", reg8); + while(1); + } + return 0; }
diff --git a/src/drivers/spi/winbond.c b/src/drivers/spi/winbond.c index e85f59d..c4dc3d4 100644 --- a/src/drivers/spi/winbond.c +++ b/src/drivers/spi/winbond.c @@ -174,6 +174,14 @@ .bp_bits = 3, }, { + .id = 0x6019, + .name = "W25Q64DW", + .nr_sectors_shift = 11, + .fast_read_dual_output_support = 1, + .protection_granularity_shift = 17, + .bp_bits = 3, + }, + { .id = 0x4018, .name = "W25Q128_V", .nr_sectors_shift = 12,
build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38542 )
Change subject: sc7180: QSIP SPI NOR addressing mode ......................................................................
Patch Set 1:
(7 comments)
https://review.coreboot.org/c/coreboot/+/38542/1/src/drivers/spi/spi_flash.c File src/drivers/spi/spi_flash.c:
https://review.coreboot.org/c/coreboot/+/38542/1/src/drivers/spi/spi_flash.c... PS1, Line 499: if (reg8 & 0x1 ) { space prohibited before that close parenthesis ')'
https://review.coreboot.org/c/coreboot/+/38542/1/src/drivers/spi/spi_flash.c... PS1, Line 499: if (reg8 & 0x1 ) { braces {} are not necessary for single statement blocks
https://review.coreboot.org/c/coreboot/+/38542/1/src/drivers/spi/spi_flash.c... PS1, Line 500: printk(BIOS_WARNING, "4 byte adressing mode set:%02x\n. Falling back to 3 byte addressing mode\n", reg8); line over 96 characters
https://review.coreboot.org/c/coreboot/+/38542/1/src/drivers/spi/spi_flash.c... PS1, Line 505: if (reg8 & 0x1 ) { space prohibited before that close parenthesis ')'
https://review.coreboot.org/c/coreboot/+/38542/1/src/drivers/spi/spi_flash.c... PS1, Line 506: printk(BIOS_WARNING, "4 byte adressing mode set:%02x\n. Exiting 4 byte mode not working . Looping here\n ", reg8); line over 96 characters
https://review.coreboot.org/c/coreboot/+/38542/1/src/drivers/spi/spi_flash.c... PS1, Line 507: while(1); space required before the open parenthesis '('
https://review.coreboot.org/c/coreboot/+/38542/1/src/drivers/spi/spi_flash.c... PS1, Line 507: while(1); trailing statements should be on next line
Aaron Durbin has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38542 )
Change subject: sc7180: QSIP SPI NOR addressing mode ......................................................................
Patch Set 1:
(1 comment)
https://review.coreboot.org/c/coreboot/+/38542/1/src/drivers/spi/spi_flash.c File src/drivers/spi/spi_flash.c:
https://review.coreboot.org/c/coreboot/+/38542/1/src/drivers/spi/spi_flash.c... PS1, Line 497: 0x15 Why are we issuing commands to devices that may not apply? This does not seem appropriate since you don't know what type of device is actually there. These commands are device specific. Likewise, this seems like a workaround for the part being potentially in a 4 byte addressing mode. However, I don't think this check belongs in the main part of the code here as well as being done unconditionally.
build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38542 )
Change subject: sc7180: QSIP SPI NOR addressing mode ......................................................................
Patch Set 2:
(7 comments)
https://review.coreboot.org/c/coreboot/+/38542/2/src/drivers/spi/spi_flash.c File src/drivers/spi/spi_flash.c:
https://review.coreboot.org/c/coreboot/+/38542/2/src/drivers/spi/spi_flash.c... PS2, Line 499: if (reg8 & 0x1 ) { space prohibited before that close parenthesis ')'
https://review.coreboot.org/c/coreboot/+/38542/2/src/drivers/spi/spi_flash.c... PS2, Line 499: if (reg8 & 0x1 ) { braces {} are not necessary for single statement blocks
https://review.coreboot.org/c/coreboot/+/38542/2/src/drivers/spi/spi_flash.c... PS2, Line 500: printk(BIOS_WARNING, "4 byte adressing mode set:%02x\n. Falling back to 3 byte addressing mode\n", reg8); line over 96 characters
https://review.coreboot.org/c/coreboot/+/38542/2/src/drivers/spi/spi_flash.c... PS2, Line 505: if (reg8 & 0x1 ) { space prohibited before that close parenthesis ')'
https://review.coreboot.org/c/coreboot/+/38542/2/src/drivers/spi/spi_flash.c... PS2, Line 506: printk(BIOS_WARNING, "4 byte adressing mode set:%02x\n. Exiting 4 byte mode not working . Looping here\n ", reg8); line over 96 characters
https://review.coreboot.org/c/coreboot/+/38542/2/src/drivers/spi/spi_flash.c... PS2, Line 507: while(1); space required before the open parenthesis '('
https://review.coreboot.org/c/coreboot/+/38542/2/src/drivers/spi/spi_flash.c... PS2, Line 507: while(1); trailing statements should be on next line
build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38542 )
Change subject: sc7180: QSIP SPI NOR addressing mode ......................................................................
Patch Set 3:
(7 comments)
https://review.coreboot.org/c/coreboot/+/38542/3/src/drivers/spi/spi_flash.c File src/drivers/spi/spi_flash.c:
https://review.coreboot.org/c/coreboot/+/38542/3/src/drivers/spi/spi_flash.c... PS3, Line 499: if (reg8 & 0x1 ) { space prohibited before that close parenthesis ')'
https://review.coreboot.org/c/coreboot/+/38542/3/src/drivers/spi/spi_flash.c... PS3, Line 499: if (reg8 & 0x1 ) { braces {} are not necessary for single statement blocks
https://review.coreboot.org/c/coreboot/+/38542/3/src/drivers/spi/spi_flash.c... PS3, Line 500: printk(BIOS_WARNING, "4 byte adressing mode set:%02x\n. Falling back to 3 byte addressing mode\n", reg8); line over 96 characters
https://review.coreboot.org/c/coreboot/+/38542/3/src/drivers/spi/spi_flash.c... PS3, Line 505: if (reg8 & 0x1 ) { space prohibited before that close parenthesis ')'
https://review.coreboot.org/c/coreboot/+/38542/3/src/drivers/spi/spi_flash.c... PS3, Line 506: printk(BIOS_WARNING, "4 byte adressing mode set:%02x\n. Exiting 4 byte mode not working . Looping here\n ", reg8); line over 96 characters
https://review.coreboot.org/c/coreboot/+/38542/3/src/drivers/spi/spi_flash.c... PS3, Line 507: while(1); space required before the open parenthesis '('
https://review.coreboot.org/c/coreboot/+/38542/3/src/drivers/spi/spi_flash.c... PS3, Line 507: while(1); trailing statements should be on next line
build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38542 )
Change subject: sc7180: QSIP SPI NOR addressing mode ......................................................................
Patch Set 4:
(7 comments)
https://review.coreboot.org/c/coreboot/+/38542/4/src/drivers/spi/spi_flash.c File src/drivers/spi/spi_flash.c:
https://review.coreboot.org/c/coreboot/+/38542/4/src/drivers/spi/spi_flash.c... PS4, Line 499: if (reg8 & 0x1 ) { space prohibited before that close parenthesis ')'
https://review.coreboot.org/c/coreboot/+/38542/4/src/drivers/spi/spi_flash.c... PS4, Line 499: if (reg8 & 0x1 ) { braces {} are not necessary for single statement blocks
https://review.coreboot.org/c/coreboot/+/38542/4/src/drivers/spi/spi_flash.c... PS4, Line 500: printk(BIOS_WARNING, "4 byte adressing mode set:%02x\n. Falling back to 3 byte addressing mode\n", reg8); line over 96 characters
https://review.coreboot.org/c/coreboot/+/38542/4/src/drivers/spi/spi_flash.c... PS4, Line 505: if (reg8 & 0x1 ) { space prohibited before that close parenthesis ')'
https://review.coreboot.org/c/coreboot/+/38542/4/src/drivers/spi/spi_flash.c... PS4, Line 506: printk(BIOS_WARNING, "4 byte adressing mode set:%02x\n. Exiting 4 byte mode not working . Looping here\n ", reg8); line over 96 characters
https://review.coreboot.org/c/coreboot/+/38542/4/src/drivers/spi/spi_flash.c... PS4, Line 507: while(1); space required before the open parenthesis '('
https://review.coreboot.org/c/coreboot/+/38542/4/src/drivers/spi/spi_flash.c... PS4, Line 507: while(1); trailing statements should be on next line
Julius Werner has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38542 )
Change subject: sc7180: QSIP SPI NOR addressing mode ......................................................................
Patch Set 4:
Is this just a temporary patch you want to carry locally to enable your development board? If so, please prefix the subject with HACK: so people know that you're not intending it for merge and it doesn't need to be reviewed.
If you do want to merge this permanently, we can do that too but like Aaron said it needs to be done cleaner than this (would probably want to actually implement 4-byte address support then, rather than just disable it and have half the flash inaccessible). But considering that we're not planning to officially add your development board to coreboot and Trogdor isn't using this chip, I don't think we'll need to go there?
build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38542 )
Change subject: sc7180: QSIP SPI NOR addressing mode ......................................................................
Patch Set 5:
(7 comments)
https://review.coreboot.org/c/coreboot/+/38542/5/src/drivers/spi/spi_flash.c File src/drivers/spi/spi_flash.c:
https://review.coreboot.org/c/coreboot/+/38542/5/src/drivers/spi/spi_flash.c... PS5, Line 499: if (reg8 & 0x1 ) { space prohibited before that close parenthesis ')'
https://review.coreboot.org/c/coreboot/+/38542/5/src/drivers/spi/spi_flash.c... PS5, Line 499: if (reg8 & 0x1 ) { braces {} are not necessary for single statement blocks
https://review.coreboot.org/c/coreboot/+/38542/5/src/drivers/spi/spi_flash.c... PS5, Line 500: printk(BIOS_WARNING, "4 byte adressing mode set:%02x\n. Falling back to 3 byte addressing mode\n", reg8); line over 96 characters
https://review.coreboot.org/c/coreboot/+/38542/5/src/drivers/spi/spi_flash.c... PS5, Line 505: if (reg8 & 0x1 ) { space prohibited before that close parenthesis ')'
https://review.coreboot.org/c/coreboot/+/38542/5/src/drivers/spi/spi_flash.c... PS5, Line 506: printk(BIOS_WARNING, "4 byte adressing mode set:%02x\n. Exiting 4 byte mode not working . Looping here\n ", reg8); line over 96 characters
https://review.coreboot.org/c/coreboot/+/38542/5/src/drivers/spi/spi_flash.c... PS5, Line 507: while(1); space required before the open parenthesis '('
https://review.coreboot.org/c/coreboot/+/38542/5/src/drivers/spi/spi_flash.c... PS5, Line 507: while(1); trailing statements should be on next line
Julius Werner has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38542 )
Change subject: sc7180: QSIP SPI NOR addressing mode ......................................................................
Patch Set 5:
(1 comment)
https://review.coreboot.org/c/coreboot/+/38542/5//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/38542/5//COMMIT_MSG@7 PS5, Line 7: sc7180: QSIP SPI NOR addressing mode Please see my earlier comment and mark this HACK: (or let us know what you're planning to do with this patch).
Paul Menzel has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38542 )
Change subject: sc7180: QSIP SPI NOR addressing mode ......................................................................
Patch Set 5:
(1 comment)
https://review.coreboot.org/c/coreboot/+/38542/5//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/38542/5//COMMIT_MSG@9 PS5, Line 9: Putting SPI NOR 3 byte addressing mode as it is not supporting 4 byte addressing mode. The text width limit is 75 characters.
build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38542 )
Change subject: sc7180: QSIP SPI NOR addressing mode ......................................................................
Patch Set 6:
(7 comments)
https://review.coreboot.org/c/coreboot/+/38542/6/src/drivers/spi/spi_flash.c File src/drivers/spi/spi_flash.c:
https://review.coreboot.org/c/coreboot/+/38542/6/src/drivers/spi/spi_flash.c... PS6, Line 499: if (reg8 & 0x1 ) { space prohibited before that close parenthesis ')'
https://review.coreboot.org/c/coreboot/+/38542/6/src/drivers/spi/spi_flash.c... PS6, Line 499: if (reg8 & 0x1 ) { braces {} are not necessary for single statement blocks
https://review.coreboot.org/c/coreboot/+/38542/6/src/drivers/spi/spi_flash.c... PS6, Line 500: printk(BIOS_WARNING, "4 byte adressing mode set:%02x\n. Falling back to 3 byte addressing mode\n", reg8); line over 96 characters
https://review.coreboot.org/c/coreboot/+/38542/6/src/drivers/spi/spi_flash.c... PS6, Line 505: if (reg8 & 0x1 ) { space prohibited before that close parenthesis ')'
https://review.coreboot.org/c/coreboot/+/38542/6/src/drivers/spi/spi_flash.c... PS6, Line 506: printk(BIOS_WARNING, "4 byte adressing mode set:%02x\n. Exiting 4 byte mode not working . Looping here\n ", reg8); line over 96 characters
https://review.coreboot.org/c/coreboot/+/38542/6/src/drivers/spi/spi_flash.c... PS6, Line 507: while(1); space required before the open parenthesis '('
https://review.coreboot.org/c/coreboot/+/38542/6/src/drivers/spi/spi_flash.c... PS6, Line 507: while(1); trailing statements should be on next line
Ravi kumar has uploaded a new patch set (#7) to the change originally created by mturney mturney. ( https://review.coreboot.org/c/coreboot/+/38542 )
Change subject: sc7180: QSIP SPI NOR addressing mode ......................................................................
sc7180: QSIP SPI NOR addressing mode
Putting SPI NOR 3 byte addressing mode as it is not supporting 4 byte addressing mode.
Change-Id: I232dde9387f0c83dd1578f3cbab4ab85a711349d Signed-off-by: Veerabhadrarao Badiganti vbadigan@codeaurora.org Signed-off-by: Shaik Sajida Bhanu sbhanu@codeaurora.org --- M src/drivers/spi/spi_flash.c 1 file changed, 16 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/42/38542/7
build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38542 )
Change subject: sc7180: QSIP SPI NOR addressing mode ......................................................................
Patch Set 7:
(7 comments)
https://review.coreboot.org/c/coreboot/+/38542/7/src/drivers/spi/spi_flash.c File src/drivers/spi/spi_flash.c:
https://review.coreboot.org/c/coreboot/+/38542/7/src/drivers/spi/spi_flash.c... PS7, Line 504: if (reg8 & 0x1 ) { space prohibited before that close parenthesis ')'
https://review.coreboot.org/c/coreboot/+/38542/7/src/drivers/spi/spi_flash.c... PS7, Line 504: if (reg8 & 0x1 ) { braces {} are not necessary for single statement blocks
https://review.coreboot.org/c/coreboot/+/38542/7/src/drivers/spi/spi_flash.c... PS7, Line 505: printk(BIOS_WARNING, "4 byte adressing mode set:%02x\n. Falling back to 3 byte addressing mode\n", reg8); line over 96 characters
https://review.coreboot.org/c/coreboot/+/38542/7/src/drivers/spi/spi_flash.c... PS7, Line 510: if (reg8 & 0x1 ) { space prohibited before that close parenthesis ')'
https://review.coreboot.org/c/coreboot/+/38542/7/src/drivers/spi/spi_flash.c... PS7, Line 511: printk(BIOS_WARNING, "4 byte adressing mode set:%02x\n. Exiting 4 byte mode not working . Looping here\n ", reg8); line over 96 characters
https://review.coreboot.org/c/coreboot/+/38542/7/src/drivers/spi/spi_flash.c... PS7, Line 512: while(1); space required before the open parenthesis '('
https://review.coreboot.org/c/coreboot/+/38542/7/src/drivers/spi/spi_flash.c... PS7, Line 512: while(1); trailing statements should be on next line
build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38542 )
Change subject: sc7180: QSIP SPI NOR addressing mode ......................................................................
Patch Set 8:
(9 comments)
https://review.coreboot.org/c/coreboot/+/38542/8/src/drivers/spi/spi_flash.c File src/drivers/spi/spi_flash.c:
https://review.coreboot.org/c/coreboot/+/38542/8/src/drivers/spi/spi_flash.c... PS8, Line 504: if (reg8 & 0x1 ) { space prohibited before that close parenthesis ')'
https://review.coreboot.org/c/coreboot/+/38542/8/src/drivers/spi/spi_flash.c... PS8, Line 504: if (reg8 & 0x1 ) { braces {} are not necessary for single statement blocks
https://review.coreboot.org/c/coreboot/+/38542/8/src/drivers/spi/spi_flash.c... PS8, Line 505: printk(BIOS_WARNING, "4 byte adressing mode set:%02x\n. Falling back to 3 byte addressing mode\n", reg8); 'adressing' may be misspelled - perhaps 'addressing'?
https://review.coreboot.org/c/coreboot/+/38542/8/src/drivers/spi/spi_flash.c... PS8, Line 505: printk(BIOS_WARNING, "4 byte adressing mode set:%02x\n. Falling back to 3 byte addressing mode\n", reg8); line over 96 characters
https://review.coreboot.org/c/coreboot/+/38542/8/src/drivers/spi/spi_flash.c... PS8, Line 510: if (reg8 & 0x1 ) { space prohibited before that close parenthesis ')'
https://review.coreboot.org/c/coreboot/+/38542/8/src/drivers/spi/spi_flash.c... PS8, Line 511: printk(BIOS_WARNING, "4 byte adressing mode set:%02x\n. Exiting 4 byte mode not working . Looping here\n ", reg8); 'adressing' may be misspelled - perhaps 'addressing'?
https://review.coreboot.org/c/coreboot/+/38542/8/src/drivers/spi/spi_flash.c... PS8, Line 511: printk(BIOS_WARNING, "4 byte adressing mode set:%02x\n. Exiting 4 byte mode not working . Looping here\n ", reg8); line over 96 characters
https://review.coreboot.org/c/coreboot/+/38542/8/src/drivers/spi/spi_flash.c... PS8, Line 512: while(1); space required before the open parenthesis '('
https://review.coreboot.org/c/coreboot/+/38542/8/src/drivers/spi/spi_flash.c... PS8, Line 512: while(1); trailing statements should be on next line
Hello Ravi kumar, build bot (Jenkins), Sajida Bhanu,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/38542
to look at the new patch set (#9).
Change subject: sc7180: QSIP SPI NOR addressing mode ......................................................................
sc7180: QSIP SPI NOR addressing mode
Force SPI NOR 3 byte addr mode as 4 byte addr mode is not supported.
Change-Id: I232dde9387f0c83dd1578f3cbab4ab85a711349d Signed-off-by: Veerabhadrarao Badiganti vbadigan@codeaurora.org Signed-off-by: Shaik Sajida Bhanu sbhanu@codeaurora.org --- M src/drivers/spi/spi_flash.c 1 file changed, 20 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/42/38542/9
build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38542 )
Change subject: sc7180: QSIP SPI NOR addressing mode ......................................................................
Patch Set 9:
(1 comment)
https://review.coreboot.org/c/coreboot/+/38542/9/src/drivers/spi/spi_flash.c File src/drivers/spi/spi_flash.c:
https://review.coreboot.org/c/coreboot/+/38542/9/src/drivers/spi/spi_flash.c... PS9, Line 515: while(1) space required before the open parenthesis '('
build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38542 )
Change subject: sc7180: QSIP SPI NOR addressing mode ......................................................................
Patch Set 10:
(1 comment)
https://review.coreboot.org/c/coreboot/+/38542/10/src/drivers/spi/spi_flash.... File src/drivers/spi/spi_flash.c:
https://review.coreboot.org/c/coreboot/+/38542/10/src/drivers/spi/spi_flash.... PS10, Line 515: while(1) space required before the open parenthesis '('
Hello Ravi kumar, build bot (Jenkins), Sajida Bhanu,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/38542
to look at the new patch set (#11).
Change subject: sc7180: QSIP SPI NOR addressing mode ......................................................................
sc7180: QSIP SPI NOR addressing mode
Force SPI NOR 3 byte addr mode as 4 byte addr mode is not supported.
Change-Id: I232dde9387f0c83dd1578f3cbab4ab85a711349d Signed-off-by: Veerabhadrarao Badiganti vbadigan@codeaurora.org Signed-off-by: Shaik Sajida Bhanu sbhanu@codeaurora.org --- M src/drivers/spi/spi_flash.c 1 file changed, 20 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/42/38542/11
Sajida Bhanu has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38542 )
Change subject: sc7180: QSIP SPI NOR addressing mode ......................................................................
Patch Set 12:
(7 comments)
https://review.coreboot.org/c/coreboot/+/38542/6/src/drivers/spi/spi_flash.c File src/drivers/spi/spi_flash.c:
https://review.coreboot.org/c/coreboot/+/38542/6/src/drivers/spi/spi_flash.c... PS6, Line 499: if (reg8 & 0x1 ) {
braces {} are not necessary for single statement blocks
Done
https://review.coreboot.org/c/coreboot/+/38542/6/src/drivers/spi/spi_flash.c... PS6, Line 499: if (reg8 & 0x1 ) {
space prohibited before that close parenthesis ')'
Done
https://review.coreboot.org/c/coreboot/+/38542/6/src/drivers/spi/spi_flash.c... PS6, Line 500: printk(BIOS_WARNING, "4 byte adressing mode set:%02x\n. Falling back to 3 byte addressing mode\n", reg8);
line over 96 characters
sure
https://review.coreboot.org/c/coreboot/+/38542/6/src/drivers/spi/spi_flash.c... PS6, Line 505: if (reg8 & 0x1 ) {
space prohibited before that close parenthesis ')'
Done
https://review.coreboot.org/c/coreboot/+/38542/6/src/drivers/spi/spi_flash.c... PS6, Line 506: printk(BIOS_WARNING, "4 byte adressing mode set:%02x\n. Exiting 4 byte mode not working . Looping here\n ", reg8);
line over 96 characters
sure
https://review.coreboot.org/c/coreboot/+/38542/6/src/drivers/spi/spi_flash.c... PS6, Line 507: while(1);
space required before the open parenthesis '('
Done
https://review.coreboot.org/c/coreboot/+/38542/6/src/drivers/spi/spi_flash.c... PS6, Line 507: while(1);
trailing statements should be on next line
Done
Sajida Bhanu has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38542 )
Change subject: sc7180: QSIP SPI NOR addressing mode ......................................................................
Patch Set 12:
(7 comments)
https://review.coreboot.org/c/coreboot/+/38542/7/src/drivers/spi/spi_flash.c File src/drivers/spi/spi_flash.c:
https://review.coreboot.org/c/coreboot/+/38542/7/src/drivers/spi/spi_flash.c... PS7, Line 504: if (reg8 & 0x1 ) {
space prohibited before that close parenthesis ')'
Done
https://review.coreboot.org/c/coreboot/+/38542/7/src/drivers/spi/spi_flash.c... PS7, Line 504: if (reg8 & 0x1 ) {
braces {} are not necessary for single statement blocks
Done
https://review.coreboot.org/c/coreboot/+/38542/7/src/drivers/spi/spi_flash.c... PS7, Line 505: printk(BIOS_WARNING, "4 byte adressing mode set:%02x\n. Falling back to 3 byte addressing mode\n", reg8);
line over 96 characters
sure
https://review.coreboot.org/c/coreboot/+/38542/7/src/drivers/spi/spi_flash.c... PS7, Line 510: if (reg8 & 0x1 ) {
space prohibited before that close parenthesis ')'
done
https://review.coreboot.org/c/coreboot/+/38542/7/src/drivers/spi/spi_flash.c... PS7, Line 511: printk(BIOS_WARNING, "4 byte adressing mode set:%02x\n. Exiting 4 byte mode not working . Looping here\n ", reg8);
line over 96 characters
sure
https://review.coreboot.org/c/coreboot/+/38542/7/src/drivers/spi/spi_flash.c... PS7, Line 512: while(1);
trailing statements should be on next line
Done
https://review.coreboot.org/c/coreboot/+/38542/7/src/drivers/spi/spi_flash.c... PS7, Line 512: while(1);
space required before the open parenthesis '('
Done
Sajida Bhanu has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38542 )
Change subject: sc7180: QSIP SPI NOR addressing mode ......................................................................
Patch Set 12:
(1 comment)
Patch Set 10:
(1 comment)
https://review.coreboot.org/c/coreboot/+/38542/10/src/drivers/spi/spi_flash.... File src/drivers/spi/spi_flash.c:
https://review.coreboot.org/c/coreboot/+/38542/10/src/drivers/spi/spi_flash.... PS10, Line 515: while(1)
space required before the open parenthesis '('
Done
Julius Werner has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38542 )
Change subject: sc7180: QSIP SPI NOR addressing mode ......................................................................
Patch Set 12:
(1 comment)
https://review.coreboot.org/c/coreboot/+/38542/10/src/drivers/spi/spi_flash.... File src/drivers/spi/spi_flash.c:
https://review.coreboot.org/c/coreboot/+/38542/10/src/drivers/spi/spi_flash.... PS10, Line 515: while(1)
Done
Hi Sajida,
Please read and reply to the comments from Aaron and me early in this patch thread. For now I am not expecting that we'll want to land this patch, so you don't need to spend time cleaning up linter warnings. If you do want to permanently land this patch, we'll need to discuss a different and more complicated approach to do that cleanly in a way that fits in our framework.
Ravi kumar has uploaded a new patch set (#14) to the change originally created by mturney mturney. ( https://review.coreboot.org/c/coreboot/+/38542 )
Change subject: sc7180: QSIP SPI NOR addressing mode ......................................................................
sc7180: QSIP SPI NOR addressing mode
Force SPI NOR 3 byte addr mode as 4 byte addr mode is not supported.
Change-Id: I232dde9387f0c83dd1578f3cbab4ab85a711349d Signed-off-by: Veerabhadrarao Badiganti vbadigan@codeaurora.org Signed-off-by: Shaik Sajida Bhanu sbhanu@codeaurora.org --- M src/drivers/spi/spi_flash.c M src/drivers/spi/winbond.c 2 files changed, 28 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/42/38542/14
Ravi kumar has uploaded a new patch set (#18) to the change originally created by mturney mturney. ( https://review.coreboot.org/c/coreboot/+/38542 )
Change subject: sc7180: QSIP SPI NOR addressing mode ......................................................................
sc7180: QSIP SPI NOR addressing mode
Force SPI NOR 3 byte addr mode as 4 byte addr mode is not supported.
Change-Id: I232dde9387f0c83dd1578f3cbab4ab85a711349d Signed-off-by: Veerabhadrarao Badiganti vbadigan@codeaurora.org Signed-off-by: Shaik Sajida Bhanu sbhanu@codeaurora.org --- M src/drivers/spi/spi_flash.c M src/drivers/spi/winbond.c 2 files changed, 28 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/42/38542/18
Hello Ravi kumar, build bot (Jenkins), Sajida Bhanu,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/38542
to look at the new patch set (#19).
Change subject: HACK sc7180: QSIP SPI NOR addressing mode HACK ......................................................................
HACK sc7180: QSIP SPI NOR addressing mode HACK
Force SPI NOR 3 byte addr mode as 4 byte addr mode is not supported.
Change-Id: I232dde9387f0c83dd1578f3cbab4ab85a711349d Signed-off-by: Veerabhadrarao Badiganti vbadigan@codeaurora.org Signed-off-by: Shaik Sajida Bhanu sbhanu@codeaurora.org --- M src/drivers/spi/spi_flash.c M src/drivers/spi/winbond.c 2 files changed, 28 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/42/38542/19
Ravi kumar has uploaded a new patch set (#27) to the change originally created by mturney mturney. ( https://review.coreboot.org/c/coreboot/+/38542 )
Change subject: HACK sc7180: QSIP SPI NOR addressing mode HACK ......................................................................
HACK sc7180: QSIP SPI NOR addressing mode HACK
Force SPI NOR 3 byte addr mode as 4 byte addr mode is not supported.
Change-Id: I232dde9387f0c83dd1578f3cbab4ab85a711349d Signed-off-by: Veerabhadrarao Badiganti vbadigan@codeaurora.org Signed-off-by: Shaik Sajida Bhanu sbhanu@codeaurora.org --- M src/drivers/spi/spi_flash.c M src/drivers/spi/winbond.c 2 files changed, 28 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/42/38542/27
Hello Ravi kumar, build bot (Jenkins), Sajida Bhanu,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/38542
to look at the new patch set (#28).
Change subject: HACK sc7180: QSIP SPI NOR addressing mode HACK ......................................................................
HACK sc7180: QSIP SPI NOR addressing mode HACK
Force SPI NOR 3 byte addr mode as 4 byte addr mode is not supported.
Change-Id: I232dde9387f0c83dd1578f3cbab4ab85a711349d Signed-off-by: Veerabhadrarao Badiganti vbadigan@codeaurora.org Signed-off-by: Shaik Sajida Bhanu sbhanu@codeaurora.org --- M src/drivers/spi/spi_flash.c M src/drivers/spi/winbond.c 2 files changed, 28 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/42/38542/28
Ravi kumar has uploaded a new patch set (#32) to the change originally created by mturney mturney. ( https://review.coreboot.org/c/coreboot/+/38542 )
Change subject: HACK sc7180: QSIP SPI NOR addressing mode HACK ......................................................................
HACK sc7180: QSIP SPI NOR addressing mode HACK
Force SPI NOR 3 byte addr mode as 4 byte addr mode is not supported.
Change-Id: I232dde9387f0c83dd1578f3cbab4ab85a711349d Signed-off-by: Veerabhadrarao Badiganti vbadigan@codeaurora.org Signed-off-by: Shaik Sajida Bhanu sbhanu@codeaurora.org --- M src/drivers/spi/spi_flash.c M src/drivers/spi/winbond.c 2 files changed, 28 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/42/38542/32
Ravi kumar has uploaded a new patch set (#39) to the change originally created by mturney mturney. ( https://review.coreboot.org/c/coreboot/+/38542 )
Change subject: HACK sc7180: QSIP SPI NOR addressing mode HACK ......................................................................
HACK sc7180: QSIP SPI NOR addressing mode HACK
Force SPI NOR 3 byte addr mode as 4 byte addr mode is not supported.
Change-Id: I232dde9387f0c83dd1578f3cbab4ab85a711349d Signed-off-by: Veerabhadrarao Badiganti vbadigan@codeaurora.org Signed-off-by: Shaik Sajida Bhanu sbhanu@codeaurora.org --- M src/drivers/spi/spi_flash.c M src/drivers/spi/winbond.c 2 files changed, 28 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/42/38542/39
Martin L Roth has abandoned this change. ( https://review.coreboot.org/c/coreboot/+/38542?usp=email )
Change subject: HACK sc7180: QSIP SPI NOR addressing mode HACK ......................................................................
Abandoned
This patch has not been touched in over 12 months. Anyone who wants to take over work on this patch, please feel free to restore it and do any work needed to get it merged. If you create a new patch based on this work, please credit the original author.