Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5412676rwl; Tue, 11 Apr 2023 05:14:39 -0700 (PDT) X-Google-Smtp-Source: AKy350YAZmSD3zfHoVkRl54vvBZHxHyTi6LEJCe99fy9KtbZLBFtDLouFZ6IHqN9oPgx7Y1AD68Z X-Received: by 2002:a17:906:814c:b0:94a:6c0a:63e7 with SMTP id z12-20020a170906814c00b0094a6c0a63e7mr6534101ejw.54.1681215278794; Tue, 11 Apr 2023 05:14:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681215278; cv=none; d=google.com; s=arc-20160816; b=i+3xCCRsD6lVnTBocbHR3Iphn+f8ozkLfedjA0ztACOY15rTYYhDUp/ZNTVDJKgMCr TTFPLYUilcVUut8Qre6iBgCvUVK++FF8W5VlcF6JfCh+BYf7Nayk6dd5uohmCa7rtTGc bDg63rNuiAoDF6Jv9Z1JM/i/CmMnMoUmGO6n/Obdvr/2sTp4qKWVFTsh2zbaYSU+IVyV 6sBPQt8htfbLfLdFU2rmqQh6+zZ5n7FR/h+ZGQF18uOz9HkAgGio2t0Ewii9zwxIbtLl pDFNnDvtgIcfw5GZMkrLGMJi2ZSkOXMtMQJHv+S6byTpbYAGKhStFnkwxlkBQax3ZZz5 fzrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=l9UNlN36fsPSawA7jL6xz+nqRU15bOVFKjiXFGKc+Oc=; b=a/ewz+BiiGhXKpjTolD0CzCVtvSQdIOH6gX295aogbDJ3D7bn2bUGN7/hMwVx5G4ra fYb+0ud00iUk2Or8bUxAM9I+HjJlIyOGYkIlhSCuRGr/0ch3cgPw4Cxg+JUf8A0cM+9q NK/wmSPeDZbLkSTklwNP///H6HV2JhYw0DyyvWtS72t1uZL0/lqYQCppfPj1eN+yKxtX T0kvqmRyXIb5X/m8gyVjnc3GjznUIZgym+L/j2esz6KVkG/00/8CsxRaliKS7qgHD3RV bkfvAJz1QXyNXRgMHZQSVu8qAcogAW7hTvNOTYlFDmEX/JRn1PbA03Woqoyfup2BYLXK 7EMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=JFtsmzM+; 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=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id he11-20020a1709073d8b00b008b17e1a54edsi11654000ejc.788.2023.04.11.05.14.12; Tue, 11 Apr 2023 05:14:38 -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=@intel.com header.s=Intel header.b=JFtsmzM+; 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=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229661AbjDKMN4 (ORCPT + 99 others); Tue, 11 Apr 2023 08:13:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229531AbjDKMNz (ORCPT ); Tue, 11 Apr 2023 08:13:55 -0400 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 428363581; Tue, 11 Apr 2023 05:13:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1681215234; x=1712751234; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=/E7uLg3CXBVdDMjNrQzi7EHdi99oJj+BrcE9HoD6thY=; b=JFtsmzM+MsKtQgtrPoZ8uQ++1ScWZqbL7Os3HagJcxnlyYjNtGWPa9Zv 4ox7drRhVpdQv53GzmLbL6T6r9e5tF8KF82vRnd22aKGSN5zaNg6UKpuW eobgUOOQvHfol6ehD8y34zjs518H6Qax4grLdBqHfD+fUF1csODMNRPWF F1v+0gmI37DXwuQYclTogcm0uF3GCW3U26bAYp2xDBiHxqjGYqShnpzW9 BsBeYY24qbIqkjpCldRkW5RrRw16CU9Mz3lZyfb/7qErWIyHU+Sip3x/L P6G9K2ofKYSqrDE1sALF4dcJS2yGQmqm8ddw7CqD93T/k9EbwhbGiTt/h g==; X-IronPort-AV: E=McAfee;i="6600,9927,10676"; a="406426457" X-IronPort-AV: E=Sophos;i="5.98,336,1673942400"; d="scan'208";a="406426457" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Apr 2023 05:13:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10676"; a="812547591" X-IronPort-AV: E=Sophos;i="5.98,336,1673942400"; d="scan'208";a="812547591" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga004.jf.intel.com with ESMTP; 11 Apr 2023 05:13:50 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1pmCsf-00FFnN-1V; Tue, 11 Apr 2023 15:13:49 +0300 Date: Tue, 11 Apr 2023 15:13:49 +0300 From: Andy Shevchenko To: Joy Chakraborty Cc: Serge Semin , Mark Brown , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, manugautam@google.com, rohitner@google.com Subject: Re: [PATCH v5 1/2] spi: dw: Add 32 bpw support to DW DMA Controller Message-ID: References: <20230330063450.2289058-1-joychakr@google.com> <20230330063450.2289058-2-joychakr@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230330063450.2289058-2-joychakr@google.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE 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 On Thu, Mar 30, 2023 at 06:34:49AM +0000, Joy Chakraborty wrote: First of all the Subject is wrong. You are not touching DMA controller. Needs to be rephrased. > Add Support for AxSize = 4 bytes configuration from dw dma driver if SPI DMA driver (or something like this, note capital letters for acronyms). > n_bytes i.e. number of bytes per write to fifo is 3 or 4. > > Number of bytes written to fifo per write is depended on the bits/word > configuration being used which the DW core driver translates to n_bytes. ... > static enum dma_slave_buswidth dw_spi_dma_convert_width(u8 n_bytes) > { > - if (n_bytes == 1) > + switch (n_bytes) { > + case 1: > return DMA_SLAVE_BUSWIDTH_1_BYTE; > - else if (n_bytes == 2) > + case 2: > return DMA_SLAVE_BUSWIDTH_2_BYTES; > - > - return DMA_SLAVE_BUSWIDTH_UNDEFINED; > + case 3: I'm not sure about this. > + case 4: > + return DMA_SLAVE_BUSWIDTH_4_BYTES; > + default: > + return DMA_SLAVE_BUSWIDTH_UNDEFINED; > + } > } -- With Best Regards, Andy Shevchenko