From patchwork Fri Oct 2 12:22:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lukasz Stelmach X-Patchwork-Id: 11813295 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 A86436CB for ; Fri, 2 Oct 2020 12:23:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8BE942074B for ; Fri, 2 Oct 2020 12:23:30 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="G++yily7" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387749AbgJBMX3 (ORCPT ); Fri, 2 Oct 2020 08:23:29 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:54067 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387875AbgJBMWz (ORCPT ); Fri, 2 Oct 2020 08:22:55 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20201002122251euoutp02b95669a4bee266b237803831ad7ecfd6~6LFeKx0OB2196421964euoutp02C for ; Fri, 2 Oct 2020 12:22:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20201002122251euoutp02b95669a4bee266b237803831ad7ecfd6~6LFeKx0OB2196421964euoutp02C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1601641372; bh=p2pv26AUz3sdJjPIGSfGwPfSHH+cfHEZoyM3/33Kj9w=; h=From:To:Cc:Subject:Date:References:From; b=G++yily7En9IbJOYcRMMJJY9PBrSQFDViy2hX0ZSN0ErV+lrha27LH7gjUzVeiLRJ zyjGTJqHMDIdUueacLGe/qVD7f35bCWl9P7iSXuoWuBai64IeqPQXjWWxtHz/jod6Q 6qogzkLzWzLgvQfOpbph9OUEGPadkoO5bWxb9IIk= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20201002122251eucas1p1c6de2006586529cb6ffe4aa4939d5933~6LFdwZ9N00997709977eucas1p16; Fri, 2 Oct 2020 12:22:51 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id EF.32.06456.B9B177F5; Fri, 2 Oct 2020 13:22:51 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20201002122251eucas1p1a8977c163d7a291829e7cac212d26862~6LFdeAUWY0997709977eucas1p15; Fri, 2 Oct 2020 12:22:51 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20201002122251eusmtrp13108e0b553244bbf3a2bc4cdda5520aa~6LFddRxLi1383613836eusmtrp10; Fri, 2 Oct 2020 12:22:51 +0000 (GMT) X-AuditID: cbfec7f2-7efff70000001938-8f-5f771b9b1b8b Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 3C.B0.06017.B9B177F5; Fri, 2 Oct 2020 13:22:51 +0100 (BST) Received: from localhost (unknown [106.120.51.46]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20201002122251eusmtip237723a5be5e592bda03c0c6f388c71f4~6LFdTShGG1143811438eusmtip2P; Fri, 2 Oct 2020 12:22:51 +0000 (GMT) From: =?utf-8?q?=C5=81ukasz_Stelmach?= To: Kukjin Kim , Krzysztof Kozlowski , Tomasz Figa , 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 Cc: Marek Szyprowski , =?utf-8?q?Bart=C5=82omiej_?= =?utf-8?q?=C5=BBo=C5=82nierkiewicz?= , =?utf-8?q?=C5=81ukasz_Stelmach?= Subject: [PATCH v3 0/9] Some fixes for spi-s3c64xx Date: Fri, 2 Oct 2020 14:22:34 +0200 Message-Id: <20201002122243.26849-1-l.stelmach@samsung.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Organization: Samsung R&D Institute Poland X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrDKsWRmVeSWpSXmKPExsWy7djP87qzpcvjDW7+lLNY/OM5k8XGGetZ LaY+fMJm0f/4NbPF+fMb2C1uHlrBaLHp8TVWi8u75rBZzDi/j8mi8eNNdou1R+6yW6za9YfR gcfj+pJPzB47Z91l99i0qpPNY/OSeo++LasYPT5vkgtgi+KySUnNySxLLdK3S+DK2P9hPVPB XN6K2987WRoYn3J1MXJySAiYSGw/+pyli5GLQ0hgBaPEvmX7mSCcL4wSs3qOMEI4nxkl1m/c yAzTcuzDOzaIxHJGiUvbWqCqnjNKHJi8FKyKTcBRon/pCVaQhIjAdiaJiZ/Pg21hFjjKKLH5 wVUWkCphASOJ1xsXA1VxcLAIqEqsuRgCEuYVsJaY+OYiI8Q6eYn25dvZIOKCEidnPgFr5RfQ kljTdB3MZgaqad46mxlkvoTAKXaJB+87oW51kfh++TMrhC0s8er4FnYIW0bi9OQeFpC9EgL1 EpMnmUH09jBKbJvzgwWixlrizrlfbCA1zAKaEut36UOEHSVePG5ih2jlk7jxVhDiBD6JSdum M0OEeSU62oQgqlUk1vXvgRooJdH7agXUVx4St99fZpnAqDgLyWOzkDwzC2HvAkbmVYziqaXF uempxYZ5qeV6xYm5xaV56XrJ+bmbGIFp6vS/4592MH69lHSIUYCDUYmHN+NQabwQa2JZcWXu IUYJDmYlEV6ns6fjhHhTEiurUovy44tKc1KLDzFKc7AoifMaL3oZKySQnliSmp2aWpBaBJNl 4uCUamAM97dhnSzzJ9/uxTTmiq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jFXFScCADJrd6lxwIAAA== X-CMS-MailID: 20201002122251eucas1p1a8977c163d7a291829e7cac212d26862 X-Msg-Generator: CA X-RootMTR: 20201002122251eucas1p1a8977c163d7a291829e7cac212d26862 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20201002122251eucas1p1a8977c163d7a291829e7cac212d26862 References: Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org This is a series of fixes created during porting a device driver (these patches will be released soon too) for an SPI device to the current kernel. The two most important are spi: spi-s3c64xx: swap s3c64xx_spi_set_cs() and s3c64xx_enable_datapath() spi: spi-s3s64xx: Add S3C64XX_SPI_QUIRK_CS_AUTO for Exynos3250 Without them DMA transfers larger than 512 bytes from the SPI controller would fail. Ɓukasz Stelmach (9): spi: spi-s3c64xx: swap s3c64xx_spi_set_cs() and s3c64xx_enable_datapath() spi: spi-s3s64xx: Add S3C64XX_SPI_QUIRK_CS_AUTO for Exynos3250 spi: spi-s3c64xx: Check return values spi: spi-s3c64xx: Report more information when errors occur spi: spi-s3c64xx: Rename S3C64XX_SPI_SLAVE_* to S3C64XX_SPI_CS_* spi: spi-s3c64xx: Fix doc comment for struct s3c64xx_spi_driver_data spi: spi-s3c64xx: Ensure cur_speed holds actual clock value spi: spi-s3c64xx: Increase transfer timeout spi: spi-s3c64xx: Turn on interrupts upon resume drivers/spi/spi-s3c64xx.c | 111 +++++++++++++++++++++++++++----------- 1 file changed, 79 insertions(+), 32 deletions(-) Changes in v3: - added Reviewed-by and Suggested-by tags to commit messages - added information about non-CMU case in the commit message of (Ensure cur_speed holds actual clock value) Changes in v2: - added missing commit descriptions - added spi: spi-s3c64xx: Ensure cur_speed holds actual clock value - implemented error propagation in spi: spi-s3c64xx: Check return values - rebased onto v5.9-rc1 which contains spi: spi-s3c64xx: Add missing entries for structs 's3c64xx_spi_dma_data' and 's3c64xx_spi_dma_data'