[PATCH v3] hw: m25p80: allow write_enable latch get/set

2022-05-12 Thread Iris Chen via
The write_enable latch property is not currently exposed. This commit makes it a modifiable property. Signed-off-by: Iris Chen --- v3: Addressed comments by Peter and Cedric. v2: Ran ./scripts/checkpatch.pl on the patch and added a description. Fixed comments regarding DEFINE_PROP_BOOL. hw/blo

[PATCH v2] hw: m25p80: allow write_enable latch get/set

2022-05-11 Thread Iris Chen via
The write_enable latch property is not currently exposed. This commit makes it a modifiable property using get/set methods. Signed-off-by: Iris Chen --- Ran ./scripts/checkpatch.pl on the patch and added a description. Fixed comments regarding DEFINE_PROP_BOOL. hw/block/m25p80.c |

[PATCH 0/1] hw: allow write_enable latch get/set

2022-05-11 Thread Iris Chen via
Hey everyone, My patch adds the get/set property for the write_enable latch. Currently, it is not an exposed property but this change adds QOM visibility and makes this property modifiable. Acceptance tests have also been added to verify the value in the status register (after the value is s

[PATCH 1/1] hw: allow write_enable latch get/set

2022-05-11 Thread Iris Chen via
--- hw/block/m25p80.c | 30 ++ tests/qtest/aspeed_smc-test.c | 20 2 files changed, 50 insertions(+) diff --git a/hw/block/m25p80.c b/hw/block/m25p80.c index 430d1298a8..fb72704e5a 100644 --- a/hw/block/m25p80.c +++ b/hw/block/m25p80.c

[PATCH 1/1] hw: allow write_enable latch get/set

2022-05-11 Thread Iris Chen via
--- hw/block/m25p80.c | 30 ++ tests/qtest/aspeed_smc-test.c | 20 2 files changed, 50 insertions(+) diff --git a/hw/block/m25p80.c b/hw/block/m25p80.c index 430d1298a8..fb72704e5a 100644 --- a/hw/block/m25p80.c +++ b/hw/block/m25p80.c

[PATCH 0/1] hw: allow write_enable latch get/set

2022-05-11 Thread Iris Chen via
Hey everyone, My patch adds the get/set property for the write_enable latch. Currently, it is not an exposed property but this change adds QOM visibility and makes this property modifiable. Acceptance tests have also been added to verify the value in the status register (after the value is s