The value of 280 is the minimum size needed to realize less ftdi_write_data() calls in patch 40477.

Nevertheless a value of 4096 would be reasonable as well.
In fact I canĀ“t see any real need to set chunksize smaller than the default value (here: default equals to max) of the ftdi chunksize which equals to the ftdi buffer size (fix hardware buffer!).

A value of 4096 should result in the same behavior. However 280 is like having (/showing to have) some more control and knowledge about what happens.

I do not prefer any of the options. As there was possibly a reason to set chunksize smaller than the default value I chose 280.

View Change

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

Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I5e096937834fc8fc8623c8c59ade529de081b72a
Gerrit-Change-Number: 43282
Gerrit-PatchSet: 2
Gerrit-Owner: Simon Buhrow
Gerrit-Reviewer: Angel Pons <th3fanbus@gmail.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>
Gerrit-Comment-Date: Wed, 08 Jul 2020 08:04:21 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
Gerrit-MessageType: comment