netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] net: phy: harmonize phy_id{,_mask} data type
@ 2017-11-21  9:52 Richard Leitner
  2017-11-21 14:46 ` Andrew Lunn
  2017-11-21 17:48 ` Florian Fainelli
  0 siblings, 2 replies; 3+ messages in thread
From: Richard Leitner @ 2017-11-21  9:52 UTC (permalink / raw)
  To: f.fainelli, andrew; +Cc: netdev, linux-kernel, richard.leitner

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>
---
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;
-- 
2.11.0

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

* Re: [PATCH] net: phy: harmonize phy_id{,_mask} data type
  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
  1 sibling, 0 replies; 3+ messages in thread
From: Andrew Lunn @ 2017-11-21 14:46 UTC (permalink / raw)
  To: Richard Leitner; +Cc: f.fainelli, netdev, linux-kernel, richard.leitner

On Tue, Nov 21, 2017 at 10:52:56AM +0100, 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>

Hi Richard

netdev is closed at the moment for patches, due to the merge window
being open. Please repost next week.

Reviewed-by: Andrew Lunn <andrew@lunn.ch>

    Andrew

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

* Re: [PATCH] net: phy: harmonize phy_id{,_mask} data type
  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
  1 sibling, 0 replies; 3+ messages in thread
From: Florian Fainelli @ 2017-11-21 17:48 UTC (permalink / raw)
  To: Richard Leitner, andrew; +Cc: netdev, linux-kernel, richard.leitner

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

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

end of thread, other threads:[~2017-11-21 17:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).