Patch Set 2:

(15 comments)

Code looks quite nice :) haven't looked at the protocol yet, though.

Hi. Thanks for the review & the issues you found. I believe I addressed all of them but the first one (the "or later" clause in the GPL header).

I'd indeed prefer the less restrictive use of GPL, however the small part of the driver (the "spispeed" option parsing) was derived from linux_spi.c which seems to be GPLv2 only.

Perhaps that needs to be reworked instead anyway -- the hardware seems to accept only these speeds (in Hz):

62500
125000
250000
500000
1000000
2000000
4000000

The protocol allows setting any speed though, falling back to a slower supported frequency. The first one (62500) isn't even currently settable as the "spispeed" takes a kHz value and 62500 is not a multiply of 1000.

View Change

To view, visit change 23338. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I7ffcd9a2db4395816f0e8b6ce6c3b0d8e930c9e6
Gerrit-Change-Number: 23338
Gerrit-PatchSet: 3
Gerrit-Owner: Lubomir Rintel <lkundrak@v3.sk>
Gerrit-Reviewer: Lubomir Rintel <lkundrak@v3.sk>
Gerrit-Reviewer: Nico Huber <nico.h@gmx.de>
Gerrit-Reviewer: Paul Menzel <paulepanter@users.sourceforge.net>
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>
Gerrit-Comment-Date: Thu, 15 Mar 2018 20:11:36 +0000
Gerrit-HasComments: No
Gerrit-HasLabels: No