Alan Green has uploaded this change for review. ( https://review.coreboot.org/c/flashrom/+/33836
Change subject: flashchips.c: Replace comment with #if 0 ......................................................................
flashchips.c: Replace comment with #if 0
To allow better handling by automated tools, replace /* */ commenting out a whole entry with #if 0 / #endif
Signed-off-by: Alan Green avg@google.com Change-Id: Ib30b3a16f25de5def508d90ec9375563b1d4d384 --- M flashchips.c 1 file changed, 4 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/36/33836/1
diff --git a/flashchips.c b/flashchips.c index e421c4c..7f3d2a2 100644 --- a/flashchips.c +++ b/flashchips.c @@ -2511,7 +2511,8 @@ },
/*The AT26DF321 has the same ID as the AT25DF321. */ - /*{ +#if 0 + { .vendor = "Atmel", .name = "AT26DF321", .bustype = BUS_SPI, @@ -2527,7 +2528,8 @@ .unlock = spi_disable_blockprotect, .write = spi_chip_write_256, .read = spi_chip_read, - },*/ + }, +#endif
{ .vendor = "Atmel",
Hello Edward O'Callaghan, build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/flashrom/+/33836
to look at the new patch set (#2).
Change subject: flashchips.c: Replace comment with #if 0 ......................................................................
flashchips.c: Replace comment with #if 0
To allow better handling by automated tools, replace /* */ commenting out a whole entry with #if 0 / #endif
Signed-off-by: Alan Green avg@google.com Change-Id: Ib30b3a16f25de5def508d90ec9375563b1d4d384 --- M flashchips.c 1 file changed, 4 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/36/33836/2
Hello Edward O'Callaghan, build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/flashrom/+/33836
to look at the new patch set (#3).
Change subject: flashchips.c: Replace comment with #if 0 ......................................................................
flashchips.c: Replace comment with #if 0
To allow better handling by automated tools, replace /* */ commenting out a whole entry with #if 0 / #endif
Signed-off-by: Alan Green avg@google.com Change-Id: Ib30b3a16f25de5def508d90ec9375563b1d4d384 --- M flashchips.c 1 file changed, 4 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/36/33836/3
Hello Edward O'Callaghan, build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/flashrom/+/33836
to look at the new patch set (#4).
Change subject: flashchips.c: Replace comment with #if 0 ......................................................................
flashchips.c: Replace comment with #if 0
To allow better handling by automated tools, replace /* */ commenting out a whole entry with #if 0 / #endif
Signed-off-by: Alan Green avg@google.com Change-Id: Ib30b3a16f25de5def508d90ec9375563b1d4d384 --- M flashchips.c 1 file changed, 4 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/36/33836/4
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/33836 )
Change subject: flashchips.c: Replace comment with #if 0 ......................................................................
Patch Set 5: Code-Review+2
Not sure if this entry should just be removed.
Edward O'Callaghan has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/33836 )
Change subject: flashchips.c: Replace comment with #if 0 ......................................................................
Patch Set 5: Code-Review+2
Hello Edward O'Callaghan, Angel Pons, build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/flashrom/+/33836
to look at the new patch set (#6).
Change subject: flashchips.c: Replace comment with #if 0 ......................................................................
flashchips.c: Replace comment with #if 0
To allow better handling by automated tools, replace /* */ commenting out a whole entry with #if 0 / #endif
Signed-off-by: Alan Green avg@google.com Change-Id: Ib30b3a16f25de5def508d90ec9375563b1d4d384 --- M flashchips.c 1 file changed, 4 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/36/33836/6
Nico Huber has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/33836 )
Change subject: flashchips.c: Replace comment with #if 0 ......................................................................
Patch Set 7:
Not sure if this entry should just be removed.
I agree, it should either be finished (i.e. add erasers and voltage range) or just dropped. The comment could be moved to AT25DF321 in the latter case.
If the datasheet is available, I would prefer to make it whole entry.
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/33836 )
Change subject: flashchips.c: Replace comment with #if 0 ......................................................................
Patch Set 7:
Patch Set 7:
Not sure if this entry should just be removed.
I agree, it should either be finished (i.e. add erasers and voltage range) or just dropped. The comment could be moved to AT25DF321 in the latter case.
If the datasheet is available, I would prefer to make it whole entry.
Looks like the datasheet exists: https://cdn.hackaday.io/files/7758331918272/AT26DF321.pdf
Alan Green has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/33836 )
Change subject: flashchips.c: Replace comment with #if 0 ......................................................................
Patch Set 7:
Patch Set 7:
Patch Set 7:
Not sure if this entry should just be removed.
I agree, it should either be finished (i.e. add erasers and voltage range) or just dropped. The comment could be moved to AT25DF321 in the latter case.
If the datasheet is available, I would prefer to make it whole entry.
Looks like the datasheet exists: https://cdn.hackaday.io/files/7758331918272/AT26DF321.pdf
It looks as though the AT26DF321 is marked obsolete by Digikey and not really mentioned on Atmel's site. Since we've done without a working definition for this long, I'll just remove it for now and move the comment about same ID to the AT25DF321 entry.
Hello Edward O'Callaghan, Angel Pons, build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/flashrom/+/33836
to look at the new patch set (#8).
Change subject: flashchips: Drop dead code of AT26DF321 ......................................................................
flashchips: Drop dead code of AT26DF321
The definition for the AT26DF321 has been commented out since it was first added in 2008. The chip now appears to be obsolete, being marked "obsolete" and unstocked at Digikey. It is also only referred to in historical documents on the manufacturer's website (microchip.com).
To avoid further bitrot of this dead code, drop it.
Signed-off-by: Alan Green avg@google.com Change-Id: Ib30b3a16f25de5def508d90ec9375563b1d4d384 --- M flashchips.c 1 file changed, 1 insertion(+), 19 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/36/33836/8
Edward O'Callaghan has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/33836 )
Change subject: flashchips: Drop dead code of AT26DF321 ......................................................................
Patch Set 8: Code-Review+2
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/33836 )
Change subject: flashchips: Drop dead code of AT26DF321 ......................................................................
Patch Set 8: Code-Review+2
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/33836 )
Change subject: flashchips: Drop dead code of AT26DF321 ......................................................................
Patch Set 8: Code-Review-1
(1 comment)
Oops, missed flashchips.h
https://review.coreboot.org/#/c/33836/8/flashchips.c File flashchips.c:
https://review.coreboot.org/#/c/33836/8/flashchips.c@a2519 PS8, Line 2519: This needs to be dropped too, in flashchips.h
Hello Edward O'Callaghan, Angel Pons, build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/flashrom/+/33836
to look at the new patch set (#9).
Change subject: flashchips: Drop dead code of AT26DF321 ......................................................................
flashchips: Drop dead code of AT26DF321
The definition for the AT26DF321 has been commented out since it was first added in 2008. The chip now appears to be obsolete, being marked "obsolete" and unstocked at Digikey. It is also only referred to in historical documents on the manufacturer's website (microchip.com).
To avoid further bitrot of this dead code, drop it.
Signed-off-by: Alan Green avg@google.com Change-Id: Ib30b3a16f25de5def508d90ec9375563b1d4d384 --- M flashchips.c M flashchips.h 2 files changed, 1 insertion(+), 20 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/36/33836/9
Alan Green has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/33836 )
Change subject: flashchips: Drop dead code of AT26DF321 ......................................................................
Patch Set 9:
(2 comments)
Patch Set 8: Code-Review-1
(1 comment)
Oops, missed flashchips.h
Thanks!
https://review.coreboot.org/c/flashrom/+/33836/9/flashchips.h File flashchips.h:
https://review.coreboot.org/c/flashrom/+/33836/9/flashchips.h@136 PS9, Line 136: /* Same as 26DF321 */ I intentionally left this comment here since it matches the comment on the AT25DF321 entry in flashchips.c.
https://review.coreboot.org/c/flashrom/+/33836/8/flashchips.c File flashchips.c:
https://review.coreboot.org/c/flashrom/+/33836/8/flashchips.c@a2519 PS8, Line 2519:
This needs to be dropped too, in flashchips. […]
Done
Edward O'Callaghan has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/33836 )
Change subject: flashchips: Drop dead code of AT26DF321 ......................................................................
Patch Set 9: Code-Review+2
Edward O'Callaghan has submitted this change and it was merged. ( https://review.coreboot.org/c/flashrom/+/33836 )
Change subject: flashchips: Drop dead code of AT26DF321 ......................................................................
flashchips: Drop dead code of AT26DF321
The definition for the AT26DF321 has been commented out since it was first added in 2008. The chip now appears to be obsolete, being marked "obsolete" and unstocked at Digikey. It is also only referred to in historical documents on the manufacturer's website (microchip.com).
To avoid further bitrot of this dead code, drop it.
Signed-off-by: Alan Green avg@google.com Change-Id: Ib30b3a16f25de5def508d90ec9375563b1d4d384 Reviewed-on: https://review.coreboot.org/c/flashrom/+/33836 Tested-by: build bot (Jenkins) no-reply@coreboot.org Reviewed-by: Edward O'Callaghan quasisec@chromium.org --- M flashchips.c M flashchips.h 2 files changed, 1 insertion(+), 20 deletions(-)
Approvals: build bot (Jenkins): Verified Edward O'Callaghan: Looks good to me, approved
diff --git a/flashchips.c b/flashchips.c index f3aab52..ac65510 100644 --- a/flashchips.c +++ b/flashchips.c @@ -1709,6 +1709,7 @@ .voltage = {2700, 3600}, },
+ /*The AT26DF321 has the same ID as the AT25DF321. */ { .vendor = "Atmel", .name = "AT25DF321", @@ -2510,25 +2511,6 @@ .voltage = {2700, 3600}, },
- /*The AT26DF321 has the same ID as the AT25DF321. */ - /*{ - .vendor = "Atmel", - .name = "AT26DF321", - .bustype = BUS_SPI, - .manufacture_id = ATMEL_ID, - .model_id = ATMEL_AT26DF321, - .total_size = 4096, - .page_size = 256, - .feature_bits = FEATURE_WRSR_WREN, - .tested = TEST_UNTESTED, - .probe = probe_spi_rdid, - .probe_timing = TIMING_ZERO, - .printlock = spi_prettyprint_status_register_at26df081a, - .unlock = spi_disable_blockprotect, - .write = spi_chip_write_256, - .read = spi_chip_read, - },*/ - { .vendor = "Atmel", .name = "AT26F004", diff --git a/flashchips.h b/flashchips.h index a1b38e0..1c7ba99 100644 --- a/flashchips.h +++ b/flashchips.h @@ -156,7 +156,6 @@ #define ATMEL_AT26DF081A 0x4501 #define ATMEL_AT26DF161 0x4600 #define ATMEL_AT26DF161A 0x4601 -#define ATMEL_AT26DF321 0x4700 /* Same as 25DF321 */ #define ATMEL_AT26F004 0x0400 #define ATMEL_AT29LV512 0x3D #define ATMEL_AT29LV010A 0x35 /* Same as AT29BV010A, the latter works down to 2.7V */
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/33836 )
Change subject: flashchips: Drop dead code of AT26DF321 ......................................................................
Patch Set 10: Code-Review+2
(1 comment)
I know it's submitted already, but wanted to state that LGTM.
https://review.coreboot.org/c/flashrom/+/33836/9/flashchips.h File flashchips.h:
https://review.coreboot.org/c/flashrom/+/33836/9/flashchips.h@136 PS9, Line 136: /* Same as 26DF321 */
I intentionally left this comment here since it matches the comment on the AT25DF321 entry in flashc […]
Yep, that's perfectly fine.