netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] net: stmicro: fix LS field mask in EEE configuration
@ 2017-01-20 16:00 Joao Pinto
  2017-01-22 21:49 ` David Miller
  2017-01-23  5:31 ` Rayagond Kokatanur
  0 siblings, 2 replies; 4+ messages in thread
From: Joao Pinto @ 2017-01-20 16:00 UTC (permalink / raw)
  To: davem; +Cc: rayagond, netdev, Joao Pinto

This patch fixes the LS mask when setting EEE timer.
LS field is 10 bits long and not 11 as currently.

Signed-off-by: Joao Pinto <jpinto@synopsys.com>
Reported-By: Rayagond Kokatanur <rayagond@vayavyalabs.com>
---
 drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c b/drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c
index 834f40f..202216c 100644
--- a/drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c
+++ b/drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c
@@ -184,7 +184,7 @@ static void dwmac4_set_eee_pls(struct mac_device_info *hw, int link)
 static void dwmac4_set_eee_timer(struct mac_device_info *hw, int ls, int tw)
 {
 	void __iomem *ioaddr = hw->pcsr;
-	int value = ((tw & 0xffff)) | ((ls & 0x7ff) << 16);
+	int value = ((tw & 0xffff)) | ((ls & 0x3ff) << 16);
 
 	/* Program the timers in the LPI timer control register:
 	 * LS: minimum time (ms) for which the link
-- 
2.9.3

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

* Re: [PATCH] net: stmicro: fix LS field mask in EEE configuration
  2017-01-20 16:00 [PATCH] net: stmicro: fix LS field mask in EEE configuration Joao Pinto
@ 2017-01-22 21:49 ` David Miller
  2017-01-23 10:17   ` Joao Pinto
  2017-01-23  5:31 ` Rayagond Kokatanur
  1 sibling, 1 reply; 4+ messages in thread
From: David Miller @ 2017-01-22 21:49 UTC (permalink / raw)
  To: Joao.Pinto; +Cc: rayagond, netdev

From: Joao Pinto <Joao.Pinto@synopsys.com>
Date: Fri, 20 Jan 2017 16:00:26 +0000

> This patch fixes the LS mask when setting EEE timer.
> LS field is 10 bits long and not 11 as currently.
> 
> Signed-off-by: Joao Pinto <jpinto@synopsys.com>
> Reported-By: Rayagond Kokatanur <rayagond@vayavyalabs.com>

Please indicate the appropriate target tree of your patch in the
subject line just like all other developers on this list do, don't
make me guess.

This time I figured out that this is meant for the net-next tree,
but I will not guess next time, I will just reject your patch
instead.

Thanks.

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

* Re: [PATCH] net: stmicro: fix LS field mask in EEE configuration
  2017-01-20 16:00 [PATCH] net: stmicro: fix LS field mask in EEE configuration Joao Pinto
  2017-01-22 21:49 ` David Miller
@ 2017-01-23  5:31 ` Rayagond Kokatanur
  1 sibling, 0 replies; 4+ messages in thread
From: Rayagond Kokatanur @ 2017-01-23  5:31 UTC (permalink / raw)
  To: Joao Pinto; +Cc: David Miller, netdev

Acked-by:Rayagond Kokatanur <rayagond@vayavyalabs.com>

On Fri, Jan 20, 2017 at 9:30 PM, Joao Pinto <Joao.Pinto@synopsys.com> wrote:
> This patch fixes the LS mask when setting EEE timer.
> LS field is 10 bits long and not 11 as currently.
>
> Signed-off-by: Joao Pinto <jpinto@synopsys.com>
> Reported-By: Rayagond Kokatanur <rayagond@vayavyalabs.com>
> ---
>  drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c b/drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c
> index 834f40f..202216c 100644
> --- a/drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c
> +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c
> @@ -184,7 +184,7 @@ static void dwmac4_set_eee_pls(struct mac_device_info *hw, int link)
>  static void dwmac4_set_eee_timer(struct mac_device_info *hw, int ls, int tw)
>  {
>         void __iomem *ioaddr = hw->pcsr;
> -       int value = ((tw & 0xffff)) | ((ls & 0x7ff) << 16);
> +       int value = ((tw & 0xffff)) | ((ls & 0x3ff) << 16);
>
>         /* Program the timers in the LPI timer control register:
>          * LS: minimum time (ms) for which the link
> --
> 2.9.3
>



-- 
wwr
Rayagond

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

* Re: [PATCH] net: stmicro: fix LS field mask in EEE configuration
  2017-01-22 21:49 ` David Miller
@ 2017-01-23 10:17   ` Joao Pinto
  0 siblings, 0 replies; 4+ messages in thread
From: Joao Pinto @ 2017-01-23 10:17 UTC (permalink / raw)
  To: David Miller, Joao.Pinto; +Cc: rayagond, netdev

Hi David,

Às 9:49 PM de 1/22/2017, David Miller escreveu:
> From: Joao Pinto <Joao.Pinto@synopsys.com>
> Date: Fri, 20 Jan 2017 16:00:26 +0000
> 
>> This patch fixes the LS mask when setting EEE timer.
>> LS field is 10 bits long and not 11 as currently.
>>
>> Signed-off-by: Joao Pinto <jpinto@synopsys.com>
>> Reported-By: Rayagond Kokatanur <rayagond@vayavyalabs.com>
> 
> Please indicate the appropriate target tree of your patch in the
> subject line just like all other developers on this list do, don't
> make me guess.

Sorry, I will follow that rule also of course.

> 
> This time I figured out that this is meant for the net-next tree,
> but I will not guess next time, I will just reject your patch
> instead.
> 
> Thanks.
> 

Thanks.
Joao

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

end of thread, other threads:[~2017-01-23 10:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-20 16:00 [PATCH] net: stmicro: fix LS field mask in EEE configuration Joao Pinto
2017-01-22 21:49 ` David Miller
2017-01-23 10:17   ` Joao Pinto
2017-01-23  5:31 ` Rayagond Kokatanur

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