Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp508836rdb; Thu, 19 Oct 2023 10:24:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHMF90oSQhATzq711FUhXjiLpaSyc6P6X/upFmwzlWAH4Gl5dxE00PZmfXGyRIKcBtLJ3Rt X-Received: by 2002:a05:6a21:33aa:b0:154:4246:d63b with SMTP id yy42-20020a056a2133aa00b001544246d63bmr3283225pzb.25.1697736279204; Thu, 19 Oct 2023 10:24:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697736279; cv=none; d=google.com; s=arc-20160816; b=fDVoMjqJ0V+Pgh0YiKEcZvYA6Fljh25I04TnfCglxzp1sd8AKj+wzYgK6tGwqxiMXa vH6t3zLNPj0or6diMJ/hAaI09uYBWAk64RZdchefLbiE88hCBwrHXavCUxEffDJ9xuKH IKheQJF70WlrMS44KJQAzznjfPWUEXD78ULxakliKJ245Qkl9tqTdkREc9kUnxS697Ry TcIvx4Eq/6stNZ0hZBEMkxq677D5O4F4aFZnKhir2M8JCHtZL1ZFHMKHKAnXFt+EAQNm f2SE5cuHas1FzzTl7GclVaoMKpEcqgI5ff4OIJ9FeQ9vg82pBXZc9YUAdm3z8F4hEa4I 9e0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=4/zqeOQkV5Ij2D5zPpymnUDq7SB+Oj23OhQ/qVXUG5o=; fh=4w3Pqs5x2lCMSSUPACK3dMuO7uUmsmglpPHc5D/SCqY=; b=XUaQJ4g+hDRzryzqhAdG/OpjNmc/UrT6rdeWsYhB8s7huSGDxqfDk9StRYI2B1jqLe HX+ysDbCO7fGmJPDt9u+KEuFApFpnUxtkxfvfgbna7HrOFIdcPWSkmBIzEHBVKawqIYq GpBaZ89dEL8TEQN0oZT60CshyVYclJSw055oCJ8DIXKwGKShKgpRuR59aoRX9k7LteC9 tAaESz+qfhZkJPjtZdAgBrh+JSwW7jnKmzwtc8NtpyVqP48wxMEBD+dFvE3SwgIAIfib LBU66IxmS+28NXfj9/zHxRk0uN2JylYaRSOquvssmElPbwE6ztVMQQMyvbWUghMWIZ36 EJDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=jp0TaNsY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id b17-20020a170902ed1100b001bf0916b665si2595695pld.393.2023.10.19.10.24.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 10:24:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=jp0TaNsY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 01D4A835B4F6; Thu, 19 Oct 2023 10:24:37 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345827AbjJSRYO (ORCPT + 99 others); Thu, 19 Oct 2023 13:24:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346209AbjJSRYN (ORCPT ); Thu, 19 Oct 2023 13:24:13 -0400 Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B886106; Thu, 19 Oct 2023 10:24:11 -0700 (PDT) Received: by mail-lj1-x22a.google.com with SMTP id 38308e7fff4ca-2c5071165d5so7635461fa.0; Thu, 19 Oct 2023 10:24:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697736249; x=1698341049; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=4/zqeOQkV5Ij2D5zPpymnUDq7SB+Oj23OhQ/qVXUG5o=; b=jp0TaNsYaanqqSYgxyoxLbb3Cz/oYop/lzkS+pGFFjpNWfMpJ3TsbDtNzelNKjxAMr wlLUALMrQaZnV1UnxjcSfeHFB1Zz6iLWYe/Qem1iM26NoCxzxcFH4rVsJ9yo1XCHeh4S xO1OZljuLcEncCT58j2MuQqMIYUmVPAOtuj0o/VDdVMP3sFtLlDlzZi0aayPT3qXS+Vx SzNqC97FK6syGjshPX/xDcDkVQSUghzAb6YmcmngVoJ1zDBGqmZTwclLcwS4iQyXfbMe szRttu8+BaaC/Ekn2pLOJ4UAxstVng7lPZyO4gaOmepEAVMbymyZ9Mz2fxGL89NANA5F PwVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697736249; x=1698341049; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=4/zqeOQkV5Ij2D5zPpymnUDq7SB+Oj23OhQ/qVXUG5o=; b=JyImvssAM6NYg80pJNXQG1W86OdWUZw4g55Pv3d/lfFIkGnRpZPrE3vVytEcWoWhPv X5aQpQ5DLA9DRQHa4stRI9EeTKdYod7MQ08mfR1WoF5U5ACH0lNxrXSFDg36ZqEtCw+L dRZlPgAt2fSaWBBYk6mbEvOzhpV+2bBV4ygoJiQzXLguXOkClSOtTMr9iuU6thLo8bSY shOHdGgClMNkifZqyRgD3txbcZ2nXYtTQdp6XvSkuX4BbvaXm7TYgCloI3fNOXJbO4e/ 5oCZOH9KwtTRARjqM3p1nTMoWMKD8KkeJvU49tcMAEdIkCFYco6WmS05YZx/9AAN8OvL iYgQ== X-Gm-Message-State: AOJu0Ywx+aT3zgsRQ2jcgnUde3qhISb/roO7wqc9FHv7LEZlFZ6KIyVd XynNGSwFLL2lDhrfSxXgoQs= X-Received: by 2002:a05:6512:41a:b0:507:96e5:2ff4 with SMTP id u26-20020a056512041a00b0050796e52ff4mr1927887lfk.52.1697736249056; Thu, 19 Oct 2023 10:24:09 -0700 (PDT) Received: from skbuf ([188.26.57.160]) by smtp.gmail.com with ESMTPSA id cn27-20020a0564020cbb00b0053eec17c889sm4761807edb.23.2023.10.19.10.24.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 10:24:08 -0700 (PDT) Date: Thu, 19 Oct 2023 20:24:06 +0300 From: Vladimir Oltean To: Oleksij Rempel Cc: "David S. Miller" , Andrew Lunn , Eric Dumazet , Florian Fainelli , Jakub Kicinski , Paolo Abeni , Woojung Huh , Arun Ramadoss , Conor Dooley , Krzysztof Kozlowski , Rob Herring , kernel@pengutronix.de, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, UNGLinuxDriver@microchip.com, "Russell King (Oracle)" , devicetree@vger.kernel.org Subject: Re: [PATCH net-next v6 9/9] net: dsa: microchip: Ensure Stable PME Pin State for Wake-on-LAN Message-ID: <20231019172406.7gxe3quzt6cldd3u@skbuf> References: <20231019122850.1199821-1-o.rempel@pengutronix.de> <20231019122850.1199821-1-o.rempel@pengutronix.de> <20231019122850.1199821-10-o.rempel@pengutronix.de> <20231019122850.1199821-10-o.rempel@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231019122850.1199821-10-o.rempel@pengutronix.de> <20231019122850.1199821-10-o.rempel@pengutronix.de> X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Thu, 19 Oct 2023 10:24:37 -0700 (PDT) On Thu, Oct 19, 2023 at 02:28:50PM +0200, Oleksij Rempel wrote: > Ensures a stable PME (Power Management Event) pin state by disabling PME > on system start and enabling it on shutdown only if WoL (Wake-on-LAN) is > configured. This is needed to avoid issues with some PMICs (Power > Management ICs). > > Signed-off-by: Oleksij Rempel > --- > index fa8d0318b437..9e6f1e4b57b7 100644 > --- a/drivers/net/dsa/microchip/ksz9477.h > +++ b/drivers/net/dsa/microchip/ksz9477.h > @@ -62,6 +62,7 @@ void ksz9477_get_wol(struct ksz_device *dev, int port, > struct ethtool_wolinfo *wol); > int ksz9477_set_wol(struct ksz_device *dev, int port, > struct ethtool_wolinfo *wol); > +void ksz9477_wol_pre_shutdown(struct ksz_device *dev, bool *wol_is_on); nitpick: Please synchronize the prototype definition with the declaration (the name of the "wol_is_on" argument differs). > > int ksz9477_port_acl_init(struct ksz_device *dev, int port); > void ksz9477_port_acl_free(struct ksz_device *dev, int port); Otherwise: Reviewed-by: Vladimir Oltean