David Hendricks has posted comments on this change. ( https://review.coreboot.org/19420 )
Change subject: spi25: Fix layering violation in probe_spi_rdid4()
......................................................................
Patch Set 2: Code-Review-1
(1 comment)
I'm not sure how this will affect wbsio_spi.c. Can you please explain the impact of setting max_data_read to 3 a bit more? I have no experience with that hardware, so there might be something you know that I don't.
https://review.coreboot.org/#/c/19420/2/wbsio_spi.c
File wbsio_spi.c:
https://review.coreboot.org/#/c/19420/2/wbsio_spi.c@73
PS2, Line 73: .max_data_read = 3,
The table above wbsio_spi_send_command() implies that this is 4. It seems you set it to 3 here since there isn't a mode that supports 4-byte RDID (1 command byte + 4 data read). I'm wondering if it's cleaner to leave this as MAX_DATA_UNSPECIFIED and let it fail in wbsio_spi_send_command().
--
To view, visit https://review.coreboot.org/19420
To unsubscribe, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: staging
Gerrit-MessageType: comment
Gerrit-Change-Id: Idd21d20465cb214f3ff5bf3267b9014f8beee3f3
Gerrit-Change-Number: 19420
Gerrit-PatchSet: 2
Gerrit-Owner: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: David Hendricks <david.hendricks(a)gmail.com>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Comment-Date: Wed, 07 Jun 2017 19:55:17 +0000
Gerrit-HasComments: Yes