public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
From: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
To: artur@conclusive.pl
Cc: broonie@kernel.org, conor+dt@kernel.org,
	devicetree@vger.kernel.org, jakub@conclusive.pl,
	johannes@sipsolutions.net, krzk+dt@kernel.org,
	lgirdwood@gmail.com, linux-kernel@vger.kernel.org,
	linux-wireless@vger.kernel.org, robh@kernel.org,
	s.hauer@pengutronix.de, ulf.axelsson@nordicsemi.no,
	wojciech@conclusive.pl
Subject: Re: [RFC PATCH v2 2/2] wifi: Add Nordic nRF70 series Wi-Fi driver
Date: Fri, 25 Apr 2025 21:31:26 +0200	[thread overview]
Message-ID: <3cfd718f-e96a-44d0-b42f-d759ae698810@wanadoo.fr> (raw)
In-Reply-To: <20250422175918.585022-3-artur@conclusive.pl>

Le 22/04/2025 à 19:59, Artur Rojek a écrit :
> Introduce support for Nordic Semiconductor nRF70 series wireless
> companion IC.
> 

Hi,
...

> +	/* vpwr is mandatory, but we want to catch the -ENODEV error. */
> +	priv->vpwr = devm_regulator_get_optional(dev, "vpwr");
> +	if (IS_ERR(priv->vpwr))
> +		return dev_err_probe(dev, PTR_ERR(priv->vpwr),
> +				     "Unable to find vpwr-supply property");
> +
> +	priv->vio = devm_regulator_get_optional(dev, "vio");
> +	if (IS_ERR(priv->vio) && PTR_ERR(priv->vio) != -ENODEV) {
> +		return dev_err_probe(dev, PTR_ERR(priv->vio),
> +				     "Invalid vio-supply property");
> +	}

Unneeded extra { }

> +
> +	irq = of_irq_get_byname(dev->of_node, "host-irq");
> +	if (irq <= 0)
> +		return dev_err_probe(dev, irq, "Unable to find host-irq\n");

If irq is 0, is it expected to return sucess here?

> +
> +	mutex_init(&priv->write_lock);
> +	mutex_init(&priv->read_lock);
...

CJ

  parent reply	other threads:[~2025-04-25 19:31 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-22 17:59 [RFC PATCH v2 0/2] wifi: Nordic nRF70 series Artur Rojek
2025-04-22 17:59 ` [RFC PATCH v2 1/2] dt-bindings: wifi: Add support for Nordic nRF70 Artur Rojek
2025-04-25 10:38   ` Krzysztof Kozlowski
2025-04-22 17:59 ` [RFC PATCH v2 2/2] wifi: Add Nordic nRF70 series Wi-Fi driver Artur Rojek
2025-04-24 15:07   ` Johannes Berg
2025-04-25 16:49     ` Artur Rojek
2025-04-25 18:09       ` Johannes Berg
2025-05-01 10:34         ` Artur Rojek
2025-04-25 19:31   ` Christophe JAILLET [this message]
2025-05-01 10:41     ` Artur Rojek
2025-05-01 17:44       ` Christophe JAILLET
2025-04-25 18:11 ` [RFC PATCH v2 0/2] wifi: Nordic nRF70 series Johannes Berg
2025-04-28  8:45   ` Arend van Spriel
2025-04-28 17:10     ` Josh Boyer

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=3cfd718f-e96a-44d0-b42f-d759ae698810@wanadoo.fr \
    --to=christophe.jaillet@wanadoo.fr \
    --cc=artur@conclusive.pl \
    --cc=broonie@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=jakub@conclusive.pl \
    --cc=johannes@sipsolutions.net \
    --cc=krzk+dt@kernel.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=robh@kernel.org \
    --cc=s.hauer@pengutronix.de \
    --cc=ulf.axelsson@nordicsemi.no \
    --cc=wojciech@conclusive.pl \
    /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