Received: by 2002:a05:7412:3290:b0:fa:6e18:a558 with SMTP id ev16csp333606rdb; Thu, 25 Jan 2024 17:46:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IG2XS3zjNk7jBMmenSpW1m7TeTuy4/gWA+ZU+TCLMgfbNE29dMAvfAXy9NwJ9K0oAfIVWMr X-Received: by 2002:a05:6a20:244f:b0:19c:8001:d678 with SMTP id t15-20020a056a20244f00b0019c8001d678mr337730pzc.60.1706233560288; Thu, 25 Jan 2024 17:46:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706233560; cv=pass; d=google.com; s=arc-20160816; b=gLZjK7kC3lwIGeIUjPc9eNtt2ecF8RSRgo8P3zsXJLrmnzO/djGOzmznnqieUYZE3B 5EiAttg770NTunO02DGgRSbuW5Wi5Rg1zSkOIdP6e9pHVUQUPtqdGwXZ6eyUEXSr9BFJ B94c+C/dWLGPBwOKGPQxrbZOY3pSj9Qgl0tq3egjpu13yHZv1tYgdayNCxImVbLbv0/8 gN7DcvvMXxE9+A4js238CUtAZSURQEgs5tkTTaUL4LEI9LpSEyr3ZgiuG6g/Druc/t57 nBuqyVghoUdtDHuVF7g7jAKIEnhahiQymNnNGucWF5gBK95BOYwP0dfzlYw779HbodbX X6oQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=mGndTaMbzKrye6eY5n+umXIma64hlLmLq8ZTlgknYcw=; fh=/hAmJw0d8BETarB+C1L9+gn59+2bpc+d2TQF83H5x84=; b=uh2N2geWNOUONiFJB4B57/z3ucv11wWAdldRcIvVfXq4FhOXIYmAvbnnQA7yZMzwV8 b0gIQdyvADsJaB+k9fpi+Cc26CPMScwXZXvJo2zzdmF8p5yspUQaFOXgL81lwzhaOC4g yl/5uRHSveTE6G8/oSang/OKgEyMxDx6BJBI4nOb7VNsNUy62a5gAcyOpi4XLUW9dxCQ bIyLKGGu71XjwIiJFI+jhbPCkU70R+9qi6EuKJSLYeU1BdLSfr4vMHBhzkMLrLYo6baM v8364bv4IQTU1OAsUd9gF4gfsq4t5vMMlSBCVHucvcYWY6de99kwKwHfY5WFGVwUdUk8 DRsQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=BIKfNCa4; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-39513-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39513-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id u24-20020a656718000000b005ce018f427csi230270pgf.235.2024.01.25.17.46.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 17:46:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-39513-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=BIKfNCa4; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-39513-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39513-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id EB45E28FA8D for ; Fri, 26 Jan 2024 01:45:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0393C7493; Fri, 26 Jan 2024 01:45:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="BIKfNCa4" Received: from mail-yw1-f178.google.com (mail-yw1-f178.google.com [209.85.128.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C2F7B6FB9 for ; Fri, 26 Jan 2024 01:45:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706233553; cv=none; b=A2RYxemz3LdNOqlF76QhM4huBrqMhGMlkYfgpNygVNEWZnj4gKeiRj/CprfJRk0swq23auIUSqAe03wiiYOwfjTNvaJrpFY3jvKvUq9ChCu+upU3CvIs+R/JfkNH5WyDwwEEjKengH3TyfkaavvygB3oGVYL3dRWgSec5xtgcaU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706233553; c=relaxed/simple; bh=mGndTaMbzKrye6eY5n+umXIma64hlLmLq8ZTlgknYcw=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=E112KhiO93CB88+8x+Dqs5bSfMWPFFXWFd2V96lKlugw0Y1p84FryHxm08VwgOEiNYNtVepyOEMOHPqoY8honFwJcYIpyvOg1z2qZGgna4eHudwqsoRhamwwKct1uThMunoPztNyyEjdbMTvrjPqgszP/2ef+rKPO8JgeosHf44= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=BIKfNCa4; arc=none smtp.client-ip=209.85.128.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-yw1-f178.google.com with SMTP id 00721157ae682-5ffa694d8e5so12268697b3.0 for ; Thu, 25 Jan 2024 17:45:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706233551; x=1706838351; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=mGndTaMbzKrye6eY5n+umXIma64hlLmLq8ZTlgknYcw=; b=BIKfNCa4hZeWawsD1Y8bXH0VLuuLigkkwQ7RIwr47Lc5Y2VUKKwm/BQbfNpuObDyp8 T6qIbVKJr0AABYbnVSPEK6fLpWeDZSun6QXKivMxRV/ZmuabiGFdGKU8Nu+mao3qhJGs O8i2V6nJ1JNMqipwd5HaBgV+4kIV4dKMvu9T8V2xmurp75zVhL0WKvJDkYpPvcpgnE6T kLZCNi0Ohp45gcKeqMq2gtCU723QaG3OMb/4eguGaK7gAyQJhypyhAM5WfagecVOCTi8 KSrkuXqpNnzyDoSG1OWALRRcmvSAd09IpBvaZjkd4C0y25f3ErdPh+BKTLRI1Xxr7LXv cpxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706233551; x=1706838351; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=mGndTaMbzKrye6eY5n+umXIma64hlLmLq8ZTlgknYcw=; b=UPfhLqmI26aS5jTIQ1YYrd7TvQZXN5f49uiK9UW1kDYtWWPxr0W5BWbmKjsG0snJgM FV2zIwWEKQwMZyC+ro3TwgAzBurxs/v3IhuI40lX3TjP75DEMlT5GhBCHXz9l81IcylF mAE5W1KHkJt4233fGQ2DO3Uk58dqNFE6uiqW85gryhd9Voi7TKlKgrae3thmKHtg7uLk M/jMRe+NfiaAPhpwm7V/nHIqIhaO0V3JzxajC69UqqM0GSK24ixxo4VWw4yMefPL9KUj Kl8tidwlNXnc6O4UyZVqOfXzdW++9HGpDJPigD3X6FdO/GZ0GuVois9aeZOGdtCOTkx4 CM+Q== X-Gm-Message-State: AOJu0Yy3AWTO/3Nrv+vBEZ0uoVcTUXS1axzniYBYk8Ot65khhKF1Chkq OWP+LVZiC/vhgvhzepmAf4c3ejuqOp1OIUM/fg5e1qQ3QSxBGQM/+ACStNWZcJuF/90DHXndVfb gz1+JDPC78+1dk5cg/YfpJRmaZ+o= X-Received: by 2002:a25:aa54:0:b0:dc2:22a0:9ab4 with SMTP id s78-20020a25aa54000000b00dc222a09ab4mr110613ybi.15.1706233550646; Thu, 25 Jan 2024 17:45:50 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20220413083824.247136-1-gch981213@gmail.com> <20220413145843.46a3d9b5@xps13> <20240124180848.3647d5c9@xps-13> In-Reply-To: <20240124180848.3647d5c9@xps-13> From: Chuanhong Guo Date: Fri, 26 Jan 2024 09:45:39 +0800 Message-ID: Subject: Re: [PATCH v2] mtd: spinand: add support for ESMT F50x1G41LB To: Miquel Raynal Cc: Ezra Buehler , linux-mtd@lists.infradead.org, Richard Weinberger , Vignesh Raghavendra , Patrice Chotard , Boris Brezillon , Christophe Kerello , Mark Brown , Daniel Palmer , open list , quic_sridsn@quicinc.com, quic_mdalam@quicinc.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Miquel! On Thu, Jan 25, 2024 at 1:08=E2=80=AFAM Miquel Raynal wrote: > > According to the datasheets, the ESMT chips actually have a 5 byte ID, > > the last 3 bytes being 0x7F (JEDEC Maker Code Continuation Code). Why > > can't we simply extend the ID in esmt.c (as you had it in your original > > patch) and increase SPINAND_MAX_ID_LEN to 5? Or, alternatively, only > > extend the ID to 4 bytes? > > > > If that is the way to go, I would be happy to provide the patches. > > Please send the patches. Chuanhong can you test them? I think it should be fine to set MAX_ID_LEN to 5 and add more 0x7f to the ID definition. Unfortunately I don't have access to an ESMT flash for a test. --=20 Regards, Chuanhong Guo