AFAIR it's non-trivial to reset the proper CS bit while keeping the
code clear. Also, i'm using the new parameter to choose between
different chips while the CS pin is left floating.

Well, all the modifications of `cs_bits / pindir` happen earlier in
the code flow, so I would have thought it's enough to clear bit3 in
`pindir`. But it doesn't matter much. And I've also noticed now
that the code isn't consistent (arm-usb-ocd* seems to be confused
about the meaning of `cs_bits`; maybe `cs_idle` would describe it
better). So maybe we should clean it up later.

Noticed another nit, but it's good to go as is.

Patch set 3:Code-Review +2

View Change

2 comments:

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

Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I6db05619e0d69ad18549c8556ef69225337b1532
Gerrit-Change-Number: 28911
Gerrit-PatchSet: 3
Gerrit-Owner: Sergey Alirzaev <zl29ah@gmail.com>
Gerrit-Reviewer: Nico Huber <nico.h@gmx.de>
Gerrit-Reviewer: Sergey Alirzaev <zl29ah@gmail.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>
Gerrit-Comment-Date: Mon, 08 Oct 2018 11:58:15 +0000
Gerrit-HasComments: Yes
Gerrit-HasLabels: Yes