Skip to contentSkip to conversation

hw/register: Document register_init_block @memory_size

PATCH Applied Philippe Mathieu-Daudé 3 participants 7 messages Jul 7, 2020 – Aug 31, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hw/register: Document register_init_block @memory_size

Document the 'memory_size' argument of register_init_block().

Fixes a74229597e ("register: Add block initialise helper")
---
 include/hw/register.h | 1 +
 1 file changed, 1 insertion(+)
include/hw/register.h +1 -0
index 5d2c565ae0..fdac5e69b5 100644
@@ -181,6 +181,7 @@ uint64_t register_read_memory(void *opaque, hwaddr addr, unsigned size);
  * @data: Array to use for register data, must already be allocated
  * @ops: Memory region ops to access registers.
  * @debug enabled: turn on/off verbose debug information
+ * @memory_size: Size of the memory region
  * returns: A structure containing all of the registers and an initialized
  *          memory region (r_array->mem) the caller should add to a container.
  */
Signature · 1 line
2.21.3
Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Philippe Mathieu-Daudé

Document the 'memory_size' argument of register_init_block().

Fixes a74229597e ("register: Add block initialise helper")

Alistair

Quoted 20 lines
---
 include/hw/register.h | 1 +
 1 file changed, 1 insertion(+)
include/hw/register.h +1 -1
index 5d2c565ae0..fdac5e69b5 100644
@@ -181,6 +181,7 @@ uint64_t register_read_memory(void *opaque, hwaddr addr, unsigned size);
  * @data: Array to use for register data, must already be allocated
  * @ops: Memory region ops to access registers.
  * @debug enabled: turn on/off verbose debug information
+ * @memory_size: Size of the memory region
  * returns: A structure containing all of the registers and an initialized
  *          memory region (r_array->mem) the caller should add to a container.
  */
--

2.21.3

Reviewed-by on v1 1/1
#2 lore raw
In reply to Philippe Mathieu-Daudé

Le 07/07/2020 à 08:23, Philippe Mathieu-Daudé a écrit :

Quoted 14 lines

Document the 'memory_size' argument of register_init_block().

Fixes a74229597e ("register: Add block initialise helper")
---
 include/hw/register.h | 1 +
 1 file changed, 1 insertion(+)
include/hw/register.h +0 -0
index 5d2c565ae0..fdac5e69b5 100644

include/hw/register.h uint64_t register_read_memory(void *opaque, hwaddr addr, unsigned size); · line 187

Quoted 7 lines
include/hw/register.h +1 -0
@@ -181,6 +181,7 @@ uint64_t register_read_memory(void *opaque, hwaddr addr, unsigned size);
  * @data: Array to use for register data, must already be allocated
  * @ops: Memory region ops to access registers.
  * @debug enabled: turn on/off verbose debug information
+ * @memory_size: Size of the memory region
  * returns: A structure containing all of the registers and an initialized
  *          memory region (r_array->mem) the caller should add to a container.
  */
#3 lore raw
Quoted 10 lines · Laurent Vivier
Quoted 8 lines · Philippe Mathieu-Daudé

Document the 'memory_size' argument of register_init_block().

Fixes a74229597e ("register: Add block initialise helper")
---
 include/hw/register.h | 1 +
 1 file changed, 1 insertion(+)
Quoted 15 lines

include/hw/register.h uint64_t register_read_memory(void *opaque, hwaddr addr, unsigned size); · line 187

Quoted 13 lines
include/hw/register.h +1 -0
index 5d2c565ae0..fdac5e69b5 100644
@@ -181,6 +181,7 @@ uint64_t register_read_memory(void *opaque, hwaddr addr, unsigned size);
  * @data: Array to use for register data, must already be allocated
  * @ops: Memory region ops to access registers.
  * @debug enabled: turn on/off verbose debug information
+ * @memory_size: Size of the memory region
  * returns: A structure containing all of the registers and an initialized
  *          memory region (r_array->mem) the caller should add to a container.
  */

Can this go via the trivial tree?

Alistair

Quoted 1 line
#4 lore raw

Le 09/07/2020 à 19:19, Alistair Francis a écrit :

Quoted 27 lines · Laurent Vivier
Quoted 10 lines · Philippe Mathieu-Daudé
Quoted 8 lines

Document the 'memory_size' argument of register_init_block().

Fixes a74229597e ("register: Add block initialise helper")
---
 include/hw/register.h | 1 +
 1 file changed, 1 insertion(+)
Quoted 15 lines

include/hw/register.h uint64_t register_read_memory(void *opaque, hwaddr addr, unsigned size); · line 187

Quoted 13 lines
include/hw/register.h +1 -0
index 5d2c565ae0..fdac5e69b5 100644
@@ -181,6 +181,7 @@ uint64_t register_read_memory(void *opaque, hwaddr addr, unsigned size);
  * @data: Array to use for register data, must already be allocated
  * @ops: Memory region ops to access registers.
  * @debug enabled: turn on/off verbose debug information
+ * @memory_size: Size of the memory region
  * returns: A structure containing all of the registers and an initialized
  *          memory region (r_array->mem) the caller should add to a container.
  */
Quoted 2 lines

Can this go via the trivial tree?

Yes, I will try to do a PR before the hard freeze.

Thanks,
Laurent

#5 lore raw
Quoted 28 lines · Laurent Vivier

Le 09/07/2020 à 19:19, Alistair Francis a écrit :

Quoted 27 lines · Laurent Vivier
Quoted 25 lines · Philippe Mathieu-Daudé
Quoted 14 lines

Document the 'memory_size' argument of register_init_block().

Fixes a74229597e ("register: Add block initialise helper")
---
 include/hw/register.h | 1 +
 1 file changed, 1 insertion(+)
include/hw/register.h +0 -0
index 5d2c565ae0..fdac5e69b5 100644

include/hw/register.h uint64_t register_read_memory(void *opaque, hwaddr addr, unsigned size); · line 187

Quoted 7 lines
include/hw/register.h +1 -0
@@ -181,6 +181,7 @@ uint64_t register_read_memory(void *opaque, hwaddr addr, unsigned size);
  * @data: Array to use for register data, must already be allocated
  * @ops: Memory region ops to access registers.
  * @debug enabled: turn on/off verbose debug information
+ * @memory_size: Size of the memory region
  * returns: A structure containing all of the registers and an initialized
  *          memory region (r_array->mem) the caller should add to a container.
  */
Quoted 4 lines
Quoted 2 lines

Can this go via the trivial tree?

Yes, I will try to do a PR before the hard freeze.

No rush, if there is nothing else in your queue
you can safely keep this for 5.2 ;)

#6 lore raw
In reply to Philippe Mathieu-Daudé

Le 07/07/2020 à 08:23, Philippe Mathieu-Daudé a écrit :

Quoted 14 lines

Document the 'memory_size' argument of register_init_block().

Fixes a74229597e ("register: Add block initialise helper")
---
 include/hw/register.h | 1 +
 1 file changed, 1 insertion(+)
include/hw/register.h +0 -0
index 5d2c565ae0..fdac5e69b5 100644

include/hw/register.h uint64_t register_read_memory(void *opaque, hwaddr addr, unsigned size); · line 187

Quoted 7 lines
include/hw/register.h +1 -0
@@ -181,6 +181,7 @@ uint64_t register_read_memory(void *opaque, hwaddr addr, unsigned size);
  * @data: Array to use for register data, must already be allocated
  * @ops: Memory region ops to access registers.
  * @debug enabled: turn on/off verbose debug information
+ * @memory_size: Size of the memory region
  * returns: A structure containing all of the registers and an initialized
  *          memory region (r_array->mem) the caller should add to a container.
  */

Applied to my trivial-patches branch.

Thanks,
Laurent