diff mbox series

[RFC,1/2] ACPICA/IORT: Correct the comment for id_count

Message ID 1577092997-9852-1-git-send-email-guohanjun@huawei.com (mailing list archive)
State New, archived
Headers show
Series [RFC,1/2] ACPICA/IORT: Correct the comment for id_count | expand

Commit Message

Hanjun Guo Dec. 23, 2019, 9:23 a.m. UTC
In IORT spec
(http://infocenter.arm.com/help/topic/com.arm.doc.den0049d/DEN0049D_IO_Remapping_Table.pdf),
id_num means Number of IDs minus one, update the comment.

Signed-off-by: Hanjun Guo <guohanjun@huawei.com>
---

This patch just for comments, needs to be upstream in ACPICA first.

 include/acpi/actbl2.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

John Garry Dec. 23, 2019, 10:35 a.m. UTC | #1
On 23/12/2019 09:23, Hanjun Guo wrote:
> In IORT spec
> (http://infocenter.arm.com/help/topic/com.arm.doc.den0049d/DEN0049D_IO_Remapping_Table.pdf),
> id_num means Number of IDs minus one, update the comment.
> 
> Signed-off-by: Hanjun Guo <guohanjun@huawei.com>
> ---
> 
> This patch just for comments, needs to be upstream in ACPICA first.
> 
>   include/acpi/actbl2.h | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/include/acpi/actbl2.h b/include/acpi/actbl2.h
> index e45ced2..382642f 100644
> --- a/include/acpi/actbl2.h
> +++ b/include/acpi/actbl2.h
> @@ -104,7 +104,7 @@ enum acpi_iort_node_type {
>   
>   struct acpi_iort_id_mapping {
>   	u32 input_base;		/* Lowest value in input range */
> -	u32 id_count;		/* Number of IDs */
> +	u32 id_count;		/* Number of IDs in the range minus one */

The IORT spec also uses the term "Length" in the examples...

>   	u32 output_base;	/* Lowest value in output range */
>   	u32 output_reference;	/* A reference to the output node */
>   	u32 flags;
>
Hanjun Guo Dec. 24, 2019, 1:10 a.m. UTC | #2
On 2019/12/23 18:35, John Garry wrote:
> On 23/12/2019 09:23, Hanjun Guo wrote:
>> In IORT spec
>> (http://infocenter.arm.com/help/topic/com.arm.doc.den0049d/DEN0049D_IO_Remapping_Table.pdf),
>> id_num means Number of IDs minus one, update the comment.
>>
>> Signed-off-by: Hanjun Guo <guohanjun@huawei.com>
>> ---
>>
>> This patch just for comments, needs to be upstream in ACPICA first.
>>
>>   include/acpi/actbl2.h | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/include/acpi/actbl2.h b/include/acpi/actbl2.h
>> index e45ced2..382642f 100644
>> --- a/include/acpi/actbl2.h
>> +++ b/include/acpi/actbl2.h
>> @@ -104,7 +104,7 @@ enum acpi_iort_node_type {
>>     struct acpi_iort_id_mapping {
>>       u32 input_base;        /* Lowest value in input range */
>> -    u32 id_count;        /* Number of IDs */
>> +    u32 id_count;        /* Number of IDs in the range minus one */
> 
> The IORT spec also uses the term "Length" in the examples...

More confusing...
diff mbox series

Patch

diff --git a/include/acpi/actbl2.h b/include/acpi/actbl2.h
index e45ced2..382642f 100644
--- a/include/acpi/actbl2.h
+++ b/include/acpi/actbl2.h
@@ -104,7 +104,7 @@  enum acpi_iort_node_type {
 
 struct acpi_iort_id_mapping {
 	u32 input_base;		/* Lowest value in input range */
-	u32 id_count;		/* Number of IDs */
+	u32 id_count;		/* Number of IDs in the range minus one */
 	u32 output_base;	/* Lowest value in output range */
 	u32 output_reference;	/* A reference to the output node */
 	u32 flags;