Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp387154pxv; Wed, 14 Jul 2021 06:24:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJweUfJdsNp//QYZgQtAoVpPTvQJ0CH8RUS53YRu2yamYsdrqPC7awGU2pgAgtzVPQzxoHxQ X-Received: by 2002:aa7:c4d1:: with SMTP id p17mr13065591edr.2.1626269052407; Wed, 14 Jul 2021 06:24:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626269052; cv=none; d=google.com; s=arc-20160816; b=TK+HrCkh+GFASJ3HoSTA0l6R7ZJaPKTyvRy2/HbLU8kII/U5+LKtmGbDJaDgWdoOyk AabtpXwNv6+IH4jym0fVOUxQIMeWCrdIvOoy+zZ6UiBkNrChXEoamPHLN44vW7xjDOUj jSwSMl2HarC2sgO6nW/+I6FnhqN1DGVFoHt2HZxS8mUHMIhUrboh10k1Fn8lm8ePhYcq ox76EEcn1jyHxEoxjNugXWUx9QQdWRVMuLSrMljC/9wmJOaLmVChxlmWVLo/sSvRj9kA JuaqtqF0lw++Fve/yOEDMBABSVTAiXHX7txiPq07JV3GYyabmDbOYgqWJYMW/iqSVTDF qFbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=Kif3yVHVsP1HagVf7aotmktuL7VhKJnfgoj839DTBnE=; b=b/FFMK7RbkMSwdG28ZYEmVYFQDKpYS0w5eOjeGtOSMY2lxQhiHXCa7R6zvhvu83fMG PGjqe/qZTbDAirfo7npwyeiampeAPVGLwHZyDbsFXeDin0EeDwMcHLJwbk+yjwARpJoc gxNf+342+Z9E6ES8PSffQj+fl58a0+dWicFJdQCejB01JeiaPOObmTqPJ4xo5iH2idB5 OXRsIIbn8nvN0B28t8DDJhNK1NHJaj5kl2Oz1sINsp7TDryPOhmN/UcGfkoUrLXye9Ur k18EkNqnqCCGMRh67OUq9IEc+Hfp8XGDv6O5w8aavma3OPfWwe5ZTJAWaN7dYNs6Jesd LV8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=USuPLU+3; 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 bo3si2672756edb.322.2021.07.14.06.23.48; Wed, 14 Jul 2021 06:24:12 -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=USuPLU+3; 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 S239399AbhGNNZJ (ORCPT + 99 others); Wed, 14 Jul 2021 09:25:09 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:57266 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231391AbhGNNZJ (ORCPT ); Wed, 14 Jul 2021 09:25:09 -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 16EDMGXc038264; Wed, 14 Jul 2021 08:22:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1626268936; bh=Kif3yVHVsP1HagVf7aotmktuL7VhKJnfgoj839DTBnE=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=USuPLU+3d6yPSzbPyxnZ4ffVOIWP/sUATTmcBdUv3vaqVp2pF34o4yqN91JGPxm36 GY8UkxA9AqNE8yEKW+gZNKQ6JjmIZF416j1JH3r0xOersiJCMrvWvaGbtMcCMkmTH2 VBwNX14ch1o8JFwZslKJ89lTpHctLSyiFQRTodV4= Received: from DFLE103.ent.ti.com (dfle103.ent.ti.com [10.64.6.24]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 16EDMGwd029918 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 14 Jul 2021 08:22:16 -0500 Received: from DFLE102.ent.ti.com (10.64.6.23) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Wed, 14 Jul 2021 08:22:16 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE102.ent.ti.com (10.64.6.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2 via Frontend Transport; Wed, 14 Jul 2021 08:22:16 -0500 Received: from [10.250.150.52] (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 16EDMDRj129461; Wed, 14 Jul 2021 08:22:14 -0500 Subject: Re: [PATCH 1/2] spi: cadence-quadspi: Disable Auto-HW polling To: Mark Brown CC: , , Pratyush Yadav , Vignesh Raghavendra References: <20210713125743.1540-1-a-nandan@ti.com> <20210713125743.1540-2-a-nandan@ti.com> <20210713182550.GG4098@sirena.org.uk> From: "Nandan, Apurva" Message-ID: Date: Wed, 14 Jul 2021 18:52:12 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210713182550.GG4098@sirena.org.uk> Content-Type: text/plain; charset="windows-1252" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 13-Jul-21 11:55 PM, Mark Brown wrote: > On Tue, Jul 13, 2021 at 12:57:41PM +0000, Apurva Nandan wrote: > >> cadence-quadspi controller doesn't allow an address phase when >> auto-polling the busy bit on the status register. Unlike SPI NOR >> flashes, SPI NAND flashes do require the address of status register >> when polling the busy bit using the read register operation. As >> Auto-HW polling is enabled by default, cadence-quadspi returns a >> timeout for every write operation after an indefinite amount of >> polling on SPI NAND flashes. > >> Disable Auto-HW polling completely as the spi-nor core, spinand core, >> etc. take care of polling the busy bit on their own. > > Would it not be better to only disable this on NAND rather than > disabling it completely? > I am not sure how it is possible currently in the controller, could you please suggest a way? Also, should we have this logic of checking flash device type in the cadence-quadspi controller? SPI controller should be generic to all flash cores right? In my opinion, it shouldn't harm as spi-nor core doesn't depend on HW polling anyways and auto-HW polling is a minor overhead. Regards, Apurva Nandan