From patchwork Sat Jun 18 07:26:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 12886428 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A7713C43334 for ; Sat, 18 Jun 2022 15:52:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234460AbiFRPwQ (ORCPT ); Sat, 18 Jun 2022 11:52:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54150 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230082AbiFRPwP (ORCPT ); Sat, 18 Jun 2022 11:52:15 -0400 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7433813D10; Sat, 18 Jun 2022 08:52:14 -0700 (PDT) Received: by mail-wm1-x335.google.com with SMTP id m32-20020a05600c3b2000b0039756bb41f2so3702667wms.3; Sat, 18 Jun 2022 08:52:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=WlLbgDasKJ1im1j+lOloRZZaui0VTdPP0RSuLZMaCi8=; b=WUFejGDG/Z44pDXvIUaaiJbcI7gUm1KnhUNL/rZLSInthig5fAgnIkZKgtEc7k00dF KwpEOSH8SxzVDSxU+TcIlXv2hdi+m3Z1voHYeGx4pVLvTs/LE/5ls+LkgFLvm0NSep19 85ViAZL9PC8oicozXpDd8LOj77Outv5nvjEa31Tn+jVvp6uZ7MdOqZglvxRt9GBAZe/L gKRYi26veR+qfwmoAr0Z3U1qAFmpG//tMYgAx6b0WR8GMNgV6io/G3Cxjwm4WQvhaBFw Jdei4b8VsukIaX+OnDjpVjt8vnH8N6p1xq2jVbG5gNiQgYZLRinYQr1Q9uLQ/gt3voHb X8cw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=WlLbgDasKJ1im1j+lOloRZZaui0VTdPP0RSuLZMaCi8=; b=UVt1ZGHjuGUoE6X170NQ1ylpcnaLxfkPGljn+p0hQpJ8sSgShXkqrn4wO/kUfS4yWE k546J/KjxiDA0drc7PWYdhVD92iahVYjeaRCXSpUeWD9dOEMrhZqgIjQTCTQRcZ2UEwM bwBPneuKY4+wDNkgQ7m7fZbzKwpYsu7USNPa4lrFL8PFL4gOenPUHSYiJ4CCkAav7TJO gFbykNc3NWIphCOGpsDF5OgGnFCPnuFT08DhKLnhlsPtctNmjipUnmDb+W1uDmEMDIKj mO44TQm3x1anihyjj3dDCl7KzC/A79Z9EEf1jVWumjk3peJRVUSyfDbpZc0ZQxriTwok m7lw== X-Gm-Message-State: AOAM532VoLfTJk2sDBvBmmrP7LBmqNK16GNU0iYKnA+GJUcYXMUjZm0v h1fv2vKeNzSiDhifYll05fM= X-Google-Smtp-Source: ABdhPJzDAGYaxccU9fjdXNossisUYb/8irdwQBJFqJMXllpbLj7P2DrSKd+EgBYo6QuwJTWji1wm4Q== X-Received: by 2002:a05:600c:4ec9:b0:39c:69c7:715d with SMTP id g9-20020a05600c4ec900b0039c69c7715dmr25799221wmq.154.1655567532736; Sat, 18 Jun 2022 08:52:12 -0700 (PDT) Received: from localhost.localdomain (93-42-70-190.ip85.fastwebnet.it. [93.42.70.190]) by smtp.googlemail.com with ESMTPSA id a8-20020adfed08000000b0020d106c0386sm1952188wro.89.2022.06.18.08.52.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Jun 2022 08:52:12 -0700 (PDT) From: Christian Marangi To: Andrew Lunn , Vivien Didelot , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Jonathan McDowell , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Christian Marangi Subject: [RESEND net-next PATCH 1/3] net: dsa: qca8k: reduce mgmt ethernet timeout Date: Sat, 18 Jun 2022 09:26:48 +0200 Message-Id: <20220618072650.3502-1-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org The current mgmt ethernet timeout is set to 100ms. This value is too big and would slow down any mdio command in case the mgmt ethernet packet have some problems on the receiving part. Reduce it to just 5ms to handle case when some operation are done on the master port that would cause the mgmt ethernet to not work temporarily. Signed-off-by: Christian Marangi --- drivers/net/dsa/qca8k.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/dsa/qca8k.h b/drivers/net/dsa/qca8k.h index 04408e11402a..ec58d0e80a70 100644 --- a/drivers/net/dsa/qca8k.h +++ b/drivers/net/dsa/qca8k.h @@ -15,7 +15,7 @@ #define QCA8K_ETHERNET_MDIO_PRIORITY 7 #define QCA8K_ETHERNET_PHY_PRIORITY 6 -#define QCA8K_ETHERNET_TIMEOUT 100 +#define QCA8K_ETHERNET_TIMEOUT 5 #define QCA8K_NUM_PORTS 7 #define QCA8K_NUM_CPU_PORTS 2