From patchwork Wed Mar 28 02:44:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 10312065 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 1C66460386 for ; Wed, 28 Mar 2018 02:45:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0B1AC29AA0 for ; Wed, 28 Mar 2018 02:45:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F2FD729BB6; Wed, 28 Mar 2018 02:45:41 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7319129AA0 for ; Wed, 28 Mar 2018 02:45:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Date:Message-Id: In-Reply-To:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: References:List-Owner; bh=dQewJCzPwL5rCz8xzpSS48vrXLtT1MN6QCS03UfI9nM=; b=e7e Pj7NlSMUS9rRxMB0L7kX96xSuSvFJNc23+JQVaRtuMjD4rysq8bYH+wIU+YrHApbMC2RjV9sU5fTY xVMjw6HO55XdYvC/AE8fiXbsw8FL71woE4AdrRXsqVjwqAfnt0BSSk3nIHz+o5xhvzy/c1RRDhWjO nuhYap614OabtwZ3rypEWVXQGSlEfDJMjd/b8pYcHc5stFGRvXAbDYehodHuyNLDphFnNVdI/J5WW 92TgPUSiTXoSrkaZKtVWpqJM9AdGiCELaeLaWxqiD1De5/rQGRR+u4Ek9SMdG7hNXarqoFCpSmDua 9ZkEvudys9HF2aaYHoxgJMug9efTF9g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1f115k-0008Uf-2e; Wed, 28 Mar 2018 02:45:36 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1f115h-0008UW-MO for linux-arm-kernel@bombadil.infradead.org; Wed, 28 Mar 2018 02:45:33 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Date:Message-Id:In-Reply-To:Subject:Cc: To:From:Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:References:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=47ONUNvp67GtHwkqLx5ybFZi+4XUA1hLlcZB+A5FO+A=; b=2Zv7OXZTMjvgg57BTl5RgJasWQ 38K9aIxfnLQLMllpG1fDGn914xtL9c7xfZIr0unpGuMC6NBU5juLrGDZ/YLCjPbHAoDlJi1wlaQaR W2RwA3nWLMCJh6Nq2e42G0SjA5L/rlAEpEk7L0DJKWYdoNx2mxVZFXgdZvRPHbHs27NToDMnAZJKi o9+tkUCjfC0Xpl+4xGuKzw8NwaOo7PVSGDaWW0yI4kv9FGFlEFEZr+n9NeqdzL120T+2FjONNHH8L tY85cPv00/6sXeSgGoF1BlgMxfgDwtWor3l5VIyrTjE0jJrEEPkDIb7bZSNGY4aIBnSyqKDWB16p5 3eExI+Xw==; Received: from heliosphere.sirena.org.uk ([2a01:7e01::f03c:91ff:fed4:a3b6]) by merlin.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1f115e-0008TA-9t for linux-arm-kernel@lists.infradead.org; Wed, 28 Mar 2018 02:45:31 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=Date:Message-Id:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner: List-Archive; bh=47ONUNvp67GtHwkqLx5ybFZi+4XUA1hLlcZB+A5FO+A=; b=MDHF6xLK/m6O OOpWB5L+IZURYC5bII/WHskVrltHKX+aCK9kzG7nTIc9eo9hznYmAIgh6E/l2spGESiH7DvAOL2Vr mTFjuFQLYXMefShSierTAQB6whQ0LG5GZypUwFmz7JsdSvik5wMeZc0V1NtL9gMN4HjAigvu26B+b SjLFY=; Received: from [202.155.252.3] (helo=finisterre.ee.mobilebroadband) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1f114x-0007gM-Nl; Wed, 28 Mar 2018 02:44:48 +0000 Received: by finisterre.ee.mobilebroadband (Postfix, from userid 1000) id 5DF1744007A; Wed, 28 Mar 2018 03:44:45 +0100 (BST) From: Mark Brown To: Stefan Agner Subject: Applied "spi: spi-atmel: Use correct enum for DMA transfer direction" to the spi tree In-Reply-To: <20180324104800.9934-1-stefan@agner.ch> Message-Id: <20180328024445.5DF1744007A@finisterre.ee.mobilebroadband> Date: Wed, 28 Mar 2018 03:44:45 +0100 (BST) X-Bad-Reply: In-Reply-To but no 'Re:' in Subject. X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180327_224530_483058_B4DBB5E7 X-CRM114-Status: GOOD ( 17.21 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: alexandre.belloni@bootlin.com, broonie@kernel.org, linux-arm-kernel@lists.infradead.org, linux-spi@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The patch spi: spi-atmel: Use correct enum for DMA transfer direction has been applied to the spi tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark From 357325764d7eabc4d2169d26af079b441fd48bc5 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Sat, 24 Mar 2018 11:48:00 +0100 Subject: [PATCH] spi: spi-atmel: Use correct enum for DMA transfer direction Use enum dma_transfer_direction as required by the functions dmaengine_prep_slave_(sg|single)() instead of enum dma_data_direction. This won't change behavior in practice as the enum values are equivalent. This fixes two warnings when building with clang: drivers/spi/spi-atmel.c:771:12: warning: implicit conversion from enumeration type 'enum dma_data_direction' to different enumeration type 'enum dma_transfer_direction' [-Wenum-conversion] DMA_FROM_DEVICE, ^~~~~~~~~~~~~~~ ... Signed-off-by: Stefan Agner Acked-by: Nicolas Ferre Reviewed-by: Geert Uytterhoeven Signed-off-by: Mark Brown --- drivers/spi/spi-atmel.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/spi/spi-atmel.c b/drivers/spi/spi-atmel.c index b7936f815373..3f890d162934 100644 --- a/drivers/spi/spi-atmel.c +++ b/drivers/spi/spi-atmel.c @@ -768,14 +768,14 @@ static int atmel_spi_next_xfer_dma_submit(struct spi_master *master, rxdesc = dmaengine_prep_slave_single(rxchan, as->dma_addr_rx_bbuf, xfer->len, - DMA_FROM_DEVICE, + DMA_DEV_TO_MEM, DMA_PREP_INTERRUPT | DMA_CTRL_ACK); } else { rxdesc = dmaengine_prep_slave_sg(rxchan, xfer->rx_sg.sgl, xfer->rx_sg.nents, - DMA_FROM_DEVICE, + DMA_DEV_TO_MEM, DMA_PREP_INTERRUPT | DMA_CTRL_ACK); } @@ -787,14 +787,14 @@ static int atmel_spi_next_xfer_dma_submit(struct spi_master *master, memcpy(as->addr_tx_bbuf, xfer->tx_buf, xfer->len); txdesc = dmaengine_prep_slave_single(txchan, as->dma_addr_tx_bbuf, - xfer->len, DMA_TO_DEVICE, + xfer->len, DMA_MEM_TO_DEV, DMA_PREP_INTERRUPT | DMA_CTRL_ACK); } else { txdesc = dmaengine_prep_slave_sg(txchan, xfer->tx_sg.sgl, xfer->tx_sg.nents, - DMA_TO_DEVICE, + DMA_MEM_TO_DEV, DMA_PREP_INTERRUPT | DMA_CTRL_ACK); }