From patchwork Wed Dec 13 22:27:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Justin Chen X-Patchwork-Id: 13491943 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="hEcUpV2d" Received: from mail-oo1-xc35.google.com (mail-oo1-xc35.google.com [IPv6:2607:f8b0:4864:20::c35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31076BD for ; Wed, 13 Dec 2023 14:27:50 -0800 (PST) Received: by mail-oo1-xc35.google.com with SMTP id 006d021491bc7-590bb31ccf5so3286312eaf.3 for ; Wed, 13 Dec 2023 14:27:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1702506469; x=1703111269; darn=vger.kernel.org; h=mime-version:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=YMM1hSqTpM+vk2MUmDHPLX5apsTR0ducsOnhoUfDRqw=; b=hEcUpV2dcxrpPyAJ18YAVlR7yhasOPe1r+5skV6SSbz6bU6u9lmw7XzaAgAo48N9WZ N/J1NiQVtA82Zdum2uzFCmoCgkb904dIXiNDuaiZVH3DgXrqbe1sqnm6ekMVlMu6LA6v /0/m/Bb1EcElmS53VTG/r0kkuQtd7kIK8J4rE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702506469; x=1703111269; h=mime-version:message-id:date:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=YMM1hSqTpM+vk2MUmDHPLX5apsTR0ducsOnhoUfDRqw=; b=MfDxLicyY+YQ0GF79hVxJum8a1Gf1hhXnR+R2Yd9aYGQALUP1y6R5jg9W+jCi8ITq0 E7993qERLNpz4qRp27NDnZQ9wOHl8qM2vpDHRSyqybBeuh9RDlZ4biFnIcp2yooU5CPu JeM+Bzg2Z2q0FgIAlE5JDIzRNV5JVkz1paurmj+EkDlrg+liskZWpfVKypxFSSykG/xs e4fvBMqKTSZeWZ8uJsq+Jz11jdLlCyq3lAwe4CT/hH5iPpf/Ya1cPjbItERewSXq/mlZ ykyud3TjSOG0DkBqy7nHNV2Nekeqf+mu7RB+QRzMw0k6T7nkdqt1nPQr67BgaUpA/XIH mgjA== X-Gm-Message-State: AOJu0YyS3oDmEnOxdrQipRGk6HHWe1s1mEXnfwDh9XjGkmv9K/+KZdlS 247Kd/1veFw8HSNhbrKL5mKSyBDvI3fvqAcMfwHlqWlkT5+mIhD0EiEdeh+I9SKXCAyrIOPCj4j oZPFlMkjakpavTp/iQl3e6YuQQQM4gtMdYnFodqQQVfcDbTrrXvk0ZEhVl7/SuZp3OrDzIdhvcP p4NlsrWg== X-Google-Smtp-Source: AGHT+IEUDzhQzGigx5RPg3X8ZAibk/XLTMJdWchWG7K8+9LtQVModiSI+Ok6tDXtOJUatIDKmuFvcA== X-Received: by 2002:a05:6358:f18:b0:170:17eb:9c48 with SMTP id b24-20020a0563580f1800b0017017eb9c48mr8160567rwj.41.1702506469071; Wed, 13 Dec 2023 14:27:49 -0800 (PST) Received: from stbirv-lnx-1.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id nc4-20020a17090b37c400b00285545ac9d2sm11432515pjb.47.2023.12.13.14.27.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 14:27:47 -0800 (PST) From: Justin Chen To: netdev@vger.kernel.org Cc: opendmb@gmail.com, florian.fainelli@broadcom.com, bcm-kernel-feedback-list@broadcom.com, andrew@lunn.ch, hkallweit1@gmail.com, linux@armlinux.org.uk, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, Justin Chen Subject: [PATCH net v2 0/2] net: mdio: mdio-bcm-unimac: optimizations and clean up Date: Wed, 13 Dec 2023 14:27:42 -0800 Message-Id: <20231213222744.2891184-1-justin.chen@broadcom.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: kuba@kernel.org Clean up mdio poll to use read_poll_timeout() and reduce the potential poll time. Justin Chen (2): net: mdio: mdio-bcm-unimac: Delay before first poll net: mdio: mdio-bcm-unimac: Use read_poll_timeout drivers/net/mdio/mdio-bcm-unimac.c | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-)