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: 10634207 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 1753317E1 for ; Wed, 10 Oct 2018 09:01:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BD811298D7 for ; Wed, 10 Oct 2018 09:01:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BB70329987; Wed, 10 Oct 2018 09:01:48 +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.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI 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 3680129B22 for ; Wed, 10 Oct 2018 09:01:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726788AbeJJQW7 (ORCPT ); Wed, 10 Oct 2018 12:22:59 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:45803 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726741AbeJJQW6 (ORCPT ); Wed, 10 Oct 2018 12:22:58 -0400 Received: by mail-lj1-f195.google.com with SMTP id j4-v6so4138127ljc.12; Wed, 10 Oct 2018 02:01:45 -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=k4wm8kBsdbsXefFIJAHbBxwH/+4AymUD+2/RVwJMDN+3WwmDGjHDrxoBnOWAyWj8kr djDYp9OwRJSpRRLXR/j4laFwf46M2eQ26xaS7hCsZlFpVHiG/VrJyx+PoTH9Q9gnOQ/E 4EkLMj3M0Fj8sJfR+HctvE4uFRSg3YNBeyuQ4vRxdRcKHA58ykpRE+h6GCX29wtNO9Tv I5bhunhMetXHbyzi25DXbny8eu45VFIfKN0F+k57GhrJW2I6QnzDPFe/9gHC44fPZsya ajAfYJThAcCbOXIJtZhFX2SPq2VYXBI5FbNPuCc5+zDJFPSc11gjY/gvDI4PYqZki9Jf mwZw== X-Gm-Message-State: ABuFfog5ssFDciy/3lTy8cbhn80TqQM0vBnMynIh8IJ8OOIOdV5nlfCi p0z7Z+eakyUhjFa6EiIMVKItNnpEPSc= 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 Cc: Emil Renner Berthing , Rob Herring , Mark Rutland , Heiko Stuebner , Mark Brown , Enric Balletbo i Serra , Brian Norris , Douglas Anderson , Shunqian Zheng , Nickey Yang , Klaus Goger , Randy Li , Chris Zhong , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-spi@vger.kernel.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 Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.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(-)