Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp2097987rdg; Sun, 13 Aug 2023 09:05:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH3tF5Ca4Ncr1xdOwHqAf/Gmq2j3OWWUD2dQbgWNC3nBMt0aapaC8D4ic2n0qELaZcoRptC X-Received: by 2002:a05:6402:50cb:b0:525:4d74:be8c with SMTP id h11-20020a05640250cb00b005254d74be8cmr4109126edb.14.1691942727072; Sun, 13 Aug 2023 09:05:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691942727; cv=none; d=google.com; s=arc-20160816; b=s5l3PuWdieCOU0w+MF3klM30t5KJez6JD3q3Aa9Vh4oQ0oePhzYou59nXGhHxGMA/I bUm68piiiDH2o4huyt++DOfOBfgAfhDHG+F+jZjxKw8qT53BbFhRgbK/BGfEaYtxj+00 15kscU6Va2z1OjlScYrUx+YjnQQn5tLedlzdx1XgxokVxEPZDjg03m+8QdtOvX3ndseJ +QX2yszpUzJy9ZhQn+4UiBwabaqzJ8/Uq87tohgn63JlBa9hmDU7WmO0PnUEBchU/xz9 W5Rg+3nUoDAIADVRdqLu8onukHty8W/tlQ/oz4FRGumud/Q0HZajnhiuTaJYVSvStXJN dPgQ== 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=W2wqWQ3KB/fmDRV98QTDbhm4GDqKPYDoQbKjO7pgA2A=; fh=gewksOFnWGaZ+R7WN42igUQnIYg/H/GnboreyJWVVkY=; b=TFUs9UwD2FJtBetS+6ssMKuxNhd9N/dZqhXGOq62pOAKglSjbhuqWMFKCqip0i9UFo k5U2tpe658RQdPANPeNyJ1PLOpjZ+YQmVas6J1cmQVL7ijL7xFxmHTvlGp1F5ilhMLnF ZBhIb/IGzA3nXIfH9nqMtrasvE0XHMNj6fcLG4EBu/MQE1kZjwVVuXdXkoTNr6qsxjJ4 P28lLbBtWH5JuLiWnYwY4J0lVTRIjYWzblwLFJuD8baiAucTsAL0XJ8VQpLmrW03JPju 0+SAtNrMZ+CqjnhyCuRCK64nQOfxwSYRK78zRYyZDWN1ghI9UPTgRD+pn1ZdS10Hciac X39A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=sBRi+Csj; 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=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z20-20020aa7d414000000b0052338b247b1si6711098edq.315.2023.08.13.09.05.00; Sun, 13 Aug 2023 09:05:27 -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=@lunn.ch header.s=20171124 header.b=sBRi+Csj; 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=NONE dis=NONE) header.from=lunn.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230379AbjHMPJX (ORCPT + 99 others); Sun, 13 Aug 2023 11:09:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229688AbjHMPJW (ORCPT ); Sun, 13 Aug 2023 11:09:22 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B16ACE6A; Sun, 13 Aug 2023 08:09:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=W2wqWQ3KB/fmDRV98QTDbhm4GDqKPYDoQbKjO7pgA2A=; b=sBRi+Csjtr6xBLC3I5dkaj/nPc pd49JvNMDPv6dCdCev/pwlJfth5VEqJKYm4uM2L0tUmD3MmypHo1S68O6LzSDDgMHtJyiKKWgxJxn G7aksQUy4fSMml9R7ijGqMdGRUXTr5ClXS1HR9b5awTC4qrKlvN/puBIGB1zWLNQxQxk=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1qVCiQ-003yOJ-CP; Sun, 13 Aug 2023 17:09:14 +0200 Date: Sun, 13 Aug 2023 17:09:14 +0200 From: Andrew Lunn To: Vladimir Oltean 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: 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: <20230813105804.2r4zdr6dyqe5dsrf@skbuf> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,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 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