Message ID | 20230330063450.2289058-1-joychakr@google.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp914674vqo; Wed, 29 Mar 2023 23:35:54 -0700 (PDT) X-Google-Smtp-Source: AKy350YRCVDsF0aqh+Ls5HgfLTgIsdB5f6gzMYI+P1flMd8BHVNMNCae5C8HtfCkZ/jUUC556lfb X-Received: by 2002:aa7:c3cd:0:b0:501:c839:cf91 with SMTP id l13-20020aa7c3cd000000b00501c839cf91mr20244585edr.6.1680158154555; Wed, 29 Mar 2023 23:35:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680158154; cv=none; d=google.com; s=arc-20160816; b=WAaU9Sr9PHLsOc9Am1czXmH6WtqTQSH4yPC/+aIiL1ZCQdA4mM/sv1jgGAzviTVpzO myqmAJu11biYl+AdT5DcfpcKRGGoqDTeR5i/+1fRk+ST8bnr2TXiR8VdePvZ5e10HXZK ykVuYDRsyYJeD+D/niXUG+uYmkVNeutblt+ZhKIEMs9YKskWdYKvoYKibuhxyYNb0bDX Hha6aQFgKIb9h7MCBRv47K0KA0x8RItPodEtmerZ4M3kcMG3rGiEOToBjfh/wZXRV+Xu j0Y3GHVfNwcD/Ahr0QgOVIO334zZIbU4wdkasyqg2basxu2XykJsnhgzKOTx2XOTRFJc b8YQ== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hu16-20020a170907a09000b0093b05f2035dsi20515118ejc.27.2023.03.29.23.35.29; Wed, 29 Mar 2023 23:35:54 -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 S229679AbjC3GfA (ORCPT <rfc822;rua109.linux@gmail.com> + 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 <rfc822;linux-kernel@vger.kernel.org>); 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 <linux-kernel@vger.kernel.org>; Wed, 29 Mar 2023 23:34:57 -0700 (PDT) Received: by mail-yw1-x114a.google.com with SMTP id 00721157ae682-541a39df9f4so180298017b3.20 for <linux-kernel@vger.kernel.org>; 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 <joychakr@google.com> To: Serge Semin <fancer.lancer@gmail.com>, Mark Brown <broonie@kernel.org> Cc: linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, manugautam@google.com, rohitner@google.com, Joy Chakraborty <joychakr@google.com> 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761773517217397336?= X-GMAIL-MSGID: =?utf-8?q?1761773517217397336?= |
Series |
spi: dw: DW SPI DMA Driver updates
|
|
Message
Joy Chakraborty
March 30, 2023, 6:34 a.m. UTC
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 <lkp@intel.com> | 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(-)
Comments
Cc+=Andy On Thu, Mar 30, 2023 at 06:34:48AM +0000, Joy Chakraborty wrote: > 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 <lkp@intel.com> > | 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. The series looks good to me now. Though if I were you I would have split up the last patch into two ones. Anyway I tested the patchset on Baikal-T1 SoC with DW APB SSI 3.22b + DW DMAC 2.18b and looped back SPI-interface. So feel free to add: Tested-by: Serge Semin <fancer.lancer@gmail.com> Reviewed-by: Serge Semin <fancer.lancer@gmail.com> @Andy, anything to add from your side? @Mark, if you are ok with the series content please merge in. -Serge(y) > --- > > 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 >
On Tue, Apr 11, 2023 at 08:12:33AM +0300, Serge Semin wrote: > Cc+=Andy Thank for Cc'ing me. I'll go through individual patches and give my comments if any. > On Thu, Mar 30, 2023 at 06:34:48AM +0000, Joy Chakraborty wrote: > > 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 <lkp@intel.com> > > | 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. > > The series looks good to me now. Though if I were you I would have > split up the last patch into two ones. > > Anyway I tested the patchset on Baikal-T1 SoC with DW APB SSI 3.22b + > DW DMAC 2.18b and looped back SPI-interface. So feel free to add: > Tested-by: Serge Semin <fancer.lancer@gmail.com> > Reviewed-by: Serge Semin <fancer.lancer@gmail.com> > > @Andy, anything to add from your side? > @Mark, if you are ok with the series content please merge in.