Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2180958rdb; Thu, 21 Sep 2023 10:41:34 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEMRjxp8x/xy+eNUNyJPXuMGqtMaw8bXn15tsn+7Mx3urCrIVFtaLdDD9WhAe5UTOMFZfsb X-Received: by 2002:a05:6a00:1492:b0:690:41a1:9b66 with SMTP id v18-20020a056a00149200b0069041a19b66mr6681184pfu.14.1695318094492; Thu, 21 Sep 2023 10:41:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695318094; cv=none; d=google.com; s=arc-20160816; b=k4mnAl7dq16HjzL8PsjbcIMgvI9shI61j44qM+zOI2S9Dhs28kQbGII0bXXG3Qnu/X JTnjWxEwq213NT/z9eiOJtDsLBAc9l0SHL3/Osrg6285coov6o+sFj+lN+sPjtWb9Hhl kHcA80thh6JWf4TUiD0cd+HeQqnhE2Qveh+s6gUALnbYqSRhvcqlsY0rO4SiM46fFnSG 36s+pYvw9v2X/WEY7xvQVPBV/4+d5cusO5sMIPb2AquWTqB1XQc6itF3uFaSLwuOBYob j0hth8RKYYvGt/OYSNKGdmBCyzO75KLn41VGcqXVvwaGZH7uyJ2h6UNvFOiFXBZhO8S3 584A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=wHAAa/gf3HGuegRT5iGO1X/UDqUCnuMi0knFAFkXKOk=; fh=OhYw124Z1QzmKloN634AYzndqm9OaPN7V5fV4KiMVgY=; b=qJh5o/jMxKPGkC3snxlwh/w3XMWMIc2WbcMVIqFnfl2qUDIbH7ZsCU4SRXb2qasLns aBlufhVmRF2/mPWb7MUTQthHhfuK4a/4ivb6A8j/3zK5qomC8tO6QZMi9yrePeXtiBcP tldQYOuy7/hOoaKGICCYv5eCD3oAho7H9nQcxhAuwPX5sg3PkFgqyK2nnnVzoZjFk4+N c3DpN18lM6+Fcim+su+BkibwpCF9vxa491MvZdUs44ij+Q+t+9rkQVa7i+v7hm2gwFBs dsbeBfWzqI89MBSp08ZQItc+w4h8+B9GY2m1E6G1OeJ2q9MpclESmmD4FMR8n9HxPnxu 8GFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=CTJKSzI5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id bd43-20020a056a0027ab00b00690cd91cee7si1846895pfb.287.2023.09.21.10.41.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 10:41:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=CTJKSzI5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 76F2882CBA60; Thu, 21 Sep 2023 10:28:39 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230174AbjIUR2h (ORCPT + 99 others); Thu, 21 Sep 2023 13:28:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230109AbjIUR16 (ORCPT ); Thu, 21 Sep 2023 13:27:58 -0400 Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 137674BBCC; Thu, 21 Sep 2023 10:16:27 -0700 (PDT) Received: by mail-pl1-x632.google.com with SMTP id d9443c01a7336-1c56bc62351so1040675ad.0; Thu, 21 Sep 2023 10:16:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695316587; x=1695921387; 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=wHAAa/gf3HGuegRT5iGO1X/UDqUCnuMi0knFAFkXKOk=; b=CTJKSzI5GibbGvoI0aDOFnejz6Rygibm90Q/C+96PosqsgKckVxmNhKZgqbAvfNxZd lsgmDs2BV1Fbs32MYcSa/CjjnsSoG3xideKD+zyif5SZ/5OMe5TQGhi4XsmGVdkaTRoq EUAIzRPBwHU+A94R9kwU+TDOcGtsRYdVHv1SZyFihLR4Q3d3JxYPOPePxm7uAoPgkulb AKZD/INRBtGRuQLxSTOqSrvFA8NIKqfGcIz/2jP0Fsm1dawgLr+uT7CxZhaX8OYJoe9s QOQd0MUuXSAJh+42MpW8d3UC/fEoh+Ri4apq9l9LE/Di9mJUcPv5Uz/ry9+xZf+eMGCL UxHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695316587; x=1695921387; 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=wHAAa/gf3HGuegRT5iGO1X/UDqUCnuMi0knFAFkXKOk=; b=cOh2gFI7J/cPkuzDaOLA0JmOetIyBo48bx3fWNmDf8BwyaqMy4vEtj+3Ns/Y6jEdGT 0sBMW+L2Pe7jT+J5nRrenxSOWHuUbNDPy/nGtjBRydWOoFGbDE+uSvvUCiwVTxbMUMS/ Tw6TS1pZZnRrDQsR/IXMiCrU82aCSW0/50lyXXHMQltRJKCC/hjQ4/bowV6sbu1R3XWQ bHbaU+qdcan4d+KHgGxWNJw8NXmt3gV6L4LUGE0sD503Fyb499gbBcvZlyqGipkIstmg Q8/oKzZWG7vFOt0qS+hLIRKjuo2hq/3hnakJu9Tdxu6OxHOyRqFR3eHbPhrUpNrHZsq1 BUQA== X-Gm-Message-State: AOJu0YyNLfE3/LCzqg7ES88n2tfuLblF0pLQxuTL+WLvmNJ1YfcTuW+r odaefg+0dOeMN6fUoPNAe+SKiV7wd0lXh6yTCRgU0Or8Wck= X-Received: by 2002:a17:90a:130c:b0:26d:1eff:619f with SMTP id h12-20020a17090a130c00b0026d1eff619fmr5078989pja.2.1695301138803; Thu, 21 Sep 2023 05:58:58 -0700 (PDT) MIME-Version: 1.0 References: <20230920184647.84316-1-festevam@gmail.com> In-Reply-To: <20230920184647.84316-1-festevam@gmail.com> From: Fabio Estevam Date: Thu, 21 Sep 2023 09:58:47 -0300 Message-ID: Subject: Re: [PATCH v2 net] net: dsa: mv88e6xxx: Avoid EEPROM timeout when EEPROM is absent To: kuba@kernel.org Cc: andrew@lunn.ch, f.fainelli@gmail.com, olteanv@gmail.com, davem@davemloft.net, edumazet@google.com, pabeni@redhat.com, l00g33k@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Fabio Estevam , Florian Fainelli Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_00,DATE_IN_PAST_03_06, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=no 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Thu, 21 Sep 2023 10:28:40 -0700 (PDT) On Wed, Sep 20, 2023 at 3:47=E2=80=AFPM Fabio Estevam = wrote: > --- a/drivers/net/dsa/mv88e6xxx/chip.c > +++ b/drivers/net/dsa/mv88e6xxx/chip.c > @@ -3012,14 +3012,16 @@ static void mv88e6xxx_hardware_reset(struct mv88e= 6xxx_chip *chip) > * from the wrong location resulting in the switch bootin= g > * to wrong mode and inoperable. > */ > - mv88e6xxx_g1_wait_eeprom_done(chip); > + if (chip->info->ops->get_eeprom) > + mv88e6xxx_g2_eeprom_wait(chip); Just realized that I should also remove the mv88e6xxx_g1_wait_eeprom_done() definition, as it becomes unused now. I will send a v3 with such a change, but will wait for more comments first.