Re: [PATCH 1/2] i2c: altera: Fix race between xfer_msg and isr thread

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, May 08, 2020 at 10:12:48PM +0900, Atsushi Nemoto wrote:
> Use a mutex to protect access to idev->msg_len, idev->buf, etc. which
> are modified by both altr_i2c_xfer_msg() and altr_i2c_isr().
> 
> Signed-off-by: Atsushi Nemoto <atsushi.nemoto@xxxxxxxxxx>
> Acked-by: Thor Thayer <thor.thayer@xxxxxxxxxxxxxxx>

Applied to for-current, thanks! I added the following snipplet to the
commit message:

    This is the minimal fix for easy backporting. A cleanup to remove the
    spinlock will be added later.

I will give Thor some more days to review patch 2/2. It looks good to
me, though.

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux