Skip to content

hw/block/pflash: Refactors around setting the device in read-array mode

Philippe Mathieu-Daudé qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest12 patches 10 repliesIn review
  2. v19 patches 20 repliesSuperseded

Changes in v2 from the cover letter

- Addressed David/Bin comments
- Added R-b

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12hw/block/pflash_cfi: Fix code style for checkpatch.plhw/block/pflash_cfi01.c hw/block/pflash_cfi02.c+30 -150 replies
2/12hw/block/pflash_cfi01: Extract pflash_cfi01_fill_cfi_table()hw/block/pflash_cfi01.c+73 -670 replies
3/12hw/block/pflash_cfi02: Extract pflash_cfi02_fill_cfi_table()hw/block/pflash_cfi02.c+99 -940 replies
4/12hw/block/pflash_cfi02: Set rom_mode to true in pflash_setup_mappings()hw/block/pflash_cfi02.c+3 -31 reply
5/12hw/block/pflash_cfi02: Open-code pflash_register_memory(rom=false)hw/block/pflash_cfi02.c+4 -21 reply
6/12hw/block/pflash_cfi02: Rename register_memory(true) as mode_read_arrayhw/block/pflash_cfi02.c hw/block/trace-events+10 -90 replies
7/12hw/block/pflash_cfi02: Factor out pflash_reset_state_machine()hw/block/pflash_cfi02.c+11 -92 replies
8/12hw/block/pflash_cfi02: Add DeviceReset methodhw/block/pflash_cfi02.c+8 -02 replies
9/12hw/block/pflash_cfi01: Clarify trace eventshw/block/pflash_cfi01.c+2 -10 replies
10/12hw/block/pflash_cfi01: Extract pflash_mode_read_array()hw/block/pflash_cfi01.c+17 -231 reply
11/12hw/block/pflash_cfi01: Correct the type of PFlashCFI01.rohw/block/pflash_cfi01.c+2 -21 reply
12/12hw/block/pflash_cfi: Replace DPRINTF with trace eventshw/block/pflash_cfi01.c hw/block/pflash_cfi02.c hw/block/trace-events+95 -1051 reply

Reviews trailers per patch

All 12 patches have a Reviewed-by or Acked-by.

PatchBin MengDavid EdmondsonPhilippe Mathieu-DaudéAlistair Francis
1/12R-b R-b
2/12R-b R-b
3/12R-b R-b
4/12R-b R-b
5/12R-b R-b
6/12R-b R-b
7/12R-b R-b
8/12R-b R-b
9/12R-b R-b
10/12R-b R-b
11/12R-b R-b
12/12R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v2 thread

Cover letter [PATCH v2 00/12] hw/block/pflash: Refactors around setting the device in read-array mode

I remembered this almost 2 years old series while reviewing David Edmondson's patches... (which are included at the end).

Basically we move things around to make the code easier to maintain.

Since v1:
- Addressed David/Bin comments
- Added R-b

Missing review: patches 7 & 8

Regards,

Phil.

David Edmondson (2):
hw/block/pflash_cfi01: Correct the type of PFlashCFI01.ro hw/block/pflash_cfi: Replace DPRINTF with trace events

Philippe Mathieu-Daudé (10):
hw/block/pflash_cfi: Fix code style for checkpatch.pl hw/block/pflash_cfi01: Extract pflash_cfi01_fill_cfi_table() hw/block/pflash_cfi02: Extract pflash_cfi02_fill_cfi_table() hw/block/pflash_cfi02: Set rom_mode to true in pflash_setup_mappings() hw/block/pflash_cfi02: Open-code pflash_register_memory(rom=false) hw/block/pflash_cfi02: Rename register_memory(true) as mode_read_array hw/block/pflash_cfi02: Factor out pflash_reset_state_machine() hw/block/pflash_cfi02: Add DeviceReset method hw/block/pflash_cfi01: Clarify trace events hw/block/pflash_cfi01: Extract pflash_mode_read_array()

 hw/block/pflash_cfi01.c | 278 ++++++++++++++++++-----------------
 hw/block/pflash_cfi02.c | 316 ++++++++++++++++++++--------------------
 hw/block/trace-events   |  40 +++--
 3 files changed, 329 insertions(+), 305 deletions(-)
Signature · 1 line
2.26.2