From: Jens Taprogge Date: Tue, 11 Sep 2012 11:35:02 +0000 (+0200) Subject: Staging: ipack: reset previous timeouts during device registration. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8a3ae16e60fb78e0bf062c243ffba5575b64a412;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git Staging: ipack: reset previous timeouts during device registration. Resetting the previous timeout we avoid to read the timeout status register and see timeout errors that don't correspond to the present state of the device. Signed-off-by: Jens Taprogge Signed-off-by: Samuel Iglesias Gonsálvez Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/ipack/ipack.c b/drivers/staging/ipack/ipack.c index e2f819ca49c6..08b122dfee7c 100644 --- a/drivers/staging/ipack/ipack.c +++ b/drivers/staging/ipack/ipack.c @@ -379,6 +379,8 @@ struct ipack_device *ipack_device_register(struct ipack_bus_device *bus, if (bus->ops->set_clockrate(dev, 8)) dev_warn(&dev->dev, "failed to switch to 8 MHz operation for reading of device ID.\n"); + if (bus->ops->reset_timeout(dev)) + dev_warn(&dev->dev, "failed to reset potential timeout."); ret = ipack_device_read_id(dev); if (ret < 0) {