Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1964109rwr; Fri, 21 Apr 2023 02:06:51 -0700 (PDT) X-Google-Smtp-Source: AKy350Z/lkRkX/C8LjHRWCxuL56Y3tSUTd3Ii34gnhqREohBWaX29I0P1SKFmyl1YXPw5ZLpXhqu X-Received: by 2002:a17:903:25d1:b0:1a6:3e45:8df with SMTP id jc17-20020a17090325d100b001a63e4508dfmr8264171plb.33.1682068010806; Fri, 21 Apr 2023 02:06:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682068010; cv=none; d=google.com; s=arc-20160816; b=qgqbXcBVioy0Fgv9UdSDEmmVyaH8yOcNuSrHMufoCAw2Ro71DOLY/3bFPGBi3W9CYo JidGj36tyLwsi96xKuqV4kAczD7fVyvZRSXD9zOk9o4rcW18NIOIQYnui0kRPJXix5GP 6jhazxmudZTP2ORATDvA/y9EFLeNVmt4f2tlPDhQ7dxbMfl9z+LqfcVKVGjqV9vqt6j/ U73KdqPIG45doQL9yZcZIY8lyATXv9THF8KerwkoawFV7ehZHAywwl///pErARMUTNz8 Hm4HOO4Hz2BX4C1D4d1L0wO3WX6/NhfyrbxYwXQEX55JDAgVfnCDpeELdjaZzFiewGVH c3kQ== 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=GD+kPjbrYOpAZ5eEFt/aG7lSE+x3V2Tz7Zj3HJKlsWE=; b=jcZDj3HFBaEQErNcLQ3AasoLkSDmo3Eh6xGhGrt74A6mBLkXIpGRLJgyPNVQeus2gf 9mVMuVPiJcJ9NSri1lTvHY3nybEsjavJcSXIjhsoYyS7Dn9inoh7gST8yW7goNOpzEHq ZXI8J57jeJkPl26nnUQlEW6nxZL9fogFq6qHTR2q9lfhsFN9y/IQzcbviyc6xdBPaL1x 4PCj6wmr2iwh4IT2QrAIMBzY9fQOEsen6OTSzejYmYdsbRddhNvw1LQSCRxayE8uGSqd pjYOkl/tdV+hvgPb0oEp2hBc1nCEDP9ozweV2JBWvZdpW0mSAQ0X7Dx0L+LRPGf4fvB/ dBXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=IQBfC7RL; 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 b9-20020a170902650900b001a18ec2d863si3709426plk.112.2023.04.21.02.06.38; Fri, 21 Apr 2023 02:06:50 -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=20221208 header.b=IQBfC7RL; 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 S231259AbjDUJEa (ORCPT + 99 others); Fri, 21 Apr 2023 05:04:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231130AbjDUJE2 (ORCPT ); Fri, 21 Apr 2023 05:04:28 -0400 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C87228691; Fri, 21 Apr 2023 02:04:26 -0700 (PDT) Received: by mail-lf1-x132.google.com with SMTP id 2adb3069b0e04-4ec8eca56cfso1475239e87.0; Fri, 21 Apr 2023 02:04:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682067865; x=1684659865; 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=GD+kPjbrYOpAZ5eEFt/aG7lSE+x3V2Tz7Zj3HJKlsWE=; b=IQBfC7RLkilRMtCYiEcDkvo09J8JyR1j0INIjE/SJ/fi0WUOHhDuz5HEWOxs8pPCA/ wkQcvof39Gly8MHYMak5oxg7TF8x/X7A/yJ+OLD6Qujj/Xhe0SBUI9Zld/glCU1eSM7I ln0DCz2FCDzBUqd6MHMcJB/44CEd9Sr5M2QqcfitUepulc9Kx1J2/1MZ12lYLpdM76jw ipM+HHrdW+4ptedQXpdgyqGAa+Ri699aqQd2kVFungN66QJ8AEnwWZowrtL8k1Ug8xTC w4AkaORA6gmIQbuVncLsYu9ZWSOl/CWIoIfa/xStTGaxj2nkQfgOL7DFlHboPPjRniXk jLIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682067865; x=1684659865; 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=GD+kPjbrYOpAZ5eEFt/aG7lSE+x3V2Tz7Zj3HJKlsWE=; b=DP8NphRSqTaYXWZ+KNOiEGSbjG8GbMxi9LMjIuznX6azbbXCqfczWajpxV5pG9hd8r ySs+M0A0q+RTQh0yameZXMOAh/OuwkQFkZo2h2eoJCZ2x7/09LrS8WNH71YkSzAsN3r8 0M9aF4TzPFNByDnQXRHSK8/oOM5bZo6s1QX7DTIREuuc7rIQI1t/wpZg/w1Z7K16uIi+ thgLHEELvtsaZqGjT5/ojKPwg73iqCOnJBl/DIQMB6PK8pk55f50lbyHpYqU3B7adhf8 bAX+xDAHWFKAy1/JVNIyxnnYgZ4btkCMXZMqexJQpaQxzQg3UCU38CV7b4bJuO0mjB2l WIqg== X-Gm-Message-State: AAQBX9ecdrdYHzqs+dsNM7iT1/yPr66/BD8LWmU7xVZ6E2GOp8PdrokF dCpfvaZySRpwNZm2A68YHJs= X-Received: by 2002:ac2:4e49:0:b0:4ec:a18e:f985 with SMTP id f9-20020ac24e49000000b004eca18ef985mr1211349lfr.13.1682067864875; Fri, 21 Apr 2023 02:04:24 -0700 (PDT) Received: from mobilestation ([95.79.140.35]) by smtp.gmail.com with ESMTPSA id g2-20020a19ac02000000b004ec87cf6b69sm495878lfc.169.2023.04.21.02.04.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Apr 2023 02:04:24 -0700 (PDT) Date: Fri, 21 Apr 2023 12:04:22 +0300 From: Serge Semin To: Joy Chakraborty Cc: Mark Brown , Andy Shevchenko , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, manugautam@google.com, rohitner@google.com Subject: Re: [PATCH v8 0/5] spi: dw: DW SPI DMA Driver updates Message-ID: <20230421090422.grujbps24fckewxb@mobilestation> References: <20230420055131.2048959-1-joychakr@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230420055131.2048959-1-joychakr@google.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 On Thu, Apr 20, 2023 at 05:51:26AM +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. The series looks good to me except a small nitpick described in the patch 5. Just a note for future patchset it's preferable to have the fixes-patches placed at the head of the series thus it would minimize a possible to catch merge-conflicts on the patches backporting. In case of your fixes patch it won't be relevant since the change is independent from the rest of the series updates. So feel free to add the tags: Reviewed-by: Serge Semin Tested-by: Serge Semin * tested on Baikal-T1 based system with DW SPI-looped back interface transferring a chunk of data with DFS:8,12,16. Note before moving further we'll need to wait for @Andy response. -Serge(y) > --- > 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. > --- > V5->V6 Changes : > -Remove case of n_bytes=3 using 4_bytes buswidth > -Avoid forward decaration > -Break capability check patch into 2 > -round n_bytes to power of 2 ( Bug Fix) > -Add more explanation in commit text. > --- > V6->V7 Changes : Remove extra spaces, refer to functions in commit as > func() > --- > > Joy Chakraborty (5): > spi: dw: Add 32 bpw support to SPI DW DMA driver > spi: dw: Move dw_spi_can_dma() > spi: dw: Add DMA directional capability check > spi: dw: Add DMA address widths capability check > spi: dw: Round of n_bytes to power of 2 > > drivers/spi/spi-dw-core.c | 2 +- > drivers/spi/spi-dw-dma.c | 76 +++++++++++++++++++++++++++++---------- > drivers/spi/spi-dw.h | 1 + > 3 files changed, 60 insertions(+), 19 deletions(-) > > -- > 2.40.0.634.g4ca3ef3211-goog >