From patchwork Wed Oct 10 09:00:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emil Renner Berthing X-Patchwork-Id: 10634237 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E32AF679F for ; Wed, 10 Oct 2018 09:05:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DBFF1295B3 for ; Wed, 10 Oct 2018 09:05:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D005929696; Wed, 10 Oct 2018 09:05:39 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham 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 2BFA5295B3 for ; Wed, 10 Oct 2018 09:05:39 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References: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=DudLHEEglcdrXRnEKe14iPkFZCYTPfOcf5L8ZQyd1uY=; b=mJzMyPQwtCWKXv 45+a2MCgPAQJjlxa93uwijbXN3Qo6B2+lNV+mKvSr7mPdsFalZzq+RUbk4JHnC4m/AKiJsR07bLcR H4j56NWLDM5eGXp+k3ZbqRedz4AE3JXZzxRaicSvAnHyP6q2jhOcsudLcmb0+9DxN0FDO2D2dpre4 hQ2PiP4MxoLPxri1Kz06+ulMlq5Rg/5z5xAqqxNSVtIxu2vJDZTVBEShvsz9tb/iQk0zxgOSFqnRY NUDT85+b8HKVBQBDFvv2D3eCvcyqTkTE+S0Yp0PKToWChxuGZSwBbIq6VHrITaXkEkS7p9B5dTrSR 7TxU3FUoMTOtfOKYBGiA==; 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 1gAAQn-0007R2-FD; Wed, 10 Oct 2018 09:05:25 +0000 Received: from mail-lj1-x242.google.com ([2a00:1450:4864:20::242]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gAANY-000540-T4; Wed, 10 Oct 2018 09:02:15 +0000 Received: by mail-lj1-x242.google.com with SMTP id p1-v6so4158878ljg.6; Wed, 10 Oct 2018 02:01:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=KG0sdeNKejQuoulTZccIXDqy9239NiodF80G4qiM8YQ=; b=dwX9tbl84V4YOiGml1DAurWDeR8exFtugbPJNbxcT3UPtyFENSkRyU7ZEQo4JxO3zW LL3mP7Pwto6nYU5Rnv1WinEOVonO69hBozgBT71UJrGcC8lEGSjSIo+IjfAko3INSbWk t79mekUZ75iYa+X6RUO4Iyh0xOxpAu+yAjTWl4ztfjMBkfvbq01jf0ETYt0KWnXJ1Gir UZqORd56eG+GrRYSVcuXJ3uzesS8A4+ya28Fywns7SwZ39Tci6LS2mGP7OoXfm2q2ELm IMalUTbuGHegep8O24FSD48kBick+APcQfwuut7nbTTtFnqRPywJL1LbQ5030Wg3kFp3 i0Bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=KG0sdeNKejQuoulTZccIXDqy9239NiodF80G4qiM8YQ=; b=ZfMMPrBjZe3hKyZuacKv4jjtiUH/yD3htyPpzAvzRO2zj83R1NpCejiwhZSkTceuOH ZjW6tooH9frWbafUEJ9a5SOxucX1CMRRuGNzeS5aSlC7U052jz4gm6NbBmZlT3revui6 J0K1fzpkLXwz7ACcUewAIJkDuUxGpu9/S9XncoDur0vurmB7ekGJJh5x+ISnBc9cifsR hwgEpqPYdbEKb64PuEo6MGEmtQpikb8f7YW+lxMC1NSHvHJMgS6ouwEb7SdfLdWrkYWW 1F0EvuBhRNAIG6jwbuFKFcy7+1y+HmDEBcoo0nKnVQ6ljQ7tLqdW79FMoW2f/UfSGLxn 631w== X-Gm-Message-State: ABuFfogJH3AaY0e68mICFdjISIUWBVzAuU+3hZJBPFpCUwLbCFfJVs0g XsAUi2x49NpFucd9s6LxbhbJG97LBkg= X-Google-Smtp-Source: ACcGV63TMn627laop0LM3zRqknrAUhl3yFoTD9zz7aGaR1gtxHWXJT/rawTYEFsTs7pc0qLsOeK/Bw== X-Received: by 2002:a2e:8684:: with SMTP id l4-v6mr3079435lji.52.1539162112525; Wed, 10 Oct 2018 02:01:52 -0700 (PDT) Received: from localhost.localdomain ([5.57.50.195]) by smtp.gmail.com with ESMTPSA id q2-v6sm2150078lfc.67.2018.10.10.02.01.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 Oct 2018 02:01:51 -0700 (PDT) From: Emil Renner Berthing To: linux-rockchip@lists.infradead.org Subject: [PATCH 4/7] spi: rockchip: remove unneeded dma_caps Date: Wed, 10 Oct 2018 11:00:35 +0200 Message-Id: <20181010090038.20834-5-kernel@esmil.dk> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181010090038.20834-1-kernel@esmil.dk> References: <20181010090038.20834-1-kernel@esmil.dk> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181010_020204_987503_5BC59D3F X-CRM114-Status: GOOD ( 12.30 ) 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: Mark Rutland , devicetree@vger.kernel.org, Randy Li , Emil Renner Berthing , Brian Norris , Douglas Anderson , Rob Herring , linux-kernel@vger.kernel.org, Chris Zhong , Nickey Yang , Mark Brown , Klaus Goger , Enric Balletbo i Serra , linux-spi@vger.kernel.org, Shunqian Zheng , linux-arm-kernel@lists.infradead.org, Heiko Stuebner 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 We no longer need the dma_caps since the dma driver already clamps the burst length to the hardware limit, so don't request and store dma_caps in device data. Signed-off-by: Emil Renner Berthing --- drivers/spi/spi-rockchip.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/spi/spi-rockchip.c b/drivers/spi/spi-rockchip.c index ede3002215cd..85358f96f78f 100644 --- a/drivers/spi/spi-rockchip.c +++ b/drivers/spi/spi-rockchip.c @@ -207,7 +207,6 @@ struct rockchip_spi { struct sg_table rx_sg; struct rockchip_spi_dma_data dma_rx; struct rockchip_spi_dma_data dma_tx; - struct dma_slave_caps dma_caps; }; static inline void spi_enable_chip(struct rockchip_spi *rs, int enable) @@ -777,7 +776,6 @@ static int rockchip_spi_probe(struct platform_device *pdev) } if (rs->dma_tx.ch && rs->dma_rx.ch) { - dma_get_slave_caps(rs->dma_rx.ch, &(rs->dma_caps)); rs->dma_tx.addr = (dma_addr_t)(mem->start + ROCKCHIP_SPI_TXDR); rs->dma_rx.addr = (dma_addr_t)(mem->start + ROCKCHIP_SPI_RXDR); rs->dma_tx.direction = DMA_MEM_TO_DEV;