Message ID | 20180417142954.5507-1-s.nawrocki@samsung.com (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show
Return-Path: <linux-samsung-soc-owner@kernel.org> 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 9E16560542 for <patchwork-linux-samsung-soc@patchwork.kernel.org>; Tue, 17 Apr 2018 14:30:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7441D28508 for <patchwork-linux-samsung-soc@patchwork.kernel.org>; Tue, 17 Apr 2018 14:30:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7279728528; Tue, 17 Apr 2018 14:30:33 +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=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, 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 DDDA028518 for <patchwork-linux-samsung-soc@patchwork.kernel.org>; Tue, 17 Apr 2018 14:30:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752848AbeDQOa0 (ORCPT <rfc822;patchwork-linux-samsung-soc@patchwork.kernel.org>); Tue, 17 Apr 2018 10:30:26 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:13894 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751927AbeDQOaY (ORCPT <rfc822;linux-samsung-soc@vger.kernel.org>); Tue, 17 Apr 2018 10:30:24 -0400 Received: from epcas2p3.samsung.com (unknown [182.195.41.55]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20180417143023epoutp049ca982d2e70dd7ec7c0651e6859fe935~mP5KnkNU42915629156epoutp04g; Tue, 17 Apr 2018 14:30:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20180417143023epoutp049ca982d2e70dd7ec7c0651e6859fe935~mP5KnkNU42915629156epoutp04g DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1523975423; bh=bx9hgERcBV5SprK/pXXDzFIf/Jb2ihcwsgqoH+aDjyI=; h=From:To:Cc:Subject:Date:References:From; b=vfqO1h0baBeNY6XfJ4FeTlMz2EU+uAvTubHoaPVy8GU2ZyDbGl2DWMzfAc8jHklEr uoB+bfsH0lwooJAdVSMsSRVuz0iVE17x/KQzCR+N5c6/RIlGe0YMDFbVpEZDOCgvOV iqIjlz/eiaGwCy2yT1j0dZN4e77qvqixGJvy/ByI= Received: from epsmges2p1.samsung.com (unknown [182.195.42.69]) by epcas2p4.samsung.com (KnoxPortal) with ESMTP id 20180417143022epcas2p430760b599a73d0f89b70df7af99ada31~mP5KcqcDc0847808478epcas2p4F; Tue, 17 Apr 2018 14:30:22 +0000 (GMT) Received: from epcas2p4.samsung.com ( [182.195.41.56]) by epsmges2p1.samsung.com (Symantec Messaging Gateway) with SMTP id 17.D7.04068.EF406DA5; Tue, 17 Apr 2018 23:30:22 +0900 (KST) Received: from epsmgms2p2new.samsung.com (unknown [182.195.42.143]) by epcas2p1.samsung.com (KnoxPortal) with ESMTP id 20180417143022epcas2p1185d48998a1659ce6580180ea6725607~mP5KADKtH0777007770epcas2p1Z; Tue, 17 Apr 2018 14:30:22 +0000 (GMT) X-AuditID: b6c32a45-6d3ff70000000fe4-9a-5ad604fed376 Received: from epmmp1.local.host ( [203.254.227.16]) by epsmgms2p2new.samsung.com (Symantec Messaging Gateway) with SMTP id E5.5E.03827.EF406DA5; Tue, 17 Apr 2018 23:30:22 +0900 (KST) Received: from AMDC3061.digital.local ([106.116.147.40]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0P7C0012A2Y8EI10@mmp1.samsung.com>; Tue, 17 Apr 2018 23:30:22 +0900 (KST) From: Sylwester Nawrocki <s.nawrocki@samsung.com> To: broonie@kernel.org Cc: andi@etezian.org, krzk@kernel.org, kgene@kernel.org, linux-spi@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, m.szyprowski@samsung.com, b.zolnierkie@samsung.com, Sylwester Nawrocki <s.nawrocki@samsung.com> Subject: [PATCH v2 1/8] spi: spi-s3c64xx: Do not ignore timeout errors in polling I/O mode Date: Tue, 17 Apr 2018 16:29:47 +0200 Message-id: <20180417142954.5507-1-s.nawrocki@samsung.com> X-Mailer: git-send-email 2.14.2 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrCIsWRmVeSWpSXmKPExsWy7bCmhe4/lmtRBr836Vss/vGcyWLjjPWs FlMfPmGz6H/8mtni/PkN7BabHl9jtZhxfh+TRePHm+wWa4/cZbc4/Kad1YHL4/qST8wem1Z1 snlsXlLv0bdlFaPH501yAaxRXDYpqTmZZalF+nYJXBnbbn9kLfjCVtG0eClbA+Md1i5GTg4J AROJPRuWMXYxcnEICexglOhfMpERJCEk8J1RYtZHTpiiB58/QhXtZpSYt+AIC4Tzi1Fi09pV 7CBVbAKGEr1H+8C6RQTEJG7P6WQGKWIWaGKSaH2wDmyfsECMxJ/FU8BsFgFVifaHS4EmcXDw ClhJPDyRBLFNXuL9gvtg2yQEetgkbt8+xARSIyHgIvGgXRaiRlji1fEt7BC2tMSzVRsZIexq ic62LnaI3hZGiT/TLrFBJKwlDh+/CLaXWYBPouPwX3aImbwSHW1CECUeEmfmTWWGsB0lzk1c yg4JiViJ+wcPMk1glFzAyLCKUSy1oDg3PbXYqMBQrzgxt7g0L10vOT93EyM4LrVcdzDOOOdz iFGAg1GJh1dix5UoIdbEsuLK3EOMEhzMSiK8Ox8DhXhTEiurUovy44tKc1KLDzFKc7AoifM2 +J6JEhJITyxJzU5NLUgtgskycXBKNTDOWlJ6QeD7++JFhXx/BSPlL55cHrKT3f60wrksFS4x NdPcAwKZITmPtaM/is52uLFQPzoyOP9xTM68qx1HXuxjnlvlbiEufrX6tcWs7wX+J70PJb1r 9ZLbJXM85KXit0M3T5TLzDJelsC2Mvc4v2yZMnPI377bgjNkr1rKX1Bkjf53rOyadJYSS3FG oqEWc1FxIgAJoe+ixwIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpiluLIzCtJLcpLzFFi42I5/e+xgO4/lmtRBo9ecVss/vGcyWLjjPWs FlMfPmGz6H/8mtni/PkN7BabHl9jtZhxfh+TRePHm+wWa4/cZbc4/Kad1YHL4/qST8wem1Z1 snlsXlLv0bdlFaPH501yAaxRXDYpqTmZZalF+nYJXBnbbn9kLfjCVtG0eClbA+Md1i5GTg4J AROJB58/MnYxcnEICexklFi8tpsJwvnFKHH71UYmkCo2AUOJ3qN9jCC2iICYxO05ncwgRcwC TUwS7z9/ZgZJCAvESPxZPAVsLIuAqkT7w6UsXYwcHLwCVhIPTyRBbJOXeL/gPuMERq4FjAyr GCVTC4pz03OLjQqM8lLL9YoTc4tL89L1kvNzNzECQ2bbYa3+HYyPl8QfYhTgYFTi4ZXYcSVK iDWxrLgy9xCjBAezkgjvzsdAId6UxMqq1KL8+KLSnNTiQ4zSHCxK4rz8+ccihQTSE0tSs1NT C1KLYLJMHJxSDYxz+pY5BzLeKVR2eRN/eWtP8K/pv+IT+f7dsCprjnneUK4obyRu0iz4LHvb ts7JjJ8a9IrOVW3jZl8ZeqVLbn/qdMbrxwy/ZD2aqPtbdofn4wKfJaHyD5Pv/lBrMHTdu/3C v54td15MfsL6/fTSTodbSq/uRvVWV7Ofdo7mDjGbdcskaY6pk5YSS3FGoqEWc1FxIgAYnddx FQIAAA== X-CMS-MailID: 20180417143022epcas2p1185d48998a1659ce6580180ea6725607 X-Msg-Generator: CA CMS-TYPE: 102P X-CMS-RootMailID: 20180417143022epcas2p1185d48998a1659ce6580180ea6725607 X-RootMTR: 20180417143022epcas2p1185d48998a1659ce6580180ea6725607 References: <CGME20180417143022epcas2p1185d48998a1659ce6580180ea6725607@epcas2p1.samsung.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: <linux-samsung-soc.vger.kernel.org> X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c index baa3a9fa2638..9a990bc3138a 100644 --- a/drivers/spi/spi-s3c64xx.c +++ b/drivers/spi/spi-s3c64xx.c @@ -505,6 +505,8 @@ static int wait_for_pio(struct s3c64xx_spi_driver_data *sdd, status = readl(regs + S3C64XX_SPI_STATUS); } while (RX_FIFO_LVL(status, sdd) < xfer->len && --val); + if (!val) + return -EIO; /* If it was only Tx */ if (!xfer->rx_buf) {