Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp5518783pxv; Wed, 7 Jul 2021 05:48:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzerAZsPGw9ODIbUeuFkgvsmdwNt7A/jNym+JU59qTIUqyGTfO+qeXjV1+EAdBa3Ptjd1RH X-Received: by 2002:aa7:dd5a:: with SMTP id o26mr29643605edw.277.1625662100237; Wed, 07 Jul 2021 05:48:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625662100; cv=none; d=google.com; s=arc-20160816; b=u5uGUpRitO9woIXQlqMS6zMkvy3ARjLPmD0akWO4N/DE6VA6IVwOQOxH9fnrk1n5uF szD1jiPK1ZIXum9mTrA2zMuyL8uRgBi+veJ2S3T2cSLN9RrkH4CwwgJjOkg7PJ7w/ioc YaZU361CuxprGgBSkMrhDyMyQSa9hdUDytdMrhsaQRlMt+0BnfDf3gwPF4fs1yvONr1d MPLLKEqnprPK7fVT8EN8QYABHaqO4po1KRVMQxnOQDjmsvKiNT0Jd9EWyw/24tcH1pWf 4sk1VTAiFGx0fogY0kUZ41IP6ZPA9DOH6NDw3PyJc8rg0SzDKEyGNNAtxHLUX+AwtQrC cZyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :dkim-signature; bh=qo7IrCTVE14UKRC2CdDWYJ11m1JINF0MvvrqxzPwY3E=; b=yXsW7BBdgaWcMex1hkkz+LgHhdvzgoZIQfYL8f68lhbMVx6oDjqDhZwduZ/+KOgqUK TIEex/6+lbwHWis56mF7wsBqWa2v/3OeDRnZ2jleo6uzkUW4KGvn2vNFas6DhDbPIw19 m98uFKgQzxeBWN2bYRjBoGo24SO0ti0yuIdR0nZDa2sp3sBzUul99TJm+vd4upboDdVR XbCfJC+wIWvQ06NPpkFdey5hCOHXM/K+MhPIEzCcgXu4Gw/CbSMXUS94Cg0N5X07+nrP ldRb2t4MWUacamX3lqW5aX4OFTLSxDg9rVOY42jUaQOx4ZGxnjOCK2j1sXAB7oFJj5N7 6UQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b="lVB/mAdp"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s24si7200017ejd.537.2021.07.07.05.47.55; Wed, 07 Jul 2021 05:48:20 -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=@walle.cc header.s=mail2016061301 header.b="lVB/mAdp"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231487AbhGGMtn (ORCPT + 99 others); Wed, 7 Jul 2021 08:49:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231485AbhGGMtm (ORCPT ); Wed, 7 Jul 2021 08:49:42 -0400 Received: from ssl.serverraum.org (ssl.serverraum.org [IPv6:2a01:4f8:151:8464::1:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6FDCC061574 for ; Wed, 7 Jul 2021 05:47:01 -0700 (PDT) Received: from ssl.serverraum.org (web.serverraum.org [172.16.0.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id 88DFE22239; Wed, 7 Jul 2021 14:46:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1625662020; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=qo7IrCTVE14UKRC2CdDWYJ11m1JINF0MvvrqxzPwY3E=; b=lVB/mAdpyGVqTGaBJKxuwnkrbejg7HMYL5m42dvn0PM708h38NRq+Y5cAj8uCtWVAvSNSE ZNCGlm3kVF0pEiZKzOgR8jIPUON85s/Lb+v6vP+DKXUn6IA/Hp1XNYIs33qe3kviv2984L B/ZggPZUe6XscBGFd4PN8ZjsED2Y1RM= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 07 Jul 2021 14:46:59 +0200 From: Michael Walle To: MODEL WORK LST Cc: tudor.ambarus@microchip.com, p.yadav@ti.com, miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mtd:spi-nor:Update Winbond SPI NOR Flash device ID In-Reply-To: References: <20210707101628.GA27472@pn10-Veriton-X4610> <35c2e5faa770e228bd16a2186c8caf78@walle.cc> User-Agent: Roundcube Webmail/1.4.11 Message-ID: <59959af0f756109b02fb7c19f88c35d1@walle.cc> X-Sender: michael@walle.cc Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Am 2021-07-07 13:58, schrieb MODEL WORK LST: > Shame on me, I don't use the plain text to reply. > Please allow me send again. Please also avoid top-posting ;) > It is my first time update patch for Linux, please advise me if I do > wrong. No worries! > We are testing these device by the NXP evaluation board. Ok, this should then go into the commit message, too. Usually the SoC and the SPI controller which was used for testing go in there. > But the running Linux revision for that board is still 4.x. To update > the latest ID, > should we prepare the system that can work with latest Linux revision? Yes that would be preferable, either use spi-nor/next or just linux-next [1]. There, my patches for dumping/reading the SFDP are already integrated. > For the test process, I was wondering to ask mount the device to UBIFS > is a good way for test? It depends what flags or features are you plan to support. Ususually, reading/writing the raw mtd device will be enough. If you also add locking support, for example, you should also test the locking by using the mtd-utils. I'd say testing whole UBIFS is overkill. Bascially you will just make sure reading and writing is possible. And if the results make sense, eg. does it actually use Quad I/O or Dual I/O. Also look at dmesg and see if it is probed correctly. > For the ID, this time we add new ID that is not include in the > flash_info[]. > And we would keep our device who share the same ID have compatible > with each other. > Make sure the FW or SW only need to maintain an unique for each > density. > If the same density device have different behavior, Winbond would apply > new ID. Oh I wasn't clear here. FW is not firmware but your 'FW' model. Eg. the W25Q32FW. In my experience it shared the same id with W25Q32JW, if I remember correctly. We do have many problems with vendors sharing the same flash id between different flash models which then have different features; we have a hard time distinguish them at runtime because they appear to be the same by looking at the JEDEC id. So if you are aware of any other winbond flashes which reuse the IDs which you are adding below, that would be good to know. And to make you/Winbond aware that this is not really good and if possible should be avoided for future chips. > Or have application note for customer to aware the difference. The problem is not the difference, but the fact that we cannot detect it on runtime. > For the SFDP, I would check how to work and fill the information. Great. Thanks! -michael