Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5021507rwl; Mon, 10 Apr 2023 22:22:55 -0700 (PDT) X-Google-Smtp-Source: AKy350ZBsPVXDkxknwpAgLj/7lT/i6sSrVKWPnsMq1x3XmloDLkuMXUyONm4q2Wp2iGtmcSH2mSs X-Received: by 2002:aa7:c48b:0:b0:504:b177:3ef3 with SMTP id m11-20020aa7c48b000000b00504b1773ef3mr3446584edq.3.1681190573611; Mon, 10 Apr 2023 22:22:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681190573; cv=none; d=google.com; s=arc-20160816; b=QSum2ngOBAywHnSMmzAQPTdNyM8qphO4pE3nc37UFjOWMRfMBTru1Tnz/o8w7OmR3C qY+tQzLRlR/8GR8unYciEkYnPUzKYOen7mtpj8RUHFB+syrpB4yEst7xoCH3r1ihKt7u ZsI2Z3NNDevEdCAb94FxB88NYjbQyCTknIjnAALZEBBbDPar2OjDNwdX5saqlwANgTgG Sf0km7/DnOMZXyNF/pU2jLZYI2o7bg2ErqTtd1V3YJRhIYgkL8rmOp13dzunyNYmd24I vHFxNgsOaJ3hLC1z2UgczYZsEL7i9leVkLO4yzNr7lEsZLaQQCbJJ9r3TgG7qpyANcVR nctg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=yca4zCL2vEcciEKMbn7Tp+QqyjObsV8lWyK4Yr1PQQU=; b=l6eN/J8IUH6NFXvKrGBgrxEnOIR+iLFgwfmk9pTIDUjiA/CC1bmWt9pNYXfUsYlozl qkHQh9h2VkDy7XO7EZpbwx+81O9bOyonoh6+SVk6PBgHgd4B9Ma8k9TR+BgHRdxJ6PeQ SrVH/zyNMI38Mhj2AOhHipzfglimwn/kEIJjxZh6A6VZCSQWrGJkpGeiHIKwOXLqNG6x X+IBQCHLvZcTxF0BlCtS0Al0BiNAysRxUjs2kGU0FgkjRPWyO7P+Zkw8TAiiCF90kCrt 6fWJIK/902/D+U5rDXKr3zt93ZiwYPGllbK9YZKWPZzfMN/9/ARlLVv3CGP6pkK9b3a6 wzKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=b1cNQZMc; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c17-20020aa7c991000000b005047f32c4adsi8098053edt.21.2023.04.10.22.22.28; Mon, 10 Apr 2023 22:22:53 -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=@gmail.com header.s=20210112 header.b=b1cNQZMc; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229901AbjDKFMk (ORCPT + 99 others); Tue, 11 Apr 2023 01:12:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229663AbjDKFMj (ORCPT ); Tue, 11 Apr 2023 01:12:39 -0400 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 443F0E50; Mon, 10 Apr 2023 22:12:38 -0700 (PDT) Received: by mail-lf1-x134.google.com with SMTP id d7so19967607lfj.3; Mon, 10 Apr 2023 22:12:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1681189956; x=1683781956; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=yca4zCL2vEcciEKMbn7Tp+QqyjObsV8lWyK4Yr1PQQU=; b=b1cNQZMcjynuzi6Xs4VdXdj7sNodwjDReRwXhU+WeqOaVBzlLLJukdvDfxppJ3roUI D791pDzjE6hztriWo/ag6k98lGK+OBHVEgF1JzpKjBiuxnNxyGgYutnnnfknfYVGLvcQ xzDy8ZQ1S1j+I8KP/H/TUL6x4dtLPyvXR/NZe5WNBWr//ATJ+Yl3zfq9FMmQjvHgLxoj 7/q4UsKszPqwZhv577Sf8Iz91+90MStHyuhIOCH+QIZ1+I8OgHg9i4W3GWkWoA2AUOE7 BUG/0T67PWXoq2dx0NPUrE6NtWNdEtkEdF4272fAWsOmanLfxp3E16y+aUgGQWNZpxBU G9Yg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681189956; x=1683781956; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=yca4zCL2vEcciEKMbn7Tp+QqyjObsV8lWyK4Yr1PQQU=; b=1bJaFgJMJafyt3+sGWk1NfALtL2R/uGB8A+EV6vZxf2L60qZPPQ+5JKC67u3GY3NIj Q1W8n4lLh6t4M8V6eczHiVkYhu1s/AwM9s1TIQaiPpJZJNvqabsKx6p2rOuTb7h6bGLi UDoo7lhKOP6Ixx1cPDkdRYlK54H/fnR6RMCiVhDV1X56bQFUSjExm+Kv+70jAELiOq8m 0qtJdkPmvFwkMegC+Ui5UPx2nIvQB6c61Dthp0J8+pExw56cIlURcryrLmMjBMDBg8HF ZN3xi8Lbdp0MQ0Ba3tKeXPlXFbpUiEYh4aVqq9pamIeRJZTs7quu5V4JIARpDFYtpj1g bfNA== X-Gm-Message-State: AAQBX9cgf9kYwcNQfHuldJPFrjG+lcPouJB1ou+Mfqt4m+xqyE27ru5P qr735rH62PHXuTLXWnvPIQqggecjC4A= X-Received: by 2002:a05:6512:218e:b0:4ec:63e6:526e with SMTP id b14-20020a056512218e00b004ec63e6526emr3057880lft.65.1681189956238; Mon, 10 Apr 2023 22:12:36 -0700 (PDT) Received: from mobilestation ([95.79.140.35]) by smtp.gmail.com with ESMTPSA id f23-20020a19ae17000000b004eb12329053sm2404451lfc.256.2023.04.10.22.12.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Apr 2023 22:12:35 -0700 (PDT) Date: Tue, 11 Apr 2023 08:12:33 +0300 From: Serge Semin To: Joy Chakraborty , Mark Brown Cc: Andy Shevchenko , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, manugautam@google.com, rohitner@google.com Subject: Re: [PATCH v5 0/2] spi: dw: DW SPI DMA Driver updates Message-ID: <20230411051233.aps5g2eq4qt4iumt@mobilestation> References: <20230330063450.2289058-1-joychakr@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230330063450.2289058-1-joychakr@google.com> X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 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 > | 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 Reviewed-by: Serge Semin @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 >