linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: Cristian Marussi <cristian.marussi@arm.com>
To: Sudeep Holla <sudeep.holla@arm.com>
Cc: linux-arm-kernel@lists.infradead.org,
	"Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
Subject: Re: [PATCH 1/2] firmware: arm_scmi: Simplify device probe function on the bus
Date: Thu, 24 Jun 2021 11:08:16 +0100	[thread overview]
Message-ID: <20210624100816.GA40942@e120937-lin> (raw)
In-Reply-To: <20210624095059.4010157-1-sudeep.holla@arm.com>

Hi,

On Thu, Jun 24, 2021 at 10:50:58AM +0100, Sudeep Holla wrote:
> When the driver core calls the probe callback it already checked that
> the devices match, so there is no need to call the match callback again.
> 
> Suggested-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
> ---
>  drivers/firmware/arm_scmi/bus.c | 5 -----
>  1 file changed, 5 deletions(-)
> 
> Hi Uwe,
> 
> Just remembered the similarity in SCMI when you posted similar patches
> for Arm FF-A. Thought I will push this out before I forget. I have put
> suggested and reported by you as I don't have upstream commit id to refer
> yet. Hope that is fine.
> 
> Regards,
> Sudeep
> 
> diff --git a/drivers/firmware/arm_scmi/bus.c b/drivers/firmware/arm_scmi/bus.c
> index 784cf0027da3..dc113ad37ad9 100644
> --- a/drivers/firmware/arm_scmi/bus.c
> +++ b/drivers/firmware/arm_scmi/bus.c
> @@ -104,11 +104,6 @@ static int scmi_dev_probe(struct device *dev)
>  {
>  	struct scmi_driver *scmi_drv = to_scmi_driver(dev->driver);
>  	struct scmi_device *scmi_dev = to_scmi_dev(dev);
> -	const struct scmi_device_id *id;
> -
> -	id = scmi_dev_match_id(scmi_dev, scmi_drv);
> -	if (!id)
> -		return -ENODEV;
>  
>  	if (!scmi_dev->handle)
>  		return -EPROBE_DEFER;

Reviewed-by: Cristian Marussi <cristian.marussi@arm.com>
Tested-by: Cristian Marussi <cristian.marussi@arm.com>

Thanks,
Cristian

> -- 
> 2.25.1
> 

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  parent reply	other threads:[~2021-06-24 10:10 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-24  9:50 [PATCH 1/2] firmware: arm_scmi: Simplify device probe function on the bus Sudeep Holla
2021-06-24  9:50 ` [PATCH 2/2] firmware: arm_scmi: Ensure drivers provide a probe function Sudeep Holla
2021-06-24 10:08   ` Cristian Marussi
2021-06-24 19:54   ` Uwe Kleine-König
2021-06-24 10:08 ` Cristian Marussi [this message]
2021-06-24 19:54 ` [PATCH 1/2] firmware: arm_scmi: Simplify device probe function on the bus Uwe Kleine-König
2021-06-25 10:20 ` Sudeep Holla

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=20210624100816.GA40942@e120937-lin \
    --to=cristian.marussi@arm.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=sudeep.holla@arm.com \
    --cc=u.kleine-koenig@pengutronix.de \
    /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;
as well as URLs for NNTP newsgroup(s).