[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAGVrzcbMZxmWg=TWHBH7fMe4EX7dngkBxbjuCKp=J2ZxcdmLVg@mail.gmail.com>
Date: Tue, 5 Apr 2016 16:20:56 -0700
From: Florian Fainelli <f.fainelli@...il.com>
To: Petri Gynther <pgynther@...gle.com>
Cc: netdev <netdev@...r.kernel.org>,
David Miller <davem@...emloft.net>, opendmb@...il.com,
Jaedon Shin <jaedon.shin@...il.com>
Subject: Re: [RESEND PATCH net-next v2 3/3] net: bcmgenet: cleanup for dmadesc_set()
2016-04-05 14:00 GMT-07:00 Petri Gynther <pgynther@...gle.com>:
> dmadesc_set() is used for setting the Tx buffer DMA address, length,
> and status bits on a Tx ring descriptor when a frame is being Tx'ed.
>
> Always set the Tx buffer DMA address first, before updating the length
> and status bits, i.e. giving the Tx descriptor to the hardware.
>
> The reason this is a cleanup rather than a fix is that the hardware
> won't transmit anything from a Tx ring until the TDMA producer index
> has been incremented. As long as the dmadesc_set() writes complete
> before the TDMA producer index write, life is good.
>
> Signed-off-by: Petri Gynther <pgynther@...gle.com>
Acked-by: Florian Fainelli <f.fainelli@...il.com>
--
Florian
Powered by blists - more mailing lists