From patchwork Wed Oct 10 09:00:31 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: 10634229 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 3146A13AD for ; Wed, 10 Oct 2018 09:02:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8FAE92974B for ; Wed, 10 Oct 2018 09:02:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7F45B298B0; Wed, 10 Oct 2018 09:02:52 +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 F26332974B for ; Wed, 10 Oct 2018 09:02:51 +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: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:In-Reply-To:References: List-Owner; bh=gFNZuw+anSrnS6G5wbJD5iNlrDfOnqemeXRvpLN508w=; b=JzLp+iaFB7KKgR FzK1RtWY/T+Fiu3EP0WK/gZNWBtPc/dbrCbqaUsIz5oLmEPvA2L9TDRd9vg8/IoXHMfnrRUArDisj 8yz3qGw2QknsEsqwvho8J/u4yThPLDIBPGXIUfQdaL+6/OB5HUgfsVzg5ZpXHFFfjhzTKhuF5BYiA srD1aAfxLTtVMXPFaw1i08NKS8CcwqF6ys/yN3aklj3m9zhHmH269N9UubURgK+U+ZLgkVz2AlGtu 4wyjTTjzw3zt4wYQQS73cTem/XZHYMWSCUpYigLmLElaDlXGKa/7tH9YUYWDK+9XJu1X6lpj/WscE 1oEh+YUoNoAfg5foZ/zw==; 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 1gAAOG-0005UO-MZ; Wed, 10 Oct 2018 09:02:48 +0000 Received: from mail-lj1-x243.google.com ([2a00:1450:4864:20::243]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gAANR-00053i-B8; Wed, 10 Oct 2018 09:01:59 +0000 Received: by mail-lj1-x243.google.com with SMTP id r8-v6so4160857ljc.10; Wed, 10 Oct 2018 02:01:46 -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:mime-version :content-transfer-encoding; bh=bXMcX+/SDT0au4jBbx0xqY7ueJkB5UlYtvi8TrlwjVs=; b=eKfKR7kukWSqon2gKaCMiCsErxEsGZuQkAeGTP1U5evHi6M/iivU5GXcLsAH7/aeds sBtW3I93lb07WKzoR4aZea6jl3lHcaoMLHSOzyL4vr2PMe3V+rs+No7nP9fqFe7XkBsz rZ+vjYsIVv0Plg3kwNumfckCmO29qYbZUp/ckIM2ArPbh1mrNRDiH3siDYpWLLcNWG62 VLF9U+wEHQfMulSluGBHuMsqvfzKJelNYPcroqG2qk1YXqilCMULIsemVKId0+8YgMCd O0RIQioi52SlIJ9J4aD7CrIA7SkuPpKlHk1Uef8P4GgqLL/9xhXSovEs54mLIC2dgF6s Xu8w== 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 :mime-version:content-transfer-encoding; bh=bXMcX+/SDT0au4jBbx0xqY7ueJkB5UlYtvi8TrlwjVs=; b=lAPoHKzfll9hfM9jQ8/zp/hm7jF28NVTjaufuZ556Jpr1huWfY0OiGhsJw6622QgEH Z/M9SMx1pmLZy5+CXu/6FiSH5mkdtjFfJ4zCGdGXAaySXEPv+8LxT/zeF2LriGT5kPwE 9mxr6J0Ns2ABB79Wa1HZSFjHS2vH09JxYj8BjYOPhLeCtVfKoILvZ1dL9sWAM3hqYHjR e8Bs699uM7tCSU7V182tZp4DOyWg1ASIVrk+iR+81HREUMkYZCe4LaCJMoT77oh/CPQI pbszsshOMh3eJmpNpCaxT7xSv74m8Rn3c/DMHEauX8BS4Tz/wBXyu9YdPU+FeknTitpY Q2fg== X-Gm-Message-State: ABuFfoh+PQSErpTu6FP27upUrMVTBVVx4thGDYfNLDC8rj/kAMSOeN5H cQ4uQmvcAke/+DAt5KcN7yLdWX1Skx8= X-Google-Smtp-Source: ACcGV60++KjdAio0jbLShJEsbxevtqr0cVOEy51UbxelXWvFQFsgj/DrxxzZ+rmx4Nw3wnkpcSQDRQ== X-Received: by 2002:a2e:80d2:: with SMTP id r18-v6mr21974459ljg.100.1539162104395; Wed, 10 Oct 2018 02:01:44 -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.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 Oct 2018 02:01:43 -0700 (PDT) From: Emil Renner Berthing To: linux-rockchip@lists.infradead.org Subject: [PATCH 0/7] Enable spi dma on Rockchip RK3399 Date: Wed, 10 Oct 2018 11:00:31 +0200 Message-Id: <20181010090038.20834-1-kernel@esmil.dk> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181010_020157_442569_F5171F6D X-CRM114-Status: GOOD ( 11.78 ) 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 Hi all, The first three patches in this series enable spi dma on rk3399, while the remaining patches are meant to be decreasingly obvious cleanups to the rockchip spi driver. Unfortunately I only have rk3399-gru-kevin hardware to test this on, so it would be nice if someone would test this on other rockchips. /Emil Emil Renner Berthing (5): arm64: dts: rockchip: add rk3399 SPI DMAs spi: rockchip: remove unneeded dma_caps spi: rockchip: mark use_dma as bool spi: rockchip: directly use direction constants spi: rockchip: simplify spi enable logic Huibin Hong (2): spi: rockchip: initialize dma_slave_config properly spi: rockchip: adjust dma watermark and burstlen arch/arm64/boot/dts/rockchip/rk3399.dtsi | 10 ++++ drivers/spi/spi-rockchip.c | 62 +++++++++--------------- 2 files changed, 32 insertions(+), 40 deletions(-)