Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp3819975rwo; Mon, 24 Jul 2023 17:53:10 -0700 (PDT) X-Google-Smtp-Source: APBJJlGEsterpBlccxo9g+kqPVgV//RIbbbtzAf8fng++qGd9zttzWo8P4pPucB4LyNbf8p20VJI X-Received: by 2002:a17:906:8a54:b0:999:80cf:82fd with SMTP id gx20-20020a1709068a5400b0099980cf82fdmr11713038ejc.18.1690246390495; Mon, 24 Jul 2023 17:53:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690246390; cv=none; d=google.com; s=arc-20160816; b=G6v70QI5laD2BkKoPDq3BSZEiSGHQZP/jKoIiyGfQ49Da0OIWoyKrPtRWONZpfiwk5 EDRb4OHy8JFouo7zKWTXawG+O9rE9JCCpIcdRtlC1bXQrvz9c1+N9HLqoNTXWCK0gXqU VWKq+0RB8bxcVmHzgggw0n8z/ZECF9J9NPubAtcANQGvajgWdFuJIHmisfJM9EaLTmsb ugXWo7Y+SKd49srnxE1OaaG7rfItSV7JxQtvejvW40qbKgqrlPgLEqcq9c0V9M3GxiQ2 K9iK0ZyJh4kkJ1mEcGT8IeoaJTPnNFKMTLKzp2lrelBAOsDnXKJRlOjlDhuHaUPio17B oIwQ== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=W1jTckhrMvwjDqKgZM6lTzy9LH3J3IrDpE5Hu2tZRHA=; fh=XXiVTGSBaUGAXkSMZYR5i76gyQ/JUQk+L5vJAL/ln4s=; b=AUXbEXGUOnQpKqZ6Y0LjmJfnxCbjjWNgn1LXreqzbqYBNCCMZQ1VHdLShAwlumvRva fKeDys/XOESNLFtYy7k6JSnDV5ptG+kSTUmAjCfZpmuk2tU4zaFam97I84yHdU+C3hOo zhqNQU+SUICf3QmMcdCdjiB3KbkaZIyU/vJEUTtH6hE3PC4rNXpX/hwB3uEH3SIbA6x5 6yB2cvs1S+uUcTUhDrYr/G8d5yypvxKIUaxUEOisRGGRLSlS0HbWkLONpYtKLuUFgRXf hSdXkTVlPa+7c0QPynycxo9C3xlMIhU9WB0lSKoIgI1QidCskpntbFQ58l1V4fagnFoO IoKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Mc5LmMIw; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i18-20020a17090639d200b0099367e9043dsi7424070eje.870.2023.07.24.17.52.46; Mon, 24 Jul 2023 17:53:10 -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=@kernel.org header.s=k20201202 header.b=Mc5LmMIw; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230164AbjGXXn4 (ORCPT + 99 others); Mon, 24 Jul 2023 19:43:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45662 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229479AbjGXXny (ORCPT ); Mon, 24 Jul 2023 19:43:54 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0477E1712 for ; Mon, 24 Jul 2023 16:43:54 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8BE5E61173 for ; Mon, 24 Jul 2023 23:43:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7B2A5C433C7; Mon, 24 Jul 2023 23:43:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690242232; bh=xc3GbyDkN/vtNrG+9K09v2LJoqlN8c2/DWBOyoLqp4M=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Mc5LmMIwGsi7ckAthGvVCq8IfCeOtZe/MVLUUM/x4ZxBYY45M41+Eaognvx9zoMWu fAyEB1AWG45hHG62wciZaGdNmknTUfNc7QJrQw6mOjbVenVhb3kkbnmJaR2Dop3pRI MbmJCtOSfAJhXbSZx7nyQUCk8TDSGRdxAAMTXeIDawOG+iUNme17hThUArnFKZnNO9 GUllftsHYkbaouHXcrMl0FkXGSbkIYoYbP6E6pduJQMfqqJ1yCTj3GFjos6WJnepiY V4BdBrH4kNxnXyr//ZpcUkar5zUkWe37d6y7fchv8j9p1Ww39GKehwJ9yUBiHJ5d9X a1JC8MYIC26Cw== Date: Mon, 24 Jul 2023 16:43:51 -0700 From: Jakub Kicinski To: Cc: Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Paolo Abeni , Florian Fainelli , , , Subject: Re: [PATCH v5 net-next] net: phy: smsc: add WoL support to LAN8740/LAN8742 PHYs Message-ID: <20230724164351.2ecf6faf@kernel.org> In-Reply-To: <1689900053-13118-1-git-send-email-Tristram.Ha@microchip.com> References: <1689900053-13118-1-git-send-email-Tristram.Ha@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 On Thu, 20 Jul 2023 17:40:53 -0700 Tristram.Ha@microchip.com wrote: > +#include > +#include > +#include > +#include You don't need these includes any more, right? > #include > > /* Vendor-specific PHY Definitions */ > +static int lan874x_set_wol(struct phy_device *phydev, > + struct ethtool_wolinfo *wol) > +{ > + struct net_device *ndev = phydev->attached_dev; > + struct smsc_phy_priv *priv = phydev->priv; > + u16 val, val_wucsr; > + u8 data[128]; > + u8 datalen; > + int rc; > + > + if (wol->wolopts & WAKE_PHY) > + return -EOPNOTSUPP; You're not advertising the support for WAKE_PHY, so you don't have to check if it was requested. See recent commit 55b24334c0f2. Please keep the review tags from Florian and Simon for v6, these are minor nit picks. -- pw-bot: cr