• Nobuteru Hayashi's avatar
    spi/fsl-espi: Don't wait transaction completion forever · aa70e567
    Nobuteru Hayashi authored
    Because the eSPI driver uses wait_for_completion(), any stuck-able
    phenomenon at half-way transaction progress made worker task hang up.
    This phenomenon is perhaps caused by eSPI device errata which seems not
    to be published from vendor site yet.
    
    Anyway, we fix hang task by using fixed 2 seconds timeout
    that is our preferred value for eSPI maximum transaction size.
    
    It seems to be better that eSPI driver can detect this stuck and
    report error (EMSGSIZE) to the upper device driver because
    the upper device driver can decide to retry or recover.
    Signed-off-by: default avatarNobuteru Hayashi <hayashi.nbb@ncos.nec.co.jp>
    Signed-off-by: default avatarMark Brown <broonie@kernel.org>
    aa70e567
spi-fsl-espi.c 22.1 KB