Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1867834rwl; Sun, 26 Mar 2023 10:36:53 -0700 (PDT) X-Google-Smtp-Source: AK7set/2Lm+KcyaI6Z7O+pUBIlS82gs3wcqQD8jL8WUIPDtJgBJHkPd+plBlQQ+/8+ER5JFU5aID X-Received: by 2002:a05:6402:1c95:b0:4af:7bdc:188e with SMTP id cy21-20020a0564021c9500b004af7bdc188emr17303558edb.16.1679852212811; Sun, 26 Mar 2023 10:36:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679852212; cv=none; d=google.com; s=arc-20160816; b=UfW8BGz/zASu+PNdQpwZfGVqIU8flp4OwngZy0lfafBvalW5tap2o9VWLNFnL8hU24 b6xqq54Nc5MKllmOMNQ6J94EChf9zpt2HPlaeJoxeS6qvkQ+W9G6/RB04xomVIOiYhYv lQ+DXeHmrPsl9U93HIK0uQ1nNrnx5Pv6OeK0zgSF97Kg3lu9lMbwF+BtKH2NhnbEHI2b z7C8EH2JH0syp6oXHQXB+zZSB+QVNmOuh3pY2CtuRRLLcUTKPkpSYtHBflcqwzwDMwL7 csUwBePk5lZQspJ24+WxbK0GLErPpu5xTvAt0Xr91TKkr5QinwmzoJdThPJ8WiDiTLif JlxQ== 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=8RaHSVWTJSnn02Olin7w+pvQXlMrY8VwSVjxsNhW3jw=; b=zsEgXfPUxL4Lnc07KPEjQy648amvyro2nhGutKo7k8WC/cS40pArqUNsFagnOST2Ku 5DVKS1pEYfFMCWxqpTROPXE8FI8Ib4Hmy9/POqtDxb5KeoJfwwNoYk2YE5ShC9NfsVNe IpBydC8IQ9mbJRiFZPeI1yDNoRepDDgXJfbINB5MpkLxxdV5ZA7ACJEap27uYDMpAOqZ dhmoq+FF6xLBxYrSZIc/40s6YOFrRk42Zr/TY6qgDXkl2cFBFXwUSdvp1d+UwjscGrY7 meIbImx5ztnWQqm+5zkE2CQgAEgRCwucW81+57xoLzmPDaae4GkrqxEvNzF2Lseisgmh aANQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=PHZst7js; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m21-20020a170906849500b008b1e792860dsi23898222ejx.339.2023.03.26.10.36.28; Sun, 26 Mar 2023 10:36:52 -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=PHZst7js; 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 S230309AbjCZRf0 (ORCPT + 99 others); Sun, 26 Mar 2023 13:35:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229596AbjCZRfZ (ORCPT ); Sun, 26 Mar 2023 13:35:25 -0400 Received: from mail-yw1-x1149.google.com (mail-yw1-x1149.google.com [IPv6:2607:f8b0:4864:20::1149]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A2ED4C03 for ; Sun, 26 Mar 2023 10:35:24 -0700 (PDT) Received: by mail-yw1-x1149.google.com with SMTP id 00721157ae682-541888850d4so66582007b3.21 for ; Sun, 26 Mar 2023 10:35:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; t=1679852123; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=8RaHSVWTJSnn02Olin7w+pvQXlMrY8VwSVjxsNhW3jw=; b=PHZst7jsbRQmhKifgwxo7mStAuo/tpfibTL8fS17ydBfof+K9WnRKB36/a5TOKJ8/t v7ppzG+XE+wbInX2Gj2xRtLzQMVyhiEJ8wi8Noeigcl3jn8Bm6yde690czGaxdXdX606 to18odJKzZiqBdSQOp5yogYYtvELKByEwwgkSZVjwrh2IihvN+d6WCGCa9CrADDbWWuT XRTgEeCTAl9XKjDu4mCPE5di5Ia/OZJ6/MshPIzCtGwnZH9Eyp1Mz7IVINGvDhYDr/cV 5o6DvLaEItsmgWSTnaC9WmxHvtHBparGbDOD1WDLodtn6E3MUZYIs6n8G4e1gN/5BzmR kPfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679852123; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=8RaHSVWTJSnn02Olin7w+pvQXlMrY8VwSVjxsNhW3jw=; b=Yb11y37Z5CpXXVIwZaIwnD0ynle7Pppd0Yy+g6qx7VEVttmAVZijHTH89pta6r3mpG y2EDpQf804cDrsqHc+fL4sdattlXw7+38i1BgoTNK+EZBODa1owMvUN6ZamP6x1RIZOv LfVT2H8Q1hMOWlhl0wiEY8DT6Kb3/H5zlfG0YPkx+RvbftC2s2tOcYrA2pczGaxNXX/k 5HlfxwU4qO8/UUC8o5mBbPG53/fz2NIcDJJel89vSNktiCScM/Uddmlx/7UaaNdQqnlg pOWQFRbXfxX0teBcexr5ucOeqq0Hd+ndRIOm4zcK9ozf0EhD5oxhBuZNYMBgBcNSzlXK vVcA== X-Gm-Message-State: AAQBX9ebci0XAdD3zr0TUF0AO4Vql60P0pX3H/exqFbF3XknYJGo+/LV 5kYTi1SlGFEQqIQ+TSghGzPX6jjBgmThWw== X-Received: from joychakr.c.googlers.com ([fda3:e722:ac3:cc00:4f:4b78:c0a8:6ea]) (user=joychakr job=sendgmr) by 2002:a81:a742:0:b0:541:a0cc:2a09 with SMTP id e63-20020a81a742000000b00541a0cc2a09mr4212382ywh.7.1679852123705; Sun, 26 Mar 2023 10:35:23 -0700 (PDT) Date: Sun, 26 Mar 2023 17:35:09 +0000 Mime-Version: 1.0 X-Mailer: git-send-email 2.40.0.348.gf938b09366-goog Message-ID: <20230326173511.710749-1-joychakr@google.com> Subject: [PATCH v3 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 Content-Type: text/plain; charset="UTF-8" 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 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. --- 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(-) -- 2.40.0.348.gf938b09366-goog