[coreboot-gerrit] Change in coreboot[master]: drivers/spi: Re-factor spi_crop_chunk

Furquan Shaikh (Code Review) gerrit at coreboot.org
Thu May 4 22:13:33 CEST 2017


Furquan Shaikh has posted comments on this change. ( https://review.coreboot.org/19386 )

Change subject: drivers/spi: Re-factor spi_crop_chunk
......................................................................


Patch Set 2:

(6 comments)

https://review.coreboot.org/#/c/19386/2//COMMIT_MSG
Commit Message:

PS2, Line 14: Size of 0 indicates any transfer size is fine
> Dot/period at end of sentence.
Done


PS2, Line 17: ).
> Switch the ) and ..
Done


PS2, Line 13: 1. max_xfer_size: Maximum transfer size supported by the controller
            : (Size of 0 indicates any transfer size is fine)
            : 2. deduct_cmd_len: Whether cmd_len needs to be deducted from the
            : max_xfer_size to determine max data size that can be
            : transferred. (This is used by the amd boards).
> Add a line break to make the enumeration more visible?
Done


https://review.coreboot.org/#/c/19386/2/src/include/spi-generic.h
File src/include/spi-generic.h:

PS2, Line 91: contoller
> you can fix this tipo while here :)
Done


PS2, Line 99: (0 = No limit)
> what about using UINTMAX_MAX for no limit to make it more explicit?
Done


PS2, Line 113: deduct_cmd_len
> thinking about someone implementing a new SPI controller using max_xfer_siz
I have added an assert in spi_crop_chunk to ensure that max_xfer_size is not 0 for the controllers that require use of the crop chunk.


-- 
To view, visit https://review.coreboot.org/19386
To unsubscribe, visit https://review.coreboot.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I81c199413f879c664682088e93bfa3f91c6a46e5
Gerrit-PatchSet: 2
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Owner: Furquan Shaikh <furquan at google.com>
Gerrit-Reviewer: Aaron Durbin <adurbin at chromium.org>
Gerrit-Reviewer: Furquan Shaikh <furquan at google.com>
Gerrit-Reviewer: Kyösti Mälkki <kyosti.malkki at gmail.com>
Gerrit-Reviewer: Paul Menzel <paulepanter at users.sourceforge.net>
Gerrit-Reviewer: Philippe Mathieu-Daudé <philippe.mathieu.daude at gmail.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply at coreboot.org>
Gerrit-Reviewer: coreboot org <coreboot.org at gmail.com>
Gerrit-HasComments: Yes



More information about the coreboot-gerrit mailing list