Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp480564pxb; Wed, 8 Sep 2021 05:45:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxtX2gVtCUaBxWE+06h5G/HSeDUUN6ldTdg2s2BSOYb7lGehcj0nn18J0pBJEDMadNpLxZC X-Received: by 2002:a5e:da01:: with SMTP id x1mr3275867ioj.43.1631105159096; Wed, 08 Sep 2021 05:45:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631105159; cv=none; d=google.com; s=arc-20160816; b=wxsWi+gmr3epGrdzLr5fsV96YKks2ZArob+tTaGmxBiihwr2LqWKvTTVw5vLNNvapq CiN4crh6tKyVMnqA3+mkXN+Pa5OGQBgFPELamT4FubETLPYBBN/krHAF7Dw/uOS1uY+6 0oysdpSv7P4jqfCk/SgAzKwej2Nn12MEHHF00dr4vIykYadYVte+OY05SkQoWz55vQq6 Xmrm9y5XCdLpkf65J4f/m1WWx5KZ3WohtpAx99fHY2/jyOw/4Z6PFcemxmWiUJez84Mu +8med0jSU8TZiso4zmk0Pd+7Q0lpTQstxwc06tvt9mztJWKl6rGxb7RAbKBcy9ggxzel trRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=tQ/oRH0/DOAVAVT9DA6HnrABsHYorEoEFqH+SpdThGA=; b=WoEUQp0NfFHuaRom5VHXvEBrPGZwHOxjgMXuSANXOn1m3/R/KKHUwq9BDruoTg5c29 cH2Q2HLs6HGm03uQXgD9CMi6rB2FiHBi+PRXss9ZqPWUAk7iUZEyeuy6+ILogxa1U95f kjtWyM/264djf4FwKEH7DWa83C7z9OfbW216KTcixSyeljmZJtyA0g68V/H83WdVE6d3 vy/sBfJsHqyqRtrSYx2zcIAolIx7aJv4QxneK20m+9MqCcNwspBcZktmwO4+wBFEbBLV 2ZoYpklVsCHlzkNwYLEGjCwgG2qAxt2h0L9ztp+Wz/GsGqH7Q44SIXrUh28xuBZnvU2s 1qog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=VgIP4l5O; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 192si1575273ioc.91.2021.09.08.05.45.46; Wed, 08 Sep 2021 05:45:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=VgIP4l5O; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351420AbhIHLWo (ORCPT + 99 others); Wed, 8 Sep 2021 07:22:44 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:32914 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351390AbhIHLWl (ORCPT ); Wed, 8 Sep 2021 07:22:41 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 188BLHtY004258; Wed, 8 Sep 2021 06:21:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1631100077; bh=tQ/oRH0/DOAVAVT9DA6HnrABsHYorEoEFqH+SpdThGA=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=VgIP4l5OdFTSp9xHKJ8kx0uOHSIhye0fvYqNqyPkwKfADE8bceIJ6f2YnXyzqTlyM 7DvRhCha9ukSaAfD4gNffG8JbFWZw0DQjbL7sV3UjAnC/oBoeec7+kXjxWaGeK5KTV zWLcRR6F02bUlhoiFz7Lm0gqZggb5lEZnEJjMXEI= Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 188BLHwU121750 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 8 Sep 2021 06:21:17 -0500 Received: from DFLE109.ent.ti.com (10.64.6.30) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Wed, 8 Sep 2021 06:21:17 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE109.ent.ti.com (10.64.6.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14 via Frontend Transport; Wed, 8 Sep 2021 06:21:17 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 188BLGcW086516; Wed, 8 Sep 2021 06:21:17 -0500 Date: Wed, 8 Sep 2021 16:51:15 +0530 From: Pratyush Yadav To: Parshuram Raju Thombare CC: "broonie@kernel.org" , "lukas@wunner.de" , "robh+dt@kernel.org" , "linux-spi@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Jayshri Dajiram Pawar , Milind Parab , Konrad Kociolek , Tudor Ambarus , Vignesh Raghavendra Subject: Re: [PATCH v3 2/2] spi: cadence: add support for Cadence XSPI controller Message-ID: <20210908112113.smnwmayjb3jit3eg@ti.com> References: <1630499755-18751-1-git-send-email-pthombar@cadence.com> <1630499858-20456-1-git-send-email-pthombar@cadence.com> <20210903185653.7vrfn4qfzvuiaiq2@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20171215 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/09/21 07:27AM, Parshuram Raju Thombare wrote: > >Depends on SPI_MEM as well. > > Ok > > >I commented on this last time around as well. This does not look right > >at all. A SPI MEM based driver should *not* need to know anything about > >the subsystem driving it. That is the entire point of the API. > > > >The controller seems to be able to extract the read and write opcodes > >from the SFDP on its own since you don't pass in that information to > >cdns_xspi_nor_read(). It looks like it is tied very heavily to a NOR > >flash, and I am not sure if it can really be used with a NAND flash, or > >something else entirely. > > > >Which makes me wonder how we should handle controllers like these. I > >don't think they fit in very well with the SPI MEM model, since they > >can't execute arbitrary SPI MEM commands very well. At the same time we > >are trying to get rid of mtd/spi-nor/controllers. Dunno... > > > >Mark, Tudor, Vignesh, any ideas? > > Ok, then for now I will drop ACMD PIO mode and use only STIG mode. > In STIG mode driver configures bus width and clock edge mode for > command, address and data for each operation. But it would reduce performance by a lot, no? I think we should try to figure out how we can accomodate controllers like this before resorting to using the slower modes. -- Regards, Pratyush Yadav Texas Instruments Inc.