Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3113919pxf; Mon, 15 Mar 2021 01:30:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxmyEbmXSpFsyXt9csWPLgBluJcwFGFpGkD9d9WxfAPCAO57XyP2Q2Gm+X/1JrcQw9fQwRT X-Received: by 2002:a17:906:1519:: with SMTP id b25mr22396279ejd.254.1615797002686; Mon, 15 Mar 2021 01:30:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615797002; cv=none; d=google.com; s=arc-20160816; b=bUlQoSvsmlKI5Wj7JM9XH1R3D0KnOihTMIiAlTK1Wc8s26KDcToepWiXxMBXHKGJ0f 3ElhgKwbM+ZXK+P42U3LYThcZYJcjn50lwSWnGiCGNxVXmbRgTk3t60mmXB3s8Y01srb /bz2ErN3NKwHUj0znQF2QbHMsYlDIQ8AiTGRWGXjcA5HGbGpHRGzweNDU8Vb+24Bqj31 bj3WBoO/nWbhWl/0q8ZAY/vC8J4H+P7tlKvVq255IX8qAM4B7NjuhbGKRK72x8sUz/2e ZjEMP2z1vRQYloEq94ntslKlu9LNIyym8yY5EG3M6hPqqop7GsTr+tlyXD8h4qtz+nIL YlDw== 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=cer44ESuwilc78S3ENaREQDsWOxzb4fnQ57VISjGvWg=; b=S3/hadSz9kXp270jX+mRFTQ5+ZDxmixcA/NtOVtMjJryqLGmq8cIAspeCGdtN8gyzW dKS3ehdTWmhTZkG6eAtdbqFXTU1MilwJS0ijlRlsUDrrLzqiT3SRSNFXDZIuWAYW8ZVO R5QSIaUOZA7J6jRbsiia7cadCBHn7zalI5grPi+W2Txyh8BIwXgeTpuDoPNwdZUQcH7d iTxd+DoLTxp/u1c60kFzoHyOjrdR0qvKgEVomIvHu7PuI/7vu5s9OXsYwP2YANftdtrX kKqD4Sm8uolCQ/9mDWC+uPYgueNZdBcjBbSP4S4kXz5gZS+reNbb//HtUs5yc2ZsMzj8 HgTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=EbZGdYIm; 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 hq38si10412809ejc.350.2021.03.15.01.29.40; Mon, 15 Mar 2021 01:30:02 -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=EbZGdYIm; 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 S229512AbhCOI2o (ORCPT + 99 others); Mon, 15 Mar 2021 04:28:44 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:54610 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229880AbhCOI2b (ORCPT ); Mon, 15 Mar 2021 04:28:31 -0400 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 12F8SQ1Q106679; Mon, 15 Mar 2021 03:28:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1615796906; bh=cer44ESuwilc78S3ENaREQDsWOxzb4fnQ57VISjGvWg=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=EbZGdYImfBTt4n86ogAWpVYogIMHsYM+HeZD/6QdC62pUjKpnzyyk8sbFGM57dvWE 7TYikiI4Ut3GLQ4HK87s0NCsfaQtty52qyBgXsCOTtoIACQ3x4Gvi37ECQ8X5j8NEO 4ulliRfgZlNbcZlzd2ys0rpePaCi8Krn65qKcZrc= Received: from DFLE111.ent.ti.com (dfle111.ent.ti.com [10.64.6.32]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 12F8SQ4I022066 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 15 Mar 2021 03:28:26 -0500 Received: from DFLE109.ent.ti.com (10.64.6.30) by DFLE111.ent.ti.com (10.64.6.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Mon, 15 Mar 2021 03:28:25 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) 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.2176.2 via Frontend Transport; Mon, 15 Mar 2021 03:28:25 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 12F8SOHM110233; Mon, 15 Mar 2021 03:28:25 -0500 Date: Mon, 15 Mar 2021 13:58:24 +0530 From: Pratyush Yadav To: Tudor Ambarus CC: , , , Subject: Re: [PATCH] mtd: spi-nor: Update comment about the default flash parameters Message-ID: <20210315082822.xmr2wdfjg633jpdp@ti.com> References: <20210315055634.17332-1-tudor.ambarus@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20210315055634.17332-1-tudor.ambarus@microchip.com> 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 15/03/21 07:56AM, Tudor Ambarus wrote: > s/legacy/default. spi_nor_info_init_params initializes some default > flash parameters and settings that can be overwritten when parsing > SFDP, or by fixup hooks. There's nothing legacy about them, they are > just some default settings, if not otherwise discovered or specified. > > Signed-off-by: Tudor Ambarus Reviewed-by: Pratyush Yadav > --- > drivers/mtd/spi-nor/core.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/mtd/spi-nor/core.c b/drivers/mtd/spi-nor/core.c > index 4a315cb1c4db..26f681cd3a98 100644 > --- a/drivers/mtd/spi-nor/core.c > +++ b/drivers/mtd/spi-nor/core.c > @@ -2913,7 +2913,7 @@ static void spi_nor_info_init_params(struct spi_nor *nor) > struct device_node *np = spi_nor_get_flash_node(nor); > u8 i, erase_mask; > > - /* Initialize legacy flash parameters and settings. */ > + /* Initialize default flash parameters and settings. */ > params->quad_enable = spi_nor_sr2_bit1_quad_enable; > params->set_4byte_addr_mode = spansion_set_4byte_addr_mode; > params->setup = spi_nor_default_setup; > -- > 2.25.1 > -- Regards, Pratyush Yadav Texas Instruments Inc.