From: Florian Fainelli <f.fainelli@gmail.com>
To: Richard Leitner <dev@g0hl1n.net>, andrew@lunn.ch
Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
richard.leitner@skidata.com
Subject: Re: [PATCH] net: phy: harmonize phy_id{,_mask} data type
Date: Tue, 21 Nov 2017 09:48:17 -0800 [thread overview]
Message-ID: <9525d5e5-a26e-79b8-dfc3-8f7d73250fd6@gmail.com> (raw)
In-Reply-To: <20171121095256.25507-1-dev@g0hl1n.net>
On 11/21/2017 01:52 AM, Richard Leitner wrote:
> From: Richard Leitner <richard.leitner@skidata.com>
>
> Previously phy_id was u32 and phy_id_mask was unsigned int. As the
> phy_id_mask defines the important bits of the phy_id (and is therefore
> the same size) these two variables should be the same data type.
>
> Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Thanks!
> ---
> This patch is extracted from the "net: ethernet: fec: fix refclk enable for SMSC LAN8710/20"
> patch series. This was done because this series will be reworked and
> rebased on not yet merged feature later on. For more details see:
> https://patchwork.ozlabs.org/cover/839468/
> ---
> include/linux/phy.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/include/linux/phy.h b/include/linux/phy.h
> index dc82a07cb4fd..e00fd9ce3bce 100644
> --- a/include/linux/phy.h
> +++ b/include/linux/phy.h
> @@ -509,7 +509,7 @@ struct phy_driver {
> struct mdio_driver_common mdiodrv;
> u32 phy_id;
> char *name;
> - unsigned int phy_id_mask;
> + u32 phy_id_mask;
> u32 features;
> u32 flags;
> const void *driver_data;
>
--
Florian
prev parent reply other threads:[~2017-11-21 17:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-21 9:52 [PATCH] net: phy: harmonize phy_id{,_mask} data type Richard Leitner
2017-11-21 14:46 ` Andrew Lunn
2017-11-21 17:48 ` Florian Fainelli [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=9525d5e5-a26e-79b8-dfc3-8f7d73250fd6@gmail.com \
--to=f.fainelli@gmail.com \
--cc=andrew@lunn.ch \
--cc=dev@g0hl1n.net \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=richard.leitner@skidata.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;
as well as URLs for NNTP newsgroup(s).