From patchwork Wed Aug 19 12:32:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lukasz Stelmach X-Patchwork-Id: 11723893 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4BAD3739 for ; Wed, 19 Aug 2020 12:33:24 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2452E206FA for ; Wed, 19 Aug 2020 12:33:24 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="gZPTd52G"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="bxCTm3k0" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2452E206FA Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=samsung.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:References:MIME-Version:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=bIYZ9PIGblfehI+cSzy85AtKpxMunuYKvEVo+un6OQA=; b=gZPTd52GF7CnCqdp2UyPg+w3g SpUKh82DTK850IgVpUAP1MlY7WKMMIPiGpuvlKsIV1YU8Xv1OUGKCUFbasTHyHf9o+kn1x8k9f+oZ paUEDB6hV0a39DQAOWuZVdHTV8QC3M9YciCcSo5aFaLhFAWs+FWZSBZro46YuRu1dJCzAgUEnyzXa T7+CfEbgO4RH7DbLSA0gEZTXRfx603vuF5ihBNZWanLIzfggDSwMoWD5eloNhr7DcLux82fhzx54S HEVXfKrVHXgFgxj1WB4j9oD8898ZWmyPBy7VrgspWh50HaA5iacMtzWFDZfcTtGJNxMVvIYiYu6Pq g1AbJPglA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1k8NHD-00071V-Cr; Wed, 19 Aug 2020 12:33:11 +0000 Received: from mailout1.w1.samsung.com ([210.118.77.11]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1k8NGa-0006oM-KU for linux-arm-kernel@lists.infradead.org; Wed, 19 Aug 2020 12:32:34 +0000 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20200819123229euoutp01b1346fa66fed9c5bc9cf4868ebaba992~sq1TrSmx72728227282euoutp01e for ; Wed, 19 Aug 2020 12:32:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20200819123229euoutp01b1346fa66fed9c5bc9cf4868ebaba992~sq1TrSmx72728227282euoutp01e DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1597840349; bh=sHz9XIY28jBa5tlEBali0qZr+Ofu2cstTm1SGZTXsMk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bxCTm3k0T82k+fCObXI9KlJxngC08Oa9L8Cq62528ObjBGd6EqnF2Qir8I0WV0o9n DFVca07XDsAVYbl3/sZu1lRHl/kF2hekmO+7xKI0cXMP83NPk6IG/ZaFm0QSxW8Qmg PJ3iH95vQeMEqKGvUS5ZVHiiAe6PQw5/VLH92Csg= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20200819123228eucas1p263fd2b27c771539cf3fd84fe09db450e~sq1TaENCJ1280312803eucas1p2Q; Wed, 19 Aug 2020 12:32:28 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 32.D3.06318.CDB1D3F5; Wed, 19 Aug 2020 13:32:28 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20200819123228eucas1p19ac7fc04dec52c733ab9c770e91f6ace~sq1THztZr1042010420eucas1p1_; Wed, 19 Aug 2020 12:32:28 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20200819123228eusmtrp20cd5e853d123e833030f5e74dfc6259a~sq1THNPmW2933429334eusmtrp2T; Wed, 19 Aug 2020 12:32:28 +0000 (GMT) X-AuditID: cbfec7f5-371ff700000018ae-c8-5f3d1bdcadd6 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id F4.DF.06314.CDB1D3F5; Wed, 19 Aug 2020 13:32:28 +0100 (BST) Received: from localhost (unknown [106.120.51.46]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200819123228eusmtip20ea267b41195af5a976803de1184e354~sq1S1gVLk0167401674eusmtip2X; Wed, 19 Aug 2020 12:32:28 +0000 (GMT) From: =?utf-8?q?=C5=81ukasz_Stelmach?= To: Kukjin Kim , Krzysztof Kozlowski , Andi Shyti , Mark Brown , linux-spi@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 7/8] spi: spi-s3c64xx: Increase transfer timeout Date: Wed, 19 Aug 2020 14:32:07 +0200 Message-Id: <20200819123208.12337-8-l.stelmach@samsung.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200819123208.12337-1-l.stelmach@samsung.com> MIME-Version: 1.0 Organization: Samsung R&D Institute Poland X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrIKsWRmVeSWpSXmKPExsWy7djPc7p3pG3jDb63a1ss/vGcyWLjjPWs FlMfPmGz6H/8mtni/PkN7BY3D61gtNj0+BqrxeVdc9gsZpzfx2TR+PEmu8XaI3fZHbg9ri/5 xOyxaVUnm8fmJfUefVtWMXp83iQXwBrFZZOSmpNZllqkb5fAlfHkywu2gka2it+fbrI0MH5h 6WLk5JAQMJF4/3AyUxcjF4eQwApGiZ3rHzBCOF8YJf4sPsoG4XxmlFj88SM7TMu/cxvZQGwh geWMEi/nS0MUPWeUuPduHSNIgk3AUaJ/6QlWkISIwAQmiYfn3oB1MAuUSvTsPARmCws4SGy/ 2A7WwCKgKtF9aC0TiM0rYC2xv28KK8Q2eYn25dvB6jkFbCQe/prCBlEjKHFy5hOwJ/gFtCTW NF1ngZgvL9G8dTYzyGIJgXPsErce3WWDGOQisfb5LyYIW1ji1fEtUO/ISPzfOR8ozgFk10tM nmQG0dvDKLFtzg9oKFlL3Dn3iw2khllAU2L9Ln2IsKPE6uNt7BCtfBI33gpCnMAnMWnbdGaI MK9ER5sQRLWKxLr+PVADpSR6X61gnMCoNAvJM7OQPDALYdcCRuZVjOKppcW56anFxnmp5XrF ibnFpXnpesn5uZsYgQnp9L/jX3cw7vuTdIhRgINRiYe34px1vBBrYllxZe4hRgkOZiURXqez p+OEeFMSK6tSi/Lji0pzUosPMUpzsCiJ8xovehkrJJCeWJKanZpakFoEk2Xi4JRqYDSuY/74 MsK50XHj4/rEiScPTTz1hUnt1Ip13ttexj9793x5iNPpuKuPxI/8Sbl05OwJP49Tb//UdFRM Wdi7S4N/WbXYMakU42n5JZvUZ9x/p8C9siegKybJc8auVWaZDG6MMhMT2VSTWFlKuCMuqW9Z c+Tftr+MX9hS15xsunm9tONiiMs+9T4lluKMREMt5qLiRADLkjr6RAMAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrEIsWRmVeSWpSXmKPExsVy+t/xe7p3pG3jDbpvC1ks/vGcyWLjjPWs FlMfPmGz6H/8mtni/PkN7BY3D61gtNj0+BqrxeVdc9gsZpzfx2TR+PEmu8XaI3fZHbg9ri/5 xOyxaVUnm8fmJfUefVtWMXp83iQXwBqlZ1OUX1qSqpCRX1xiqxRtaGGkZ2hpoWdkYqlnaGwe a2VkqqRvZ5OSmpNZllqkb5egl/Hkywu2gka2it+fbrI0MH5h6WLk5JAQMJH4d24jWxcjF4eQ wFJGiQc/pgA5HEAJKYmVc9MhaoQl/lzrgqp5yijxetlpsGY2AUeJ/qUnWEESIgIzmCSe3JjM CpJgFiiXuDTrOTuILSzgILH9YjsjiM0ioCrRfWgtE4jNK2Atsb9vCivEBnmJ9uXb2UBsTgEb iYe/poDZQkA1XYsXQtULSpyc+YQF5DhmAXWJ9fOEQML8AloSa5qus0CslZdo3jqbeQKj0Cwk HbMQOmYhqVrAyLyKUSS1tDg3PbfYUK84Mbe4NC9dLzk/dxMjMP62Hfu5eQfjpY3BhxgFOBiV eHgrzlnHC7EmlhVX5h5ilOBgVhLhdTp7Ok6INyWxsiq1KD++qDQntfgQoynQmxOZpUST84Gp Ia8k3tDU0NzC0tDc2NzYzEJJnLdD4GCMkEB6YklqdmpqQWoRTB8TB6dUA6Pgjlt3nF1qr/Gc XuL9ZpFSgvoy38Lmxxb/tywv3tFoqHs10aJy1ePnfos9VgivfmYbte3CuqU5tdJSXAxfuGaF Vjx1fZZzMPabpbJYq9qKrk1xV5PLdXW9t/M++5i+6eb67Tt1ZYN/lvJq/5tnwOZh/m1ey53l XhLibzYvaPQ/+f38Yvs5UaZKLMUZiYZazEXFiQBW0daz1QIAAA== X-CMS-MailID: 20200819123228eucas1p19ac7fc04dec52c733ab9c770e91f6ace X-Msg-Generator: CA X-RootMTR: 20200819123228eucas1p19ac7fc04dec52c733ab9c770e91f6ace X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200819123228eucas1p19ac7fc04dec52c733ab9c770e91f6ace References: <20200819123208.12337-1-l.stelmach@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200819_083232_846874_1A399260 X-CRM114-Status: GOOD ( 14.98 ) X-Spam-Score: -5.2 (-----) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-5.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [210.118.77.11 listed in wl.mailspike.net] -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at https://www.dnswl.org/, high trust [210.118.77.11 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders -0.0 DKIMWL_WL_HIGH DKIMwl.org - Whitelisted High sender X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: b.zolnierkie@samsung.com, =?utf-8?q?=C5=81ukasz_Stelmach?= , m.szyprowski@samsung.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Signed-off-by: Ɓukasz Stelmach --- drivers/spi/spi-s3c64xx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c index 27d77600a820..27db1e0f6f32 100644 --- a/drivers/spi/spi-s3c64xx.c +++ b/drivers/spi/spi-s3c64xx.c @@ -464,7 +464,8 @@ static int s3c64xx_wait_for_dma(struct s3c64xx_spi_driver_data *sdd, /* millisecs to xfer 'len' bytes @ 'cur_speed' */ ms = xfer->len * 8 * 1000 / sdd->cur_speed; - ms += 10; /* some tolerance */ + ms = (ms * 10) + 30; /* some tolerance */ + ms = max(ms, 100); /* minimum timeout */ val = msecs_to_jiffies(ms) + 10; val = wait_for_completion_timeout(&sdd->xfer_completion, val);