Re: [PATCH v2 1/2] i2c: designware: fix poll-after-enable regression

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

 



On Sat, Apr 28, 2018 at 04:56:06PM +0300, Alexander Monakov wrote:
> Not all revisions of DW I2C controller implement the enable status register.
> On platforms where that's the case (e.g. BG2CD and SPEAr ARM SoCs), waiting
> for enable will time out as reading the unimplemented register yields zero.
> 
> It was observed that reading the IC_ENABLE_STATUS register once suffices to
> avoid getting it stuck on Bay Trail hardware, so replace polling with one
> dummy read of the register.
> 
> Cc: Ben Gardner <gardner.ben@xxxxxxxxx>
> Cc: Jarkko Nikula <jarkko.nikula@xxxxxxxxxxxxxxx>
> Cc: Wolfram Sang <wsa@xxxxxxxxxxxxx>
> Fixes: fba4adbbf670 ("i2c: designware: must wait for enable")
> Tested-by: Ben Gardner <gardner.ben@xxxxxxxxx>
> Signed-off-by: Alexander Monakov <amonakov@xxxxxxxxx>

Applied to for-current, thanks!

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