Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp2213424rdg; Sun, 13 Aug 2023 14:49:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IESje4hm4ZsqpCmGRTwyM/iWXxzH071fL6CIHitBHp2CRlW2vB1eU/eBh8DtLuCfmu6Vlsv X-Received: by 2002:a05:6402:2806:b0:522:c226:34ea with SMTP id h6-20020a056402280600b00522c22634eamr12383364ede.7.1691963342516; Sun, 13 Aug 2023 14:49:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691963342; cv=none; d=google.com; s=arc-20160816; b=CpbvUU1y8Z1w2an0EUC2qOfATiCsTbQkFXQ100gVttn5qIWQMjrP3ZEUig18KReRt4 GNWxsmKIc4yuI1VCi2avhSiRDMEvdlg37hxg11mCAwUjrtGIzBIYiGk0k/tmnxXhO7Nk 9Vjj4GAIDPDL3mUkYsuNtFeetbyFBMkgh2BVAJvFYnB4nhCtyAXwNgTKKovwzdkio/62 15+bvT1eJy5pxSuvf8aIFJPMWeAoDL9qgV5K6m/Ew4Hxtam+a28XGtwfx+wfDiYk68V1 at/IrsLcnpRTlkJRBu/Y+53u+iGHBk+ZZ9crtvDB5rXWmG/SoTCR4KjXWs/x4oowZwvj QsOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=O4Z7LcreDG3zwCCg78hju/7pGf4/EBg9+ueP2NNKdtQ=; fh=U30r9Mb+zWMVPV8suyxbKYaSIb+T4GCIYBm+s0cczeY=; b=Ys+/yKo/w3fb4v9mqeHABEx/eeaqLMrVnIU30rlOxYr3/WNzAO+3lL+z2CKFz1i7dD 4Efg5sBs+d8rp77C12hnJZEssEVUla9Qz0Zd7hogUAqNwLZRQGgMFwkj0KeRSFPkmvs7 Kq39gqGeE5MN9XpjtkIPjz6plnbXQHMshHybpHBJvfbOEQiqzpW401tAo0Cg1zXQr9ZP 9pv2ZlVNULCUX+cISqIO+LmqFe/O+9Nu2HR8EeLn4JMUNmqdsoeZRDGRZl49jBghwYbW 3TLN/rUflQmWut/MV61d3ht+h2Mi+IVLwlMo3ExkVkEZO7dm7xZ+WER3E2jNShicIFbR qzVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=RZgjxTB+; 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 z26-20020aa7cf9a000000b005236537c1b8si6758104edx.109.2023.08.13.14.48.38; Sun, 13 Aug 2023 14:49:02 -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=20221208 header.b=RZgjxTB+; 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 S231349AbjHMSxr (ORCPT + 99 others); Sun, 13 Aug 2023 14:53:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229646AbjHMSxq (ORCPT ); Sun, 13 Aug 2023 14:53:46 -0400 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4CE41E6F; Sun, 13 Aug 2023 11:53:47 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-99d90ffed68so271077166b.0; Sun, 13 Aug 2023 11:53:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691952826; x=1692557626; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=O4Z7LcreDG3zwCCg78hju/7pGf4/EBg9+ueP2NNKdtQ=; b=RZgjxTB+DrIzRXIoMgo97E0Wkr8GL6dTfpikw9hAguNjLfjlPwT8qvbJ1+npNuN12C +uVlR8cUV7Jed86xWbFLBmMS5NSO/Zx+ZzYLTC4KjGheMTL+1bNseQQM9komo8t//4TE Pdi70Z+Acqtw2QgsSJYadWDW3fg32SkGmILDYJqFiIS6v2TUVa0d6ASgH34SwgdZZTti tR+uWTa4am6mAGGgjxJYmkmePsyjJ+t/rd+FEOgiWVZAVk4Tmgn8LyyVeivviDS1iSiR 7xcAi3J8xqU0imr8ppfztlxwDLlPiVhWEAjJWKTsnch0TKU9STH7BagFVGNayLWXgHg9 xCHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691952826; x=1692557626; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=O4Z7LcreDG3zwCCg78hju/7pGf4/EBg9+ueP2NNKdtQ=; b=fkriz4zNt+s6I8Lyr+l8w5oQ2BUC66tExoTiHPN/XhBSbKl1CccnFreAm4cQ8wY5yl SmnI2DsLPUohy1plYaYDkb0QTbhllVziXPcON6GpHbNecft9uoDpWfkvk+7AgbbSoSWm tEvDerz313z685p1I53ZaXTuAIlzQT9amStQuapT4vBbwaK5e/DJwV6Ra5PNFZRDceFJ BQgfnl0GoKJ+QS/CGxbswbwtUMbmBWpFaTDcIiW8zoeC6out/3AGJcXwwl0U3EvY8rMo 15UmDJuVfT9FE0IRV3tTvMet9e3jdPl//rV7+v+3ZsGUkx0AMLRP7Kdw4txwKkG306CD ecrw== X-Gm-Message-State: AOJu0YwDeq0NVzHcijuklvCeL0BFKzNKw0F9hlIt5Xd8x8vFB4Cpn+t3 Nl4vSVh2PkNYpeoduCgb2fk= X-Received: by 2002:a17:907:7e84:b0:966:1bf2:2af5 with SMTP id qb4-20020a1709077e8400b009661bf22af5mr10686610ejc.22.1691952825534; Sun, 13 Aug 2023 11:53:45 -0700 (PDT) Received: from skbuf ([188.27.184.148]) by smtp.gmail.com with ESMTPSA id g8-20020a17090613c800b00992bea2e9d2sm4787423ejc.62.2023.08.13.11.53.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Aug 2023 11:53:45 -0700 (PDT) Date: Sun, 13 Aug 2023 21:53:43 +0300 From: Vladimir Oltean To: Andrew Lunn Cc: Alfred Lee , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, sgarzare@redhat.com, AVKrasnov@sberdevices.ru Subject: Re: [PATCH v2 net] net: dsa: mv88e6xxx: Wait for EEPROM done before HW reset Message-ID: <20230813185343.rxkdcrvbpoap3gx4@skbuf> References: <20230811232832.24321-1-l00g33k@gmail.com> <20230813105804.2r4zdr6dyqe5dsrf@skbuf> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,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 On Sun, Aug 13, 2023 at 05:09:14PM +0200, Andrew Lunn wrote: > On Sun, Aug 13, 2023 at 01:58:04PM +0300, Vladimir Oltean wrote: > > Hi Alfred, > > > > On Fri, Aug 11, 2023 at 04:28:32PM -0700, Alfred Lee wrote: > > > If the switch is reset during active EEPROM transactions, as in > > > just after an SoC reset after power up, the I2C bus transaction > > > may be cut short leaving the EEPROM internal I2C state machine > > > in the wrong state. When the switch is reset again, the bad > > > state machine state may result in data being read from the wrong > > > memory location causing the switch to enter unexpect mode > > > rendering it inoperational. > > > > > > Fixes: 8abbffd27ced ("net: dsa: mv88e6xxx: Wait for EEPROM done after HW reset") > > > Signed-off-by: Alfred Lee > > > --- > > > > I don't think you understand the meaning of the Fixes: tag. > > The subject looks correct, but the hash is wrong. The correct hash is > a3dcb3e7e70c72a68a79b30fc3a3adad5612731c. > > Fixes: a3dcb3e7e70c ("net: dsa: mv88e6xxx: Wait for EEPROM done after HW reset") > > Andrew Ok. I didn't notice the "before" vs "after". But the patch still needs to be resubmitted with the right Fixes: tag.