From: Yunsheng Lin <linyunsheng@huawei.com>
To: Wang Ming <machel@vivo.com>, Sunil Goutham <sgoutham@marvell.com>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
<linux-arm-kernel@lists.infradead.org>, <netdev@vger.kernel.org>,
<linux-kernel@vger.kernel.org>
Cc: <opensource.kernel@vivo.com>
Subject: Re: [PATCH] drivers/thunder:improve-warning-message-in-device_for_each_child_node()
Date: Tue, 13 Jun 2023 20:52:52 +0800 [thread overview]
Message-ID: <4aa86edd-5526-929d-8576-9d2b6f828eb0@huawei.com> (raw)
In-Reply-To: <20230613123826.558-1-machel@vivo.com>
On 2023/6/13 20:38, Wang Ming wrote:
> In device_for_each_child_node(), it should have fwnode_handle_put()
> before break to prevent stale device node references from being
> left behind.
>
> Signed-off-by: Wang Ming <machel@vivo.com>
A Fixes tag seems necessary according to the commit log, and should
target the net branch using:
[PATCH net] drivers/thunder: improve-warning-message-in-device_for_each_child_node()
Also it seems confusing the 'improve' in the title suggest that it is not
a fix.
> ---
> .../net/ethernet/cavium/thunder/thunder_bgx.c | 37 ++++++++++---------
> 1 file changed, 20 insertions(+), 17 deletions(-)
>
> diff --git a/drivers/net/ethernet/cavium/thunder/thunder_bgx.c b/drivers/net/ethernet/cavium/thunder/thunder_bgx.c
> index a317feb8d..d37ee2872 100644
> --- a/drivers/net/ethernet/cavium/thunder/thunder_bgx.c
> +++ b/drivers/net/ethernet/cavium/thunder/thunder_bgx.c
> @@ -90,7 +90,7 @@ static const struct pci_device_id bgx_id_table[] = {
>
> MODULE_AUTHOR("Cavium Inc");
> MODULE_DESCRIPTION("Cavium Thunder BGX/MAC Driver");
> -MODULE_LICENSE("GPL v2");
> +MODULE_LICENSE("GPL");
Is there any reason you changing the license here?
> MODULE_VERSION(DRV_VERSION);
> MODULE_DEVICE_TABLE(pci, bgx_id_table);
>
> @@ -174,10 +174,10 @@ static struct bgx *get_bgx(int node, int bgx_idx)
> }
>
> /* Return number of BGX present in HW */
> -unsigned bgx_get_map(int node)
> +unsigned int bgx_get_map(int node)
It seems to be unrelated change here, is the changing related to the
problem you are fixing?
> {
> int i;
> - unsigned map = 0;
> + unsigned int map = 0;
Same here.
>
> for (i = 0; i < max_bgx_per_node; i++) {
> if (bgx_vnic[(node * max_bgx_per_node) + i])
> @@ -600,9 +600,9 @@ static void bgx_lmac_handler(struct net_device *netdev)
> link_changed = -1;
>
> if (phydev->link &&
> - (lmac->last_duplex != phydev->duplex ||
> - lmac->last_link != phydev->link ||
> - lmac->last_speed != phydev->speed)) {
> + (lmac->last_duplex != phydev->duplex ||
> + lmac->last_link != phydev->link ||
> + lmac->last_speed != phydev->speed)) {
Same here.
> link_changed = 1;
> }
>
> @@ -783,7 +783,7 @@ static int bgx_lmac_xaui_init(struct bgx *bgx, struct lmac *lmac)
> bgx_reg_write(bgx, lmacid, BGX_SPUX_BR_PMD_LD_REP, 0x00);
> /* training enable */
> bgx_reg_modify(bgx, lmacid,
> - BGX_SPUX_BR_PMD_CRTL, SPU_PMD_CRTL_TRAIN_EN);
> + BGX_SPUX_BR_PMD_CRTL, SPU_PMD_CRTL_TRAIN_EN);
Same here.
Please make sure it only contain change related to fixing the
problem.
prev parent reply other threads:[~2023-06-13 12:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-13 12:38 Wang Ming
2023-06-13 12:52 ` Yunsheng Lin [this message]
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=4aa86edd-5526-929d-8576-9d2b6f828eb0@huawei.com \
--to=linyunsheng@huawei.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=kuba@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=machel@vivo.com \
--cc=netdev@vger.kernel.org \
--cc=opensource.kernel@vivo.com \
--cc=pabeni@redhat.com \
--cc=sgoutham@marvell.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 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®