diff mbox series

[v6,18/29] sbe-p9: endian conversion

Message ID 20191106121047.14389-19-npiggin@gmail.com
State Changes Requested
Headers show
Series little endian skiboot | expand

Checks

Context Check Description
snowpatch_ozlabs/apply_patch warning Failed to apply on branch master (d75e82dbfbb9443efeb3f9a5921ac23605aab469)
snowpatch_ozlabs/apply_patch fail Failed to apply to any branch

Commit Message

Nicholas Piggin Nov. 6, 2019, 12:10 p.m. UTC
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
---
 hw/sbe-p9.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Vasant Hegde Nov. 8, 2019, 10:47 a.m. UTC | #1
On 11/6/19 5:40 PM, Nicholas Piggin wrote:
> Signed-off-by: Nicholas Piggin <npiggin@gmail.com>


Reviewed-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>

-Vasant



> ---
>   hw/sbe-p9.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/hw/sbe-p9.c b/hw/sbe-p9.c
> index 1b5f29ec1..53f378e18 100644
> --- a/hw/sbe-p9.c
> +++ b/hw/sbe-p9.c
> @@ -123,7 +123,7 @@ static u64 p9_sbe_rreg(u32 chip_id, u64 reg)
>   		return 0xffffffff;
>   	}
> 
> -	return be64_to_cpu(data);
> +	return data;
>   }
> 
>   static void p9_sbe_reg_dump(u32 chip_id)
>
diff mbox series

Patch

diff --git a/hw/sbe-p9.c b/hw/sbe-p9.c
index 1b5f29ec1..53f378e18 100644
--- a/hw/sbe-p9.c
+++ b/hw/sbe-p9.c
@@ -123,7 +123,7 @@  static u64 p9_sbe_rreg(u32 chip_id, u64 reg)
 		return 0xffffffff;
 	}
 
-	return be64_to_cpu(data);
+	return data;
 }
 
 static void p9_sbe_reg_dump(u32 chip_id)