diff mbox series

[v2,3/4] platform: andes/ae350: Drop plicsw_get_pending()

Message ID 20210604153545.18949-3-bmeng.cn@gmail.com
State Accepted
Headers show
Series [v2,1/4] platform: andes/ae350: Cosmetic fixes in plicsw.c | expand

Commit Message

Bin Meng June 4, 2021, 3:35 p.m. UTC
This is not used anywhere. Drop it.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>

---

Changes in v2:
- new patch: Drop plicsw_get_pending()

 platform/andes/ae350/plicsw.c | 6 ------
 1 file changed, 6 deletions(-)

Comments

Anup Patel June 11, 2021, 5:53 a.m. UTC | #1
> -----Original Message-----
> From: Bin Meng <bmeng.cn@gmail.com>
> Sent: 04 June 2021 21:06
> To: Anup Patel <Anup.Patel@wdc.com>; opensbi@lists.infradead.org
> Cc: Bin Meng <bmeng.cn@gmail.com>
> Subject: [PATCH v2 3/4] platform: andes/ae350: Drop plicsw_get_pending()
> 
> This is not used anywhere. Drop it.
> 
> Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
> 

Looks good to me.

Reviewed-by: Anup Patel <anup.patel@wdc.com>

Applied this patch to the riscv/opensbi repo

Thanks,
Anup

> ---
> 
> Changes in v2:
> - new patch: Drop plicsw_get_pending()
> 
>  platform/andes/ae350/plicsw.c | 6 ------
>  1 file changed, 6 deletions(-)
> 
> diff --git a/platform/andes/ae350/plicsw.c b/platform/andes/ae350/plicsw.c
> index 4df7317..edbbb11 100644
> --- a/platform/andes/ae350/plicsw.c
> +++ b/platform/andes/ae350/plicsw.c
> @@ -33,12 +33,6 @@ static inline void plicsw_complete(void)
>  	writel(source, plicsw_dev[source_hart].plicsw_claim);
>  }
> 
> -static inline u32 plicsw_get_pending(u32 source_hart, u32 target_hart) -{
> -	return readl(plicsw_dev[source_hart].plicsw_pending)
> -	       & (PLICSW_HART_MASK >> target_hart);
> -}
> -
>  static inline void plic_sw_pending(u32 target_hart)  {
>  	/*
> --
> 2.25.1
diff mbox series

Patch

diff --git a/platform/andes/ae350/plicsw.c b/platform/andes/ae350/plicsw.c
index 4df7317..edbbb11 100644
--- a/platform/andes/ae350/plicsw.c
+++ b/platform/andes/ae350/plicsw.c
@@ -33,12 +33,6 @@  static inline void plicsw_complete(void)
 	writel(source, plicsw_dev[source_hart].plicsw_claim);
 }
 
-static inline u32 plicsw_get_pending(u32 source_hart, u32 target_hart)
-{
-	return readl(plicsw_dev[source_hart].plicsw_pending)
-	       & (PLICSW_HART_MASK >> target_hart);
-}
-
 static inline void plic_sw_pending(u32 target_hart)
 {
 	/*