mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Guomin chen <guomin.chen@cixtech.com>
To: kr494167@gmail.com
Cc: jassisinghbrar@gmail.com, gary.yang@cixtech.com,
	fugang.duan@cixtech.com, cix-kernel-upstream@cixtech.com,
	linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org,
	Surendra Singh Chouhan <kr494167@gmail.com>
Subject: Re: [PATCH v2 2/2] mailbox: cix: fix DT property name string typo and use dev_err_probe()
Date: Thu, 13 Aug 2026 06:55:56 +0000	[thread overview]
Message-ID: <an1qfDuK4J1MAOXE@gchen> (raw)
In-Reply-To: <20260812100623.36939-2-kr494167@gmail.com>

On Wed, Aug 12, 2026 at 03:36:23PM +0530, kr494167@gmail.com wrote:
> [Some people who received this message don't often get email from kr494167@gmail.com. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]
> 
> EXTERNAL EMAIL
> 
> From: Surendra Singh Chouhan <kr494167@gmail.com>
> 
> cix_mbox_probe() logged property error messages referencing
> "cix,mbox_dir" (with an underscore) instead of the actual DT property
> string "cix,mbox-dir".
> 
> Fix the DT property string in error log messages and convert probe error
> paths to dev_err_probe().
> 
> Signed-off-by: Surendra Singh Chouhan <kr494167@gmail.com>
> ---
>  drivers/mailbox/cix-mailbox.c | 16 ++++++----------
>  1 file changed, 6 insertions(+), 10 deletions(-)
> 
> diff --git a/drivers/mailbox/cix-mailbox.c b/drivers/mailbox/cix-mailbox.c
> index 615218c69eeb..fb5d7641ba90 100644
> --- a/drivers/mailbox/cix-mailbox.c
> +++ b/drivers/mailbox/cix-mailbox.c
> @@ -585,19 +585,15 @@ static int cix_mbox_probe(struct platform_device *pdev)
>         if (priv->irq < 0)
>                 return priv->irq;
> 
> -       if (device_property_read_string(dev, "cix,mbox-dir", &dir_str)) {
> -               dev_err(priv->dev, "cix,mbox_dir property not found\n");
> -               return -EINVAL;
> -       }
> +       if (device_property_read_string(dev, "cix,mbox-dir", &dir_str))
> +               return dev_err_probe(dev, -EINVAL, "cix,mbox-dir property not found\n");
> 
>         if (!strcmp(dir_str, "tx"))
>                 priv->dir = 0;
>         else if (!strcmp(dir_str, "rx"))
>                 priv->dir = 1;
> -       else {
> -               dev_err(priv->dev, "cix,mbox_dir=%s is not expected\n", dir_str);
> -               return -EINVAL;
> -       }
> +       else
> +               return dev_err_probe(dev, -EINVAL, "cix,mbox-dir=%s is not expected\n", dir_str);
> 
>         cix_mbox_init(priv);
> 
> @@ -611,9 +607,9 @@ static int cix_mbox_probe(struct platform_device *pdev)
>         platform_set_drvdata(pdev, priv);
>         ret = devm_mbox_controller_register(dev, &priv->mbox);
>         if (ret)
> -               dev_err(dev, "Failed to register mailbox %d\n", ret);
> +               return dev_err_probe(dev, ret, "Failed to register mailbox\n");
> 
> -       return ret;
> +       return 0;
>  }
>
Reviewed-by: Guomin Chen <Guomin.Chen@cixtech.com>

Best regards,
Guomin Chen

  reply	other threads:[~2026-08-13  6:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-12  8:47 [PATCH v2 0/2] mailbox: cix: clean up channel validation and error reporting kr494167
2026-08-12 10:06 ` [PATCH v2 1/2] mailbox: cix: validate fast channel index before request_irq() kr494167
2026-08-12 10:06   ` [PATCH v2 2/2] mailbox: cix: fix DT property name string typo and use dev_err_probe() kr494167
2026-08-13  6:55     ` Guomin chen [this message]
2026-08-13  5:41   ` [PATCH v2 1/2] mailbox: cix: validate fast channel index before request_irq() Guomin chen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=an1qfDuK4J1MAOXE@gchen \
    --to=guomin.chen@cixtech.com \
    --cc=cix-kernel-upstream@cixtech.com \
    --cc=fugang.duan@cixtech.com \
    --cc=gary.yang@cixtech.com \
    --cc=jassisinghbrar@gmail.com \
    --cc=kr494167@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®