netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] net: systemport: Replace platform_get_irq with platform_get_irq_optional
@ 2023-06-01  3:30 Jiasheng Jiang
  2023-06-01 17:44 ` Florian Fainelli
  2023-06-02  9:00 ` patchwork-bot+netdevbpf
  0 siblings, 2 replies; 3+ messages in thread
From: Jiasheng Jiang @ 2023-06-01  3:30 UTC (permalink / raw)
  To: justin.chen, f.fainelli, davem, edumazet, kuba, pabeni,
	bcm-kernel-feedback-list
  Cc: netdev, linux-kernel, Jiasheng Jiang

Replace platform_get_irq with platform_get_irq_optional because wol_irq
is optional.

Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
---
 drivers/net/ethernet/broadcom/bcmsysport.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/ethernet/broadcom/bcmsysport.c b/drivers/net/ethernet/broadcom/bcmsysport.c
index 38d0cdaf22a5..bf1611cce974 100644
--- a/drivers/net/ethernet/broadcom/bcmsysport.c
+++ b/drivers/net/ethernet/broadcom/bcmsysport.c
@@ -2531,9 +2531,9 @@ static int bcm_sysport_probe(struct platform_device *pdev)
 	priv->irq0 = platform_get_irq(pdev, 0);
 	if (!priv->is_lite) {
 		priv->irq1 = platform_get_irq(pdev, 1);
-		priv->wol_irq = platform_get_irq(pdev, 2);
+		priv->wol_irq = platform_get_irq_optional(pdev, 2);
 	} else {
-		priv->wol_irq = platform_get_irq(pdev, 1);
+		priv->wol_irq = platform_get_irq_optional(pdev, 1);
 	}
 	if (priv->irq0 <= 0 || (priv->irq1 <= 0 && !priv->is_lite)) {
 		ret = -EINVAL;
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] net: systemport: Replace platform_get_irq with platform_get_irq_optional
  2023-06-01  3:30 [PATCH] net: systemport: Replace platform_get_irq with platform_get_irq_optional Jiasheng Jiang
@ 2023-06-01 17:44 ` Florian Fainelli
  2023-06-02  9:00 ` patchwork-bot+netdevbpf
  1 sibling, 0 replies; 3+ messages in thread
From: Florian Fainelli @ 2023-06-01 17:44 UTC (permalink / raw)
  To: Jiasheng Jiang, justin.chen, f.fainelli, davem, edumazet, kuba,
	pabeni, bcm-kernel-feedback-list
  Cc: netdev, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 399 bytes --]

On 5/31/23 20:30, Jiasheng Jiang wrote:
> Replace platform_get_irq with platform_get_irq_optional because wol_irq
> is optional.
> 
> Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>

I suppose this works as far as communicating the intent and the nature 
of the interrupt, not that this is a functional change though:

Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
-- 
Florian


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4221 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] net: systemport: Replace platform_get_irq with platform_get_irq_optional
  2023-06-01  3:30 [PATCH] net: systemport: Replace platform_get_irq with platform_get_irq_optional Jiasheng Jiang
  2023-06-01 17:44 ` Florian Fainelli
@ 2023-06-02  9:00 ` patchwork-bot+netdevbpf
  1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2023-06-02  9:00 UTC (permalink / raw)
  To: Jiasheng Jiang
  Cc: justin.chen, f.fainelli, davem, edumazet, kuba, pabeni,
	bcm-kernel-feedback-list, netdev, linux-kernel

Hello:

This patch was applied to netdev/net.git (main)
by David S. Miller <davem@davemloft.net>:

On Thu,  1 Jun 2023 11:30:02 +0800 you wrote:
> Replace platform_get_irq with platform_get_irq_optional because wol_irq
> is optional.
> 
> Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
> ---
>  drivers/net/ethernet/broadcom/bcmsysport.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Here is the summary with links:
  - net: systemport: Replace platform_get_irq with platform_get_irq_optional
    https://git.kernel.org/netdev/net/c/f93b30e50a81

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-06-02  9:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-01  3:30 [PATCH] net: systemport: Replace platform_get_irq with platform_get_irq_optional Jiasheng Jiang
2023-06-01 17:44 ` Florian Fainelli
2023-06-02  9:00 ` patchwork-bot+netdevbpf

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).