Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1693208rwl; Wed, 29 Mar 2023 23:35:58 -0700 (PDT) X-Google-Smtp-Source: AKy350ZLCE4YhnuGU1S6waxSo4MnrM/DZqvhXd+uNuYWKYDbY585vnfnog9Mj21JN8TaJ3D3y/1m X-Received: by 2002:a17:906:49:b0:930:aa02:f9cf with SMTP id 9-20020a170906004900b00930aa02f9cfmr1044485ejg.2.1680158158229; Wed, 29 Mar 2023 23:35:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680158158; cv=none; d=google.com; s=arc-20160816; b=cYTzpDqcBXHpdAVJWuD9hNL49uXD0qJgWwmJrQGuUEl7zw1P4wA48ViBdBkRuAPv0T gV8f9zqJckcrK7w847RgHsX9/brwkJ2/JlWCQ8vJDrVJZuuaK0T+GatSlR/1C0wHj1Fd cDrNgCBEU9NDscSgPGqBDoTxY94cjiiN+tQcrMSgRihyCvg5Ga09Tc66WVmml8WVkS35 ih/NTpi2YC3HI5dZfNHXpM7wSRc9xaw6Bz3Hx7pl6te5r1CXR5+Vxv5Zrujpnu5Z9nOo STVamEZVK3FHeHj9ndiGHzagDh+1Z5ZDzrWH+GtsYvs9fsRIVX6SFT++ZFPFjn5UDPhh i5/w== 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=Vck4iSDUKZf+JCdPQEvQ4evRUmQTT/pnCnaPcb2eePY=; b=SuEOT4p/47XpAkrCw3idjvz0yFtNCmj+oFKjP4WydSPxnx7etpDARlAURH3/KH3vsu 1RHmnY3kcUSwD+Jiy3/RHaJkVl0CvSFTuUBS3XFXa9y39LIfn6/O/CvCtnm5LI76qcdh spvSJUPRab2hXrDhWgOoTqvh/D30QH9aDc6QxDMILIpGUSU4LvXp1S/5SUa/Tvl+oHJ0 XyT6mNc1GJHnFyh10WLpPUBb8fGKWz7MRQhL5Z3OgHSiJDYXj4nQYa4HJfjwdJY11QDG TOKdLMUYiVG0vXfgrMfFxPbJjoLXKL3nYSzUD7Sz0g2aKpoqy3DY17QPDpFTCvzzkPY4 tupA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=K2ZxZT3W; 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 rs10-20020a170907036a00b00930f903a752si30514908ejb.177.2023.03.29.23.35.32; Wed, 29 Mar 2023 23:35:58 -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=K2ZxZT3W; 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 S229505AbjC3GfA (ORCPT + 99 others); Thu, 30 Mar 2023 02:35:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229595AbjC3Ge6 (ORCPT ); Thu, 30 Mar 2023 02:34:58 -0400 Received: from mail-yw1-x114a.google.com (mail-yw1-x114a.google.com [IPv6:2607:f8b0:4864:20::114a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC6314EFE for ; Wed, 29 Mar 2023 23:34:57 -0700 (PDT) Received: by mail-yw1-x114a.google.com with SMTP id 00721157ae682-541a39df9f4so180298017b3.20 for ; Wed, 29 Mar 2023 23:34:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; t=1680158097; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=Vck4iSDUKZf+JCdPQEvQ4evRUmQTT/pnCnaPcb2eePY=; b=K2ZxZT3WU7jTwiesqYy89B7hO2hIOzo/cyknJYK7ErdVGCnBDUUfG4QRbuA6Ew/UBq 66p3lUcFg9MUziJJhOzBEdwtoHWizDcBeH/DTYEaxot1TqPBH5+aL0CdsjBnbmvOUzPs 7Y8zHNNN2f4dVVw0lxHFF+QK50cvtKezv9EorSute8ILZpzulv6WjGh1c5lJ4XChhQIP XpKniGWjZ9qlHSZBhlbnVPLbb7v6UfT683D2MMxQ2SIwaSNM2mdwMsfZqi01vQJ+DeI5 tlDdF0MA1Eu4Gjy5GikaRF1fBRHIZo5RvwSskPxUyy9peykfjmREizZyY1Yf8Jm50wAl ORVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680158097; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=Vck4iSDUKZf+JCdPQEvQ4evRUmQTT/pnCnaPcb2eePY=; b=GzPDmtQ3geoKQavZNQtUVdkMPSl4Boc89gWQiWgfCWf4BNtClgPCah3WOgBXwEAwYA nGbRY5xBcl4bH5FMIWBoDaov7u0zXFWtFoYEGbkCKRhAwts31Qy530zPcXpNDCgp4g3a zVFvkHEsOq3klnceDn+Vggj8FF3FQm07JXXivWUswu21Qryvhr/tDVlp+CrxS0o/9ck7 Z+MQ6ITaU0PJST/TkhpIpGBbThGFQ9/FaqcxV7QMIYKDr24hfPqL+xr0QWN3HXq9RQdN 4Li5PcIGdZQOVL/FW6l1i1UfgqbSDclKzm3ZVPMvDmMGjUXsV6qEfxukj5EErINcGbZR 5xaA== X-Gm-Message-State: AAQBX9frv7aDI/3ec4xo1NN8MiN5O6a/6TFuTz6Zfik1/4cuz1+tRpDv xERb9/nuZ9YVDTxfgTRNs2o/J7Hglit/mw== X-Received: from joychakr.c.googlers.com ([fda3:e722:ac3:cc00:4f:4b78:c0a8:6ea]) (user=joychakr job=sendgmr) by 2002:a81:ae23:0:b0:541:7237:6e6b with SMTP id m35-20020a81ae23000000b0054172376e6bmr10436707ywh.0.1680158097247; Wed, 29 Mar 2023 23:34:57 -0700 (PDT) Date: Thu, 30 Mar 2023 06:34:48 +0000 Mime-Version: 1.0 X-Mailer: git-send-email 2.40.0.423.gd6c402a77b-goog Message-ID: <20230330063450.2289058-1-joychakr@google.com> Subject: [PATCH v5 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. --- V3->V4 Changes : Fix Sparce Warning | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202303270715.w9sMJhIh-lkp@intel.com/ --- V4->V5 Changes : Preserve reverse xmas Tree order, move direction check before initalisation of further capabilities, remove zero initialisations, remove error OR'ing. --- 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 | 70 ++++++++++++++++++++++++++++++++-------- drivers/spi/spi-dw.h | 1 + 2 files changed, 57 insertions(+), 14 deletions(-) -- 2.40.0.423.gd6c402a77b-goog