From patchwork Mon Mar 27 04:34:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joy Chakraborty X-Patchwork-Id: 7232 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1269385vqo; Sun, 26 Mar 2023 21:39:48 -0700 (PDT) X-Google-Smtp-Source: AKy350bkOhe6f15BCunORor8sC18HihYcTa42zxZoPnYUna/cdbHA/rYX+RjTOAV5BnfR+hMm3cn X-Received: by 2002:a17:90a:193:b0:23b:89df:4cf4 with SMTP id 19-20020a17090a019300b0023b89df4cf4mr11098072pjc.42.1679891987789; Sun, 26 Mar 2023 21:39:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679891987; cv=none; d=google.com; s=arc-20160816; b=lIDKxvveRjMqB9rK/uso0Zcuz+Pr9oru0p1wePhggmDNi3R/0yoSK3/YUwPLeNtxi4 SVDR3bcq33tEwjbSgTQY6BbTN9A8lvEqwq2fMCSP0A0Fs8h3TVIXuP/BK6l8YySZkpSv oz/WDYBo7D6erJ8rggjXHL+7s/5hTUA/Cmw6MsP0s9mjwXAev1kSf8hWn/SB2+mnQnHd gpyuDHwrWnLR411pYaYJhngVrEmn0MtA0Ezw5xn9DD/TGn7xliOTRx/wBugwbLtTqDsS UY0/XNe+/uc15RsM/zpkroZyR4AaLVf2XWDj3aY7dJ1P4c6Mo+nFOAPFD9n8gQzQhdBT 5J1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:mime-version:date :dkim-signature; bh=YLP0iDbOKmp5dR6zyew5bYI8A6UpTe5M67jJip6qNr8=; b=ou7P/mXePwz6f0TCh+7nlVMsJjyT7TIsYia3efA6xRnHBw512NJLyMf7OxMab2JQ8G b3hw3A2/1Xf5/9lkcMSeb082ewh/5zpcEPi91JtmqyqM4wNNobGMGakW7spcD2KGrUxv 47sQlIVyflt5ZJfR/xF0GfRYCa5MU5oy53bHokqv1RKq6ufxg3zuZHZI6f7/P0d5DGCg TEwXoXcOrqdEva2SEg/CALlk0gsjj6TZyMHwwn5V3Dc/EkSC+hYbRJmKCeANOQ15gm+H Cqst5F64eoxdAA+Aqfs4wfh441DFJP1Fs+HM88HiTt3AwHzy7gs0hbctGQ3hPzpM/PXi Jwxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=g54fLmoT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 3-20020a630303000000b00509bd53cd69si15940589pgd.591.2023.03.26.21.39.35; Sun, 26 Mar 2023 21:39:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=g54fLmoT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232178AbjC0Eeg (ORCPT + 99 others); Mon, 27 Mar 2023 00:34:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232153AbjC0Eef (ORCPT ); Mon, 27 Mar 2023 00:34:35 -0400 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 241F84C30 for ; Sun, 26 Mar 2023 21:34:34 -0700 (PDT) Received: by mail-yb1-xb49.google.com with SMTP id e23-20020a25e717000000b00b66ab374ba1so7629530ybh.22 for ; Sun, 26 Mar 2023 21:34:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; t=1679891673; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=YLP0iDbOKmp5dR6zyew5bYI8A6UpTe5M67jJip6qNr8=; b=g54fLmoT+eCwIo9hM5uYaRt1FxlYmcHJiirjrrMOIdIU1qL5XHkojOnUfop8aJYQJe tywuLZnNbXmydIntqTGTKl9zvhc2O4Y90ulmf7KAeqdDz9V+ECv6k98tSdWOZnRHqDx9 i1X+KMj4v6BURWtkCviLLwTK6xxZpu7kudu/MchQwy+dBBcCRudopBXhU4/4lN73LfMg 0L2yqrC/xWPzo9eWRUDObnn2WxjcMb2wxVkpUEsnJPlK6E1/5ypgWGL6ZQejJ0odf25X /w0HAt3SjV8yLXthSc7S6ldDlC+G/7w20yL0vj2nSBzqWS2S6Zio8JSsKV6iptRf3B4/ pNnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679891673; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=YLP0iDbOKmp5dR6zyew5bYI8A6UpTe5M67jJip6qNr8=; b=yZEa5Pbpkaj8L9urrFQe91lCHO6KNpv9o/um9OioLM8IXRE5rUMvMmmRBCjwepfC7U gUYOb/coWpxnJtlNhuQBCPIlzN1/K5mh1qIvKMFX2ZdtBP2vVt5PzHmz6ckqmCOkzwGg YIOvyh03KImkFXd2KUsk4GUyyP8YMd3MPQmJzUy/rMcPKA9u09HTlG+TR2HAYSSFQ0et qPLNUdC0/5aaLWrFA6VVG7F6TjuM7atj0Kd/d7PtdyqiSjwrIDTOVnJOypOSxbR9B931 +GBW7smQE7ysMwY+M5NpuJH6+NPGMGEIDxfQ4GB/iVSU+Xuj+l526Jph3xnpdzvh4FjP T2NA== X-Gm-Message-State: AAQBX9cuIZ1WYIjfSaYjgMcMNLVuEOBHrBRdSIjR21qN1V7nqEb6vQz4 D2AzUHfJoDH6mqUkQzk0D8WzNvMYMg5FOg== X-Received: from joychakr.c.googlers.com ([fda3:e722:ac3:cc00:4f:4b78:c0a8:6ea]) (user=joychakr job=sendgmr) by 2002:a81:a707:0:b0:545:6225:4536 with SMTP id e7-20020a81a707000000b0054562254536mr4462251ywh.9.1679891673439; Sun, 26 Mar 2023 21:34:33 -0700 (PDT) Date: Mon, 27 Mar 2023 04:34:03 +0000 Mime-Version: 1.0 X-Mailer: git-send-email 2.40.0.348.gf938b09366-goog Message-ID: <20230327043405.881645-1-joychakr@google.com> Subject: [PATCH v4 0/2] spi: dw: DW SPI DMA Driver updates From: Joy Chakraborty To: Serge Semin , Mark Brown Cc: linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, manugautam@google.com, rohitner@google.com, Joy Chakraborty X-Spam-Status: No, score=-7.7 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761453711158708170?= X-GMAIL-MSGID: =?utf-8?q?1761494420680676161?= This Patch series adds support for 32 bits per word trasfers using DMA and some defensive checks around dma controller capabilities. --- V1 Changes : Add support for AxSize=4 bytes to support 32bits/word. --- V1->V2 Changes : Add dma capability check to make sure address widths are supported. --- V2->V3 Changes : Split changes , add DMA direction check and other cosmetic chnages. --- V3->V4 Changes : Fix Sparce Warning | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202303270715.w9sMJhIh-lkp@intel.com/ --- Joy Chakraborty (2): spi: dw: Add 32 bpw support to DW DMA Controller spi: dw: Add dma controller capability checks drivers/spi/spi-dw-dma.c | 67 +++++++++++++++++++++++++++++++--------- drivers/spi/spi-dw.h | 1 + 2 files changed, 53 insertions(+), 15 deletions(-)