From mboxrd@z Thu Jan 1 00:00:00 1970 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 smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B9CCBC05027 for ; Wed, 8 Feb 2023 05:20:53 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 4F08F61085; Wed, 8 Feb 2023 05:20:53 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 4F08F61085 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osuosl.org; s=default; t=1675833653; bh=GqsVpz2bb5rA/x5rHEDsdwvbfMj7XvPStpdovQHho/U=; h=Date:From:To:In-Reply-To:References:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: Cc:From; b=GkSEktm1kL0jvdMF8lb4EBcR/HokIapkpz2YAiPdYhmMtAFCQfw+az51rOhBwro37 anmXyFZuteHQqiXZrUEFVFJ7xpHzeV4a3I/41P4FXqPhp8TLJbhdCDOIOvZ3xz5RVp qoS80gJhQ8oMBwSrGyk0YFMSdCyW1P/Ov9ZH4KtaWsKL+fp4zpD8JBPrQ2MV/JrZTQ cl4IHhobuGW8j1tAyHo296dkQoKMo03g5cJVI+ZndP/RlU/9mAQtaiPQaDT3mPyg/3 Z7/RkEbUEoxyYApiuSjjkBtKvgJZs1aZ/K2+7OPDduzuffl950M6f/0Z0ePgYB7A/B ntGhR6TJ5thCw== X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 33O5pfv6sbpn; Wed, 8 Feb 2023 05:20:52 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp3.osuosl.org (Postfix) with ESMTP id 60BDB61087; Wed, 8 Feb 2023 05:20:52 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 60BDB61087 Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id C98341BF853 for ; Wed, 8 Feb 2023 05:20:50 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id A1DD2408BC for ; Wed, 8 Feb 2023 05:20:50 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org A1DD2408BC X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7OsmvQ70wMnR for ; Wed, 8 Feb 2023 05:20:50 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org E7DD5408BA Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by smtp4.osuosl.org (Postfix) with ESMTPS id E7DD5408BA for ; Wed, 8 Feb 2023 05:20:49 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 4056E614C5; Wed, 8 Feb 2023 05:20:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2CE06C433D2; Wed, 8 Feb 2023 05:20:48 +0000 (UTC) Date: Tue, 7 Feb 2023 21:20:47 -0800 From: Jakub Kicinski To: Oleksij Rempel Message-ID: <20230207212047.6080c16c@kernel.org> In-Reply-To: <20230206135050.3237952-16-o.rempel@pengutronix.de> References: <20230206135050.3237952-1-o.rempel@pengutronix.de> <20230206135050.3237952-16-o.rempel@pengutronix.de> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1675833648; bh=EjnIKJiLB9mu2nodQDuvohBF0YXCOxy1sDEVidpNDPg=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=gGFB2n0Dc+uqzmaKwRfjLJM0GwsFqRL8S+cjFX5SQvk+t1sXeFIzDONAXecwcV3QJ 0yKenRlIE4wgaeEt15dQZQub6apRu3LEPPmPt4HCo5EoZvpPwqb+AvFjgvd/ytvqlb +dzS4Sey+//wrl6YiAsIOxfr7YWUvcO5nI5W5xDDSeCHQqF8aYTi/Od+Qn6+LknR5p pSf8oHDeQuJzv4wlY4Bh1QbQSQ7MAQ2IZDoqK2ouxk5LYbOVO8LG87RXIjW0lpsa8U gSn3YO5yKLWLoo2uItqvU9VgGtquhGES1gC+MFSt3imDQ+hEQCyzAGrDMQN+saWXsw EKjJuH2lRH+yw== X-Mailman-Original-Authentication-Results: smtp4.osuosl.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=gGFB2n0D Subject: Re: [Intel-wired-lan] [PATCH net-next v5 15/23] net: phy: add phy_has_smarteee() helper X-BeenThere: intel-wired-lan@osuosl.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Wired Ethernet Linux Kernel Driver Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Woojung Huh , Andrew Lunn , Arun.Ramadoss@microchip.com, Florian Fainelli , "David S. Miller" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, UNGLinuxDriver@microchip.com, Eric Dumazet , Wei Fang , kernel@pengutronix.de, intel-wired-lan@lists.osuosl.org, Paolo Abeni , Vladimir Oltean , Vivien Didelot , Heiner Kallweit Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: intel-wired-lan-bounces@osuosl.org Sender: "Intel-wired-lan" On Mon, 6 Feb 2023 14:50:42 +0100 Oleksij Rempel wrote: > +/** > + * phy_has_rxtstamp - Tests whether a PHY supports SmartEEE. Function name needs to be updated > + * @phydev: the phy_device struct > + */ > +static inline bool phy_has_smarteee(struct phy_device *phydev) > +{ > + return phydev && phydev->drv && !!(phydev->drv->flags & PHY_SMART_EEE); > +} _______________________________________________ Intel-wired-lan mailing list Intel-wired-lan@osuosl.org https://lists.osuosl.org/mailman/listinfo/intel-wired-lan