]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
thunderbolt: Wait a bit longer for ICM to authenticate the active NVM
authorMika Westerberg <mika.westerberg@linux.intel.com>
Wed, 28 Mar 2018 12:31:13 +0000 (20:31 +0800)
committerSeth Forshee <seth.forshee@canonical.com>
Wed, 28 Mar 2018 17:44:46 +0000 (12:44 -0500)
commit3e315e54d5b4eaed9272bb81a3e24645d31a7592
tree63bf2a3338df791aef358b02ff848f32d11390e7
parent289b62e3095d256c8406f661baed3679a8df155d
thunderbolt: Wait a bit longer for ICM to authenticate the active NVM

BugLink: http://bugs.launchpad.net/bugs/1730775
Sometimes during cold boot ICM has not yet authenticated the active NVM
image leading to timeout and failing the driver probe. Allow ICM to take
some more time and increase the timeout to 3 seconds before we give up.

While there fix icm_firmware_init() to return the real error code
without overwriting it with -ENODEV.

Fixes: f67cf491175a ("thunderbolt: Add support for Internal Connection Manager (ICM)")
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Cc: stable@vger.kernel.org
(cherry picked from commit e4be8c9b6a512e274cb6bbac4ac869d73880a8b3 linux-next)
Signed-off-by: Anthony Wong <anthony.wong@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/thunderbolt/icm.c