All of lore.kernel.org
 help / color / mirror / Atom feed
From: Florian Fainelli <f.fainelli@gmail.com>
To: linux-arm-kernel@lists.infradead.org, Yan Wang <rk.code@outlook.com>
Subject: Re: [PATCH] net: stmmac:fix system hang when setting up tag_8021q VLAN for DSA ports
Date: Thu, 13 Apr 2023 07:09:32 -0700	[thread overview]
Message-ID: <a2fc3f4c-b81c-20bb-58ca-9782289b7040@gmail.com> (raw)
In-Reply-To: <04dcbf97-c1b6-a5c3-5088-ffba82d25a0b@gmail.com>



On 4/13/2023 7:08 AM, Florian Fainelli wrote:
> 
> 
> On 4/13/2023 6:38 AM, Yan Wang wrote:
>> The system hang because of dsa_tag_8021q_port_setup()->
>>                 stmmac_vlan_rx_add_vid().
>>
>> I found in stmmac_drv_probe() that cailing pm_runtime_put()
>> disabled the clock.
>>
>> First, when the kernel is compiled with CONFIG_PM=y,The stmmac's
>> resume/suspend is active.
>>
>> Secondly,stmmac as DSA master,the dsa_tag_8021q_port_setup() function
>> will callback stmmac_vlan_rx_add_vid when DSA dirver starts. However,
>> The system is hanged for the stmmac_vlan_rx_add_vid() accesses its
>> registers after stmmac's clock is closed.
>>
>> I would suggest adding the pm_runtime_resume_and_get() to the
>> stmmac_vlan_rx_add_vid().This guarantees that resuming clock output
>> while in use.
>>
>> Signed-off-by: Yan Wang <rk.code@outlook.com>
> 
> You have posted this patch several times now yet not on 
> netdev@vger.kernel or towards the maintainers of the drivers, please 
> consider using scripts/get_maintainer.pl.

Was looking at an older version you did copy the proper recipients.

> 
> While it looks like you are fixing a bug, it would be worthy of 
> providing a suitable Fixes: tag since this is a genuine bugfix. You 
> should also consider providing the target tree: 'net' for bug fixes and 
> 'net-next' for features, and also provide a version counter in the 
> subject 'PATCH v4' or something like that.

-- 
Florian

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

  reply	other threads:[~2023-04-13 14:11 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-13 13:38 [PATCH] net: stmmac:fix system hang when setting up tag_8021q VLAN for DSA ports Yan Wang
2023-04-13 13:38 ` Yan Wang
2023-04-13 14:08 ` Florian Fainelli
2023-04-13 14:09   ` Florian Fainelli [this message]
2023-04-13 17:00 ` Jacob Keller
2023-04-13 17:00   ` Jacob Keller
2023-04-19 14:13 ` [PATCH net-next v6] " Yan Wang
2023-04-19 14:13   ` Yan Wang
2023-04-21 10:50   ` patchwork-bot+netdevbpf
2023-04-21 10:50     ` patchwork-bot+netdevbpf

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=a2fc3f4c-b81c-20bb-58ca-9782289b7040@gmail.com \
    --to=f.fainelli@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=rk.code@outlook.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.