2019-01-17 07:06:38

by Jae Hyun Yoo

[permalink] [raw]
Subject: [PATCH] i2c: aspeed: Remove hard-coded bus timeout value setting

This commit removes hard-coded bus timeout value setting so that
it can be set by i2c-core-base.

Signed-off-by: Jae Hyun Yoo <[email protected]>
Reviewed-by: Joel Stanley <[email protected]>
Reviewed-by: Brendan Higgins <[email protected]>
---
drivers/i2c/busses/i2c-aspeed.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/drivers/i2c/busses/i2c-aspeed.c b/drivers/i2c/busses/i2c-aspeed.c
index 8dc9161ced38..833b6b6a4c7e 100644
--- a/drivers/i2c/busses/i2c-aspeed.c
+++ b/drivers/i2c/busses/i2c-aspeed.c
@@ -930,7 +930,6 @@ static int aspeed_i2c_probe_bus(struct platform_device *pdev)
init_completion(&bus->cmd_complete);
bus->adap.owner = THIS_MODULE;
bus->adap.retries = 0;
- bus->adap.timeout = 5 * HZ;
bus->adap.algo = &aspeed_i2c_algo;
bus->adap.dev.parent = &pdev->dev;
bus->adap.dev.of_node = pdev->dev.of_node;
--
2.20.1



2019-01-22 23:21:21

by Wolfram Sang

[permalink] [raw]
Subject: Re: [PATCH] i2c: aspeed: Remove hard-coded bus timeout value setting

On Wed, Jan 16, 2019 at 11:39:43AM -0800, Jae Hyun Yoo wrote:
> This commit removes hard-coded bus timeout value setting so that
> it can be set by i2c-core-base.
>
> Signed-off-by: Jae Hyun Yoo <[email protected]>
> Reviewed-by: Joel Stanley <[email protected]>
> Reviewed-by: Brendan Higgins <[email protected]>

Applied to for-next, thanks!


Attachments:
(No filename) (372.00 B)
signature.asc (849.00 B)
Download all attachments