Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5778297rwd; Mon, 5 Jun 2023 08:25:55 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5zsdvjTNVG4CDtTLCP2h5TGqXejeMWh22NO5kDfAFReV5JF9XK0iSDEeodgMn7nONDX/fM X-Received: by 2002:a05:6a00:b8c:b0:64c:ae1c:3385 with SMTP id g12-20020a056a000b8c00b0064cae1c3385mr14910683pfj.32.1685978754728; Mon, 05 Jun 2023 08:25:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685978754; cv=none; d=google.com; s=arc-20160816; b=vZvYziJRgGFsklmn4CX8/FAbpOOrQzKIZV49QwRt+tVVyixV2FaOyjNEb7NyTZMtWf rxzz2RPTIJBYk8isxE3M3Xk3kjUAIC0UqGRR6/k0lolo4/+d+arYcDE8cq7gbKINLmnM iIinWST1L431t8BC52frEyk5GWxFA7YkBRSNTo3MYOW5+RuRAIjGlajUGY0iCkL2l5AQ E5Kz3u9e/D6oTlawNmBhQsJeyJQsr8tygWRTs3knbHlujnyi2MWAVkL+vCFZ0M7nTJr2 FwKm58+2zJs85Z+J39izXHe1dIl/wkr1Aj1YIWblxJGBaWMBaBPgCF2WZ2JAu6xlZmo7 1QkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=zLDyNy8tAQRPQMP1JsoerUTW1ZJaxHYk/ToBU7y9C20=; b=cOsDigMK30Tb7sxQtnl63rCcWURu/7c2XkBZbCfMJcXTLzjdslSAIsr30bKaUPVtiQ 3DiP1TZ4xNoucbqhjzWQr8uqr2/60boR4YgWj0bh899XzLR0FJfMJHnrcPVRLfILRug2 LzLMIw/nFa/QTRqiimApFCsdq1t1SiuJ2IXq2iWAMDzH7hA63o/LM5SSr4SJd0fQY3Jw 1KK89l9o+0njqG3y9w9PHCC1ClprjTtdFn4OMs1ZtxdyRqE4tD1TqlOkY7qANMPaB14y KNOSyB4O0lx1YVbYq6mzhLcbs96R4/OVMJxiSYOzoeB1WQ8J6rKJPnCYZPtFf+VpLNFQ FFpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Pe0WnA1v; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m67-20020a632646000000b0053ef5472639si5579497pgm.489.2023.06.05.08.25.42; Mon, 05 Jun 2023 08:25:54 -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=@collabora.com header.s=mail header.b=Pe0WnA1v; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234388AbjFEPUP (ORCPT + 99 others); Mon, 5 Jun 2023 11:20:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57804 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234363AbjFEPUN (ORCPT ); Mon, 5 Jun 2023 11:20:13 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07141D2; Mon, 5 Jun 2023 08:20:12 -0700 (PDT) Received: from arisu.mtl.collabora.ca (mtl.collabora.ca [66.171.169.34]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: detlev) by madras.collabora.co.uk (Postfix) with ESMTPSA id BCAD26600368; Mon, 5 Jun 2023 16:20:09 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1685978411; bh=Ye2OPJTrKVJ6tXJ7CFNhgEilyt6Zi31GJyG9LSEVmZY=; h=From:To:Cc:Subject:Date:From; b=Pe0WnA1vJCDPhX6P6HNWN4SRl5A7/ZytShvV/StDkqw46eGnVTXBp+SIpBNe2SDu/ 7wyzcm38TOsUrz/Zy3tlZnq/5CkYTy5dDVvWIacHFRPzW9htiEUUZr9f+UD7+uSZ/9 4wd9KiaEHpFulI2tI6CbSLngCPy1nnEPFqRVq0awUne79rg+7Go3K8Q7jbeoMAv7ZH kn/7GAmwZYAfUdHTo5dMEH+OsT5v0yAV2stDLDoO7U4FV1IZ7GVKmrC3QtLiWecXru Ny1GWeQURhkjsxLP9aaRWzRgFXiAu6NYErAjEQ5GS2xL8dpDeagmGg0asDw30T/4O3 HGH69cvay9mQw== From: Detlev Casanova To: linux-kernel@vger.kernel.org Cc: Andrew Lunn , Heiner Kallweit , Russell King , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Florian Fainelli , netdev@vger.kernel.org, devicetree@vger.kernel.org Subject: net: phy: realtek: Support external PHY clock Date: Mon, 5 Jun 2023 11:19:50 -0400 Message-Id: <20230605151953.48539-1-detlev.casanova@collabora.com> X-Mailer: git-send-email 2.39.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 Some PHYs can use an external clock that must be enabled before communicating with them. Changes since v2: * Reword documentation commit message Changes since v1: * Remove the clock name as it is not guaranteed to be identical across different PHYs * Disable/Enable the clock when suspending/resuming