Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1258293imw; Sat, 16 Jul 2022 02:33:34 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t2C+Q+TJEHBToIXfI6JlnzJktPsptBHoZLDrUXdjfMH8kxo8zUtljaSk3C+MZDnkOBgZWB X-Received: by 2002:a05:6402:500e:b0:43b:6f0:756b with SMTP id p14-20020a056402500e00b0043b06f0756bmr25023161eda.221.1657964014377; Sat, 16 Jul 2022 02:33:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657964014; cv=none; d=google.com; s=arc-20160816; b=HVX9f4l+fsBDQSveZWLjYw0v4K7GSJZ/qAOCmHSc1EtO0Cvp191t2Tuuxsc6kQRtCY /BulBkIIkmmrRZZ/J0lEns3nbWxP6VfVYni+xIkVOnywwMEcLXJvulh6ETjcNCicwrdf a042RyTaHR1nl4NSugnJy6CrjHsxE7TGp4a0FT+uiykKMegQ8fFmX+ivAzUwMwbeMfSV SJnXYlk1FRvBFnOZtaVVArIBPbfsW6SvHrb8QWYj2cIxqftJWzVp20UeEKQEkvGnM7Lz PpNSsP4HGzUTGWFCOk0IMdAv+K1Bh+P1ifuRtyRB8IwTLFmOwqpn8KwfkMubzqm8Id9g 6WUQ== 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=yQGL23JsPeSeAEQf+zFFrbIZAmWH8zEFfmNMuLuPhpc=; b=qrE/U4spco3wWl2VkLEJYP4EWbfqS5gkI25BnU18XngLwhAJU63nKHIml/nprum5VI ibBRhEzRgbRQG7rY2L6csGMEwodrg81ff0YLcmRBCK9xDSRerfJ2JEWt7UT12dnE1fHQ 1lxRDaeMlTDoAW34TYvoi9gWnQ3qLT40cghfvC6wvALIUuCOZLhEVZMzg5upCaV5aH3q TsUzvnhZWdvOgKMXNbI3Q0Oqrnzyla7YjitH/MATmRb6LtaAtgaUoevyP9i8t3sIY1ib vqCtfxufsXKOv24SftGDX9C2RdDBNzGfAyc5vcC4JJLa17PQQqgdfi64365FL2YlgEi1 h0fw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=adivtjJ8; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gt11-20020a1709072d8b00b006feb0e0856dsi9716445ejc.653.2022.07.16.02.33.09; Sat, 16 Jul 2022 02:33:34 -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=@walle.cc header.s=mail2016061301 header.b=adivtjJ8; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229882AbiGPJLk (ORCPT + 99 others); Sat, 16 Jul 2022 05:11:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229571AbiGPJLj (ORCPT ); Sat, 16 Jul 2022 05:11:39 -0400 Received: from ssl.serverraum.org (ssl.serverraum.org [176.9.125.105]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 589301D0FF for ; Sat, 16 Jul 2022 02:11:38 -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 D9C4222239; Sat, 16 Jul 2022 11:11:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1657962696; 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=yQGL23JsPeSeAEQf+zFFrbIZAmWH8zEFfmNMuLuPhpc=; b=adivtjJ8EP/gIxSf5jgl/wyTKIUeMTPJctYdpQUagTsYiY/I1+k09dm4e8QVscwkFtWpm+ we9xa/wMvvkraVLkJjqGs+PspYY7dJflaK+RM5eSb6N0qX+4xNhnv1EWOyXJztxj4c3Fhq h9nP3QjkbhljrVJjDoG+Lapm6FDmjYQ= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Sat, 16 Jul 2022 11:11:35 +0200 From: Michael Walle To: Jae Hyun Yoo Cc: Tudor Ambarus , Pratyush Yadav , Jamie Iles , Graeme Gregory , =?UTF-8?Q?C=C3=A9dric_Le_Goater?= , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 2/2] mtd: spi-nor: winbond: add support for W25Q512NW-IQ In-Reply-To: <20220716000643.3541839-2-quic_jaehyoo@quicinc.com> References: <20220716000643.3541839-1-quic_jaehyoo@quicinc.com> <20220716000643.3541839-2-quic_jaehyoo@quicinc.com> User-Agent: Roundcube Webmail/1.4.13 Message-ID: <52fb683e27b3208d07d9f9d1ab44148d@walle.cc> X-Sender: michael@walle.cc X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS 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 Hi, Am 2022-07-16 02:06, schrieb Jae Hyun Yoo: > Add support for Winbond W25Q512NW-IQ/IN > > Signed-off-by: Jae Hyun Yoo > Link: > https://www.winbond.com/resource-files/W25Q512NW%20RevB%2007192021.pdf > Reviewed-by: Cédric Le Goater Thanks again for finding the real issue here! Reviewed-by: Michael Walle But also see below. > $ hexdump > /sys/bus/platform/devices/1e620000.spi/spi_master/spi0/spi0.1/spi-nor/sfdp > 0000000 4653 5044 0106 ff01 0600 1001 0080 ff00 > 0000010 0084 0201 00d0 ff00 ffff ffff ffff ffff > 0000020 6f00 7074 7420 7365 ff74 ffff ffff ffff Did you noticed your SFDP data changed compared to: https://lore.kernel.org/linux-mtd/20220710145721.1207157-1-quic_jaehyoo@quicinc.com/ Which makes me wonder if you ever had an offset 0 with the OTP_INFO(). For Winbond the first OTP region is actually the SFDP.. So you might accidentally modified it. -michael