From patchwork Mon Jan 11 15:16:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 360475 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp2968120jai; Mon, 11 Jan 2021 07:19:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJx/qrLDaYHTPYwtrgR83o7DaeLnWLOoaI6wsWocOF6cOIan3wpzU2yRz7EekRQA4Mh6xoDO X-Received: by 2002:aa7:c0c2:: with SMTP id j2mr14471187edp.343.1610378347447; Mon, 11 Jan 2021 07:19:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610378347; cv=none; d=google.com; s=arc-20160816; b=KcWjA0tMQFxFPhhz1WqrcQ+jipIhkHIEchl1WlUQnkIgftrehsScVVS/2mXeEK9Ef7 SQYgWiJtuHOUW1BguxgsJzwA9EiEaQ2TciUD7zxKWdLWlOwyf/qEV6nxqjwJTQ3Ks/oX ByMlsNUuXj7V50lJTM9gv8ySn+uXWxwuWI/K1dUjoYWRT5706rngZMlPzoU/qxcAVZV4 1wABncAiAX2QVF9fE2iQXqqBYAZildiALV0w+otCM8f6AuXZcEWV9GtCbq1q8lzeEz9q BZzOHcouf1WxpxSo8F0mNDDXx3aQcD2hO/33cDr2CluugjEGGgZw9T18B5EwYTCNVot4 tf6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=5F2ajaIuyo7qa5NHAhv9K8PPGjL7f2U0WqRkEwqN7Fw=; b=VQJSD2qgRqMGSA8xnB12Euv/8ODUgjTFirfx0rJzLsLpKr0YLe+Fp5Dr+mH5iwp1lw U1JJqNnmNTTAi7hcsi7awY642XreVTB1waUwC4T/0Y0jrgC1jHzSeyzwqK7LtE48JJXQ BXv7shFhYDKQg+BVh12FQUlEvLoXUn9F1Le/iZQJA3o8V9Pp2TTHZ3sR6qcRQf0J3Dg6 iQc+mTcLqZRAw7RKif6c1TYkiBD89+TnSS4L65LIs+ke/Wc4G5UH2E0dM1pdyu6hZFf8 6GirzrCngI6nYl8X7pYf40Tkg0CfWuwA43115lgyWIWc5/ijueEKMwZb2acGxLwqU88K +68A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PxuROWJg; spf=pass (google.com: domain of linux-i2c-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-i2c-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t21si6596995ejf.648.2021.01.11.07.19.07; Mon, 11 Jan 2021 07:19:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-i2c-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PxuROWJg; spf=pass (google.com: domain of linux-i2c-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-i2c-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731713AbhAKPRv (ORCPT + 2 others); Mon, 11 Jan 2021 10:17:51 -0500 Received: from mail.kernel.org ([198.145.29.99]:53920 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728444AbhAKPRu (ORCPT ); Mon, 11 Jan 2021 10:17:50 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id DDB6422795; Mon, 11 Jan 2021 15:17:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1610378230; bh=QqIEqDXkBOPauIfpjp6CQHoxGmT+IBo0bjk1fPqQook=; h=From:To:Cc:Subject:Date:From; b=PxuROWJgIsfrtu8forYfa8hejmiYwSla+uXHR2V933YSPJwboBxAYKqW2aQ+c/SJK GXQmEJVaduwCJQSqygrtNt+8FzINha1ExrFFF8t4khOGuQz1qzCduj5qI6zb9J3UOL Rex/sXPobf4TxXfmRI4Ts1ibUc1fBFpYUQYrgqWJf7ZrQcepko8Sv2D0ONjAtSQ3RL VXqAem+9U2EUUxX3/JXMi4VBD5A10xWiu7ZZiiWmqscakDZmiIwHFp13hcAdftZ0M8 xBNKaNYTRdVCPyIewaKgdkPDQeF4fnnfWP5Q5r1ytzbv8k8ONlxbpt7A7F5Tgvwh3X g/YAZQR8BhKaw== From: Vinod Koul To: Bjorn Andersson , Mark Brown , Wolfram Sang Cc: linux-arm-msm@vger.kernel.org, Vinod Koul , Andy Gross , Matthias Kaehlcke , Douglas Anderson , Sumit Semwal , Amit Pundir , linux-spi@vger.kernel.org, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/7] Add and enable GPI DMA users Date: Mon, 11 Jan 2021 20:46:44 +0530 Message-Id: <20210111151651.1616813-1-vkoul@kernel.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org Hello, This series add the GPI DMA in qcom geni spi and i2c drivers. For this we first need to move GENI_IF_DISABLE_RO and struct geni_wrapper to common headers and then add support for gpi dma in geni driver. Then we add spi and i2c geni driver changes to support this DMA. Lastly, add the GPI dma nodes and enable dma for spi found in Rb3 board. To merge this, we could merge all thru qcom tree with ack on spi/i2c. Vinod Koul (7): soc: qcom: geni: move GENI_IF_DISABLE_RO to common header soc: qcom: geni: move struct geni_wrapper to header soc: qcom: geni: Add support for gpi dma spi: spi-geni-qcom: Add support for GPI dma i2c: qcom-geni: Add support for GPI DMA arm64: dts: qcom: sdm845: Add gpi dma node arm64: dts: qcom: sdm845: enable dma for spi arch/arm64/boot/dts/qcom/sdm845-db845c.dts | 4 + arch/arm64/boot/dts/qcom/sdm845.dtsi | 57 +++ drivers/i2c/busses/i2c-qcom-geni.c | 246 ++++++++++++- drivers/soc/qcom/qcom-geni-se.c | 55 ++- drivers/spi/spi-geni-qcom.c | 395 ++++++++++++++++++++- include/linux/qcom-geni-se.h | 20 ++ 6 files changed, 747 insertions(+), 30 deletions(-) Thanks -- 2.26.2 Reviewed-by: Bjorn Andersson