[RESEND,v2] soc: ti: k3-ringacc: remove non-fatal probe deferral log

Message ID 20230710104215.156114-1-j-choudhary@ti.com
State New
Headers
Series [RESEND,v2] soc: ti: k3-ringacc: remove non-fatal probe deferral log |

Commit Message

Jayesh Choudhary July 10, 2023, 10:42 a.m. UTC
  Drop the non-fatal probe deferral log for getting MSI domain.
This makes the kernel log clean and we do not get recurring logs
stating: "Failed to get MSI domain".

Signed-off-by: Jayesh Choudhary <j-choudhary@ti.com>
---

v2 patch: <https://lore.kernel.org/all/20230117052052.29953-1-j-choudhary@ti.com/>

Changelog v1->v2:
- Removed the print instead of dropping the loglevel according to the comment
  on similar patch for udma:
  <https://lore.kernel.org/all/Y6wiXlZh1MUL2WrF@matsya/>
  
v1 patch: <https://lore.kernel.org/all/20221128102138.529398-1-j-choudhary@ti.com/>

 drivers/soc/ti/k3-ringacc.c | 1 -
 1 file changed, 1 deletion(-)
  

Comments

Nishanth Menon July 12, 2023, 2:27 p.m. UTC | #1
On 16:12-20230710, Jayesh Choudhary wrote:
> Drop the non-fatal probe deferral log for getting MSI domain.
> This makes the kernel log clean and we do not get recurring logs
> stating: "Failed to get MSI domain".
> 
> Signed-off-by: Jayesh Choudhary <j-choudhary@ti.com>
> ---
> 
> v2 patch: <https://lore.kernel.org/all/20230117052052.29953-1-j-choudhary@ti.com/>
> 
> Changelog v1->v2:
> - Removed the print instead of dropping the loglevel according to the comment
>   on similar patch for udma:
>   <https://lore.kernel.org/all/Y6wiXlZh1MUL2WrF@matsya/>
>   
> v1 patch: <https://lore.kernel.org/all/20221128102138.529398-1-j-choudhary@ti.com/>
> 
>  drivers/soc/ti/k3-ringacc.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/soc/ti/k3-ringacc.c b/drivers/soc/ti/k3-ringacc.c
> index 8f131368a758..5eb81895f8bc 100644
> --- a/drivers/soc/ti/k3-ringacc.c
> +++ b/drivers/soc/ti/k3-ringacc.c
> @@ -1374,7 +1374,6 @@ static int k3_ringacc_init(struct platform_device *pdev,
>  	dev->msi.domain = of_msi_get_domain(dev, dev->of_node,
>  					    DOMAIN_BUS_TI_SCI_INTA_MSI);
>  	if (!dev->msi.domain) {
> -		dev_err(dev, "Failed to get MSI domain\n");
>  		return -EPROBE_DEFER;
>  	}

Do you need braces for a one liner? why not drop them?
>  
> -- 
> 2.25.1
>
  

Patch

diff --git a/drivers/soc/ti/k3-ringacc.c b/drivers/soc/ti/k3-ringacc.c
index 8f131368a758..5eb81895f8bc 100644
--- a/drivers/soc/ti/k3-ringacc.c
+++ b/drivers/soc/ti/k3-ringacc.c
@@ -1374,7 +1374,6 @@  static int k3_ringacc_init(struct platform_device *pdev,
 	dev->msi.domain = of_msi_get_domain(dev, dev->of_node,
 					    DOMAIN_BUS_TI_SCI_INTA_MSI);
 	if (!dev->msi.domain) {
-		dev_err(dev, "Failed to get MSI domain\n");
 		return -EPROBE_DEFER;
 	}