From patchwork Thu Nov 30 14:30:05 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrzej Hajda X-Patchwork-Id: 10085009 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id DFF166035E for ; Thu, 30 Nov 2017 14:30:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C5C2F28A8A for ; Thu, 30 Nov 2017 14:30:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B8EB529E56; Thu, 30 Nov 2017 14:30:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 916C429E54 for ; Thu, 30 Nov 2017 14:30:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752742AbdK3OaY (ORCPT ); Thu, 30 Nov 2017 09:30:24 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:36135 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751443AbdK3OaV (ORCPT ); Thu, 30 Nov 2017 09:30:21 -0500 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20171130143019euoutp028cfe9bab20cf0beda18a672d483a43fb~743uBGDs72280322803euoutp027; Thu, 30 Nov 2017 14:30:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20171130143019euoutp028cfe9bab20cf0beda18a672d483a43fb~743uBGDs72280322803euoutp027 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1512052219; bh=+HI4CA76yjX3uDRG07ZHCYxkFjbUkRTLxNYqWYJGex0=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=n0967IOj0Mzpu05vbSgu0ypVhCeWuTwua4pNiGA4y8PbG9Ot60wUZrZeHggcBvTGq LG6IueluW62OKpL0Bw+bP2vBwDbWHOPtqLXgLq6DB7ebfvjf3JwyvRxrdR8WX/sa57 tPFDxRe3vb3DVq07IDQv41lS6aagZYCHNFrPTUlc= Received: from eusmges2.samsung.com (unknown [203.254.199.241]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20171130143018eucas1p2e4ecd357bbc659f03b3faea6034d83af~743tRnWUB1203512035eucas1p2U; Thu, 30 Nov 2017 14:30:18 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2.samsung.com (EUCPMTA) with SMTP id A2.7E.12907.AF5102A5; Thu, 30 Nov 2017 14:30:18 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20171130143017eucas1p2f68094c72e4559e1a16cf334c3200950~743sm24FZ2584925849eucas1p2X; Thu, 30 Nov 2017 14:30:17 +0000 (GMT) X-AuditID: cbfec7f1-f793a6d00000326b-fb-5a2015fab867 Received: from eusync3.samsung.com ( [203.254.199.213]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id F7.46.20118.9F5102A5; Thu, 30 Nov 2017 14:30:17 +0000 (GMT) Received: from AMDC2768.DIGITAL.local ([106.120.43.17]) by eusync3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0P08005A4IYGHDA0@eusync3.samsung.com>; Thu, 30 Nov 2017 14:30:17 +0000 (GMT) From: Andrzej Hajda To: Wolfram Sang , Andi Shyti Cc: Andrzej Hajda , Bartlomiej Zolnierkiewicz , Marek Szyprowski , linux-i2c@vger.kernel.org (open list:I2C SUBSYSTEM), linux-samsung-soc@vger.kernel.org (moderated list:ARM/SAMSUNG EXYNOS ARM ARCHITECTURES) Subject: [PATCH 1/3] i2c: exynos5: change internal transmission timeout to 100ms Date: Thu, 30 Nov 2017 15:30:05 +0100 Message-id: <20171130143007.30258-2-a.hajda@samsung.com> X-Mailer: git-send-email 2.15.0 In-reply-to: <20171130143007.30258-1-a.hajda@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrCIsWRmVeSWpSXmKPExsWy7djPc7q/RBWiDFpuSlncWneO1WL7kWes FhtnrGe16Pj7hdFixvl9TBZrj9xlt1h5YhazA7tH35ZVjB4nTz1h8fi8SS6AOYrLJiU1J7Ms tUjfLoErY9bVD8wFz9kqni+YwtbA+Jq1i5GTQ0LAROLC6i42CFtM4sK99UA2F4eQwFJGie9v rzKDJIQEPjNKvLpRBtPQffsXI0TRMkaJOZu+MEM4/xklWq6dYAGpYhPQlPi7+SbYWBEBT4lb n1tYQIqYBRYwSby43QOWEBYIkni/6D0jiM0ioCpxZdN3MJtXwELiw80ZTBDr5CUWf98JVs8p YCmxafYisEESAo1sEg+anjFDFLlInFj8ix3CFpZ4dXwLlC0jcXlyN1RDN6PEp/4T7BDOFEaJ fx9mQHVbSxw+fhEcHMwCfBKTtk0HinMAxXklOtqEIEo8JLYu/8QCEXaU+NSrBAmXHkaJs8di JzBKL2BkWMUoklpanJueWmykV5yYW1yal66XnJ+7iREYl6f/Hf+4g/H9CatDjAIcjEo8vBaC ClFCrIllxZW5hxglOJiVRHiVT8hHCfGmJFZWpRblxxeV5qQWH2KU5mBREue1jWqLFBJITyxJ zU5NLUgtgskycXBKNTCGm39apsSSZ+TepDTv8ImV0eyNK4ymCPLPmTBfsTtC643M1/k9Mnff 3T5vGVBtyf/4D/eJrXqacQyr5Nz2Nk66HxhRayJ269DBLdG8YlndvBsKomv+3jCZtmTn7/iJ crObToS33JnP92OCbcp34Tc3Jx4pjj3479ybz+f+ZxRNYWBeXrZr8/kjSizFGYmGWsxFxYkA ApdRDccCAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupkluLIzCtJLcpLzFFi42I5/e/4Vd2fogpRBu/fW1ncWneO1WL7kWes FhtnrGe16Pj7hdFixvl9TBZrj9xlt1h5YhazA7tH35ZVjB4nTz1h8fi8SS6AOYrLJiU1J7Ms tUjfLoErY9bVD8wFz9kqni+YwtbA+Jq1i5GTQ0LARKL79i9GCFtM4sK99WxdjFwcQgJLGCW6 N3xihnAamSQunX4M1sEmoCnxd/NNNhBbRMBT4tbnFhaQImaBRUwSZ7v2soMkhAUCJO70bmQB sVkEVCWubPoOtoJXwELiw80ZTBDr5CUWf98JNohTwFJi0+xFQPUcQNssJF6+FpzAyLuAkWEV o0hqaXFuem6xkV5xYm5xaV66XnJ+7iZGYABtO/Zzyw7GrnfBhxgFOBiVeHgtBBWihFgTy4or cw8xSnAwK4nwKp+QjxLiTUmsrEotyo8vKs1JLT7EKM3BoiTO27tndaSQQHpiSWp2ampBahFM lomDU6qBsbN8icrcBUz3z/hmuGS5rE+7+dss2GzPj8qWlmqGWftFJO3Vz3tX/bBiXyaqK1Te tHrLl+0eG1YVcHzReOmcv2uZ0Ty7jQ+OFtnrzijWunL8i9fVQvPU3N38wg8djzoqOraFxTfO WLGedaL+J9eDZYbfQuWKnR9/i12ium1X5/+1ltZf9r7aqcRSnJFoqMVcVJwIANSPCq0cAgAA X-CMS-MailID: 20171130143017eucas1p2f68094c72e4559e1a16cf334c3200950 X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20171130143017eucas1p2f68094c72e4559e1a16cf334c3200950 X-RootMTR: 20171130143017eucas1p2f68094c72e4559e1a16cf334c3200950 References: <20171130143007.30258-1-a.hajda@samsung.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Exynos-I2C uses default timeout of 1 second for the whole transaction, including re-transmissions due to arbitration lost errors (-EAGAIN). To allow re-transmissions driver's internal timeout should be significantly lower, 100ms seems to be good candidate. Signed-off-by: Andrzej Hajda --- drivers/i2c/busses/i2c-exynos5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-exynos5.c b/drivers/i2c/busses/i2c-exynos5.c index 3855e0b11877..b02428498f6d 100644 --- a/drivers/i2c/busses/i2c-exynos5.c +++ b/drivers/i2c/busses/i2c-exynos5.c @@ -170,7 +170,7 @@ #define HSI2C_HS_TX_CLOCK 1000000 #define HSI2C_FS_TX_CLOCK 100000 -#define EXYNOS5_I2C_TIMEOUT (msecs_to_jiffies(1000)) +#define EXYNOS5_I2C_TIMEOUT (msecs_to_jiffies(100)) #define HSI2C_EXYNOS7 BIT(0)