[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <c4d4f09b-42c2-90b3-65b2-4b493262c649@denx.de>
Date: Thu, 8 Feb 2018 22:44:58 +0100
From: Marek Vasut <marex@...x.de>
To: Marc Kleine-Budde <mkl@...gutronix.de>,
Heiko Schocher <hs@...x.de>, linux-can@...r.kernel.org
Cc: Markus Marb <markus@...b.org>, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org,
Wolfgang Grandegger <wg@...ndegger.com>
Subject: Re: [PATCH v2 1/2] net, can, ifi: fix "write buffer full" error
On 02/08/2018 10:33 PM, Marc Kleine-Budde wrote:
> On 02/08/2018 08:22 PM, Marek Vasut wrote:
>> On 02/08/2018 03:46 PM, Marc Kleine-Budde wrote:
>>> On 02/08/2018 07:47 AM, Heiko Schocher wrote:
>>>> the driver reads in the ISR first the IRQpending register,
>>>> and clears after that in a write *all* bits in it.
>>>>
>>>> It could happen that the isr register raise bits between
>>>> this 2 register accesses, which leads in lost bits ...
>>>>
>>>> In case it clears "TX message sent successfully", the driver
>>>> never sends any Tx data, and buffers to userspace run over.
>>>>
>>>> Fixed this:
>>>> clear only the bits in the IRQpending register, the
>>>> driver had read.
>>>>
>>>> Signed-off-by: Heiko Schocher <hs@...x.de>
>>>> Reviewed-by: Marek Vasut <marex@...x.de>
>>>
>>> Applied both to linux-can.
>>
>> Can you also apply them to stable, so they get into 4.9.x etc ?
>
> I've already added stable on Cc, so they will be picked up by the stable
> maintainers.
Thanks!
--
Best regards,
Marek Vasut
Powered by blists - more mailing lists