Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp784782pxb; Wed, 13 Apr 2022 12:16:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxgbjt5Ax/CieUIGSh2l4CuqaGhB2y/vILVhlTHnAzOU5XnUKVlJ/wCqr3/XZ6l23JN9FSE X-Received: by 2002:a17:907:c06:b0:6e0:9149:8047 with SMTP id ga6-20020a1709070c0600b006e091498047mr39501634ejc.765.1649877416690; Wed, 13 Apr 2022 12:16:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649877416; cv=none; d=google.com; s=arc-20160816; b=atVwfqSOZT8OI0vvbzMlRrcWlafuCXxIAeoMHj2UzLj87j4AMyYR3L3bLRrI2EXqZX SxZ4SN3Ob7annj27v9L0nk2Jpfay0IFDiCkZmP1Vt3FvVgaHy4TY0l/2qX5JTAZYzlBy tuu+lrEq7Zjk6YPkIZF0OuHAmyUecMYJYx1z5clj1od9XB2Y9eTxMi6iplVCWKVtWkzL 0LtQWtym3+eaNnc5mR5LQpiB6UKQa4o5ZbX0Ns2j5rdztGsfBMA8Csl7w/vicDdVy11U SD+91C0Vhkb4N/krbIgft4aBs511QxpoARRCf44L49kZnNm3FOoCaWberfWZ6+KwTOcO z3Iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=6wkFRWELvsWb3/zmRGR+hVLRqoZs+C5DWbC/pH40T+c=; b=cJyEj2zin+T95E9Ta9UKiKjGIoACqG8yB31qCRVxhBzygQorQ7CV/5G/BZ4Cx/aeyn 0Z+O0LuyT/lj5gBGgK5zS/4rMaaJ20B19imjU4TElQutkDMEJaJZ1By2CJxdj1QJ7K1n pVFc//e5fI6DrtZwVBGTxm8a6j6JtFaMpdxi88hymMLn6+xnJBnmIYV69jxKA73cIM7J 3JYwusDpMC2i7fgzhihSF/JC0L2GySDIl4C3xPNZ1lqIYwzG0POaPS5ZLHK0Cj8IgLcE n3LUpcC1bGmxgtsZmWQ8CH094arL7tI0lfWUVScDO9r05rEWuKCt7u4+Ffeu9Qc1v7G3 c9Cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ddebltwD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r23-20020a170906a21700b006e8afe87d02si495498ejy.843.2022.04.13.12.16.31; Wed, 13 Apr 2022 12:16:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ddebltwD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232358AbiDMFKJ (ORCPT + 99 others); Wed, 13 Apr 2022 01:10:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229539AbiDMFKI (ORCPT ); Wed, 13 Apr 2022 01:10:08 -0400 Received: from mail-ot1-x32b.google.com (mail-ot1-x32b.google.com [IPv6:2607:f8b0:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9922C3DDCC for ; Tue, 12 Apr 2022 22:07:44 -0700 (PDT) Received: by mail-ot1-x32b.google.com with SMTP id e25-20020a0568301e5900b005b236d5d74fso495259otj.0 for ; Tue, 12 Apr 2022 22:07:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=6wkFRWELvsWb3/zmRGR+hVLRqoZs+C5DWbC/pH40T+c=; b=ddebltwDJ4OBZiB316V4l/Sft48li0+vcOSQqUlpq0VN+Spu2CTs8ctEiuijCr7aQT FG95zd8jZE/76mVDfeCD9HQYCwgVkSFL/jf9/9SDxVGa23EKxRJKZx15yfQMEwE0Rvmm IvqZWI7D7fUj9i1dK1WdDGwzqvPFODOO5sM8sSeASZu4LW5deq+VGJvjjRvkzHyZEv0H xb7oIOgn5/Za7RnQ5zu8nH28rLtWE78X0vAsq48JUnGFj6Iw9CB2Fd7XwnNOtTmHhFAu CrKFENCBl7JgPiGUvjQy9Wv2yXBCXYrfe+EMaG43hukD71DdfDGAmhdPqvYNu+K0Ax6n rxpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=6wkFRWELvsWb3/zmRGR+hVLRqoZs+C5DWbC/pH40T+c=; b=ewlLnECNkgoiGVO3oYk5+wfCcXwgXAQBk2oaERAQPWpzA1LZ91E6aelfSrdk1NvQ1Z xA+dKceCjKBoZnCHViwrzoAuw+EMNVYlooAzXFJcgw0Pq9bn3X4Hef6GJ9HjePuh/xdT VxiEjHrz5PthxuosH50INiw9PFZeVLjHf1baQa82hYD6yTVPW4hVKDPTT/r1WpZs/e21 s/JaisIardhcW5YI+B39b7oX/oojgdrQ+grHARAbDMvyoAVYDs/2Nv77DM1Y/yWxnAqa ugKZpMNcxEC5TAJcRFUyd7OrGE4bWZfO2jwZVEghkricjk1UTc97wtg/y63bGk1cHbOC YDYA== X-Gm-Message-State: AOAM533fr2aDUQeaP9mxd12vEbMfh3QuFMoEFOqIjBcNtlS5ZPEOHHBX RRWE87CCCEhqCQVYNgQT2f4xIJymfsywR3UxVss= X-Received: by 2002:a05:6830:2b0d:b0:5cd:aca2:f3f2 with SMTP id l13-20020a0568302b0d00b005cdaca2f3f2mr14329027otv.212.1649826463891; Tue, 12 Apr 2022 22:07:43 -0700 (PDT) MIME-Version: 1.0 References: <20220413042337.160263-1-gch981213@gmail.com> In-Reply-To: <20220413042337.160263-1-gch981213@gmail.com> From: Chuanhong Guo Date: Wed, 13 Apr 2022 13:07:32 +0800 Message-ID: Subject: Re: [PATCH] mtd: spinand: add support for ESMT F50x1G41LB To: linux-mtd@lists.infradead.org Cc: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Patrice Chotard , Boris Brezillon , Christophe Kerello , Daniel Palmer , open list Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 13, 2022 at 12:23 PM Chuanhong Guo wrote: > > This patch adds support for ESMT F50L1G41LB and F50D1G41LB. > It seems that ESMT likes to use random JEDEC ID from other vendors. > Their 1G chips uses 0xc8 from GigaDevice and 2G/4G chips uses 0x2c from > Micron. For this reason, the ESMT entry is named esmt_c8 with explicit > JEDEC ID in variable name. > > Datasheets: > https://www.esmt.com.tw/upload/pdf/ESMT/datasheets/F50L1G41LB(2M).pdf > https://www.esmt.com.tw/upload/pdf/ESMT/datasheets/F50D1G41LB(2M).pdf > > Signed-off-by: Chuanhong Guo > [...] > +static const struct spinand_info esmt_c8_spinand_table[] = { > + SPINAND_INFO("F50L1G41LB", > + SPINAND_ID(SPINAND_READID_METHOD_OPCODE_ADDR, 0x01, 0x7f, > + 0x7f, 0x7f), This patch is broken. SPI NAND core doesn't support 5-byte ID atm. -- Regards, Chuanhong Guo