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: 13188566 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 70714C76195 for ; Mon, 27 Mar 2023 04:34:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232159AbjC0Eef (ORCPT ); Mon, 27 Mar 2023 00:34:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229640AbjC0Eef (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 2D8254C31 for ; Sun, 26 Mar 2023 21:34:34 -0700 (PDT) Received: by mail-yb1-xb49.google.com with SMTP id w5-20020a253005000000b00aedd4305ff2so7628234ybw.13 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=lU8ZrsvO4wEM777cMOz/eKIusUmZcuiwO+UHbdylV8cYmF+X7pRj57h8tJkBer8JnC uTTc0jx7o53O06tVoBRCzaGrTbIz2mwAbTI6Xl9ZV+XiwqV77JIVMm+DdMXeTxv9nbMs qIDMYnDAhonA7T5tAiLc7g8WvjhXx810LUqF440nF6Pzd37kHsXsrupt3M/Kjg3kR1e8 xO2e0U7EO1sP3B+Ue4qQQaDaqWA39yHD4O8aRpuIEvAYZnYItZhcn133MHqN7EpsXunH hG/013sTrVLqWrd+Z3xKNI6JMPsh4judFqd6ZoZf9g+TIZjDIjfi8W5eYqV9IC0Nkevu w66g== X-Gm-Message-State: AAQBX9dKhmJscRZnbEAwq4pY0mDORgm8ddmf0loQoPJTUKztWQLtAvsD qL7zmjxwQyVkOyCA59bXY3BFSBHy6vSTZw== X-Google-Smtp-Source: AKy350ZUQ0qK0zEXhjwjUG2z+xViu8bIT3LYZfUmL6Xxd+qcGfk2WmGtgR78o7qqVFc1XV7uraTYEQiMmXNfrg== 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 Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org 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(-)