Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp468035rdb; Thu, 19 Oct 2023 09:18:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGOzNsgD1N3jHDKRh2h4oXVwnvdLvFQsuOmwkDw2gIVlxw5mp2V/LOxHKeCLb63l1VyxZEq X-Received: by 2002:a05:6a20:3d95:b0:174:af85:954b with SMTP id s21-20020a056a203d9500b00174af85954bmr2850922pzi.22.1697732315775; Thu, 19 Oct 2023 09:18:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697732315; cv=none; d=google.com; s=arc-20160816; b=miWYLwUyzaaG+/vI4yWNRggXYKtXehqK9DJZblIq/a3KT4X0fsbYgpHb52DvacJuLj qilXSlG+utao2OQjQfFgq/Ax+WGrIgfHTCCl85fehjDEV7gEAB8kB+Uz5OooCFAUJNn8 DJzzi++mQso6SBYUg0otdtcKLj+aOA+piYWXYKysZTy9Ii0j8hXOAWF65Yh4SfxHwTIK nHwVrEu72xfgJtKLvQyVFlTIK3dkp3lzhpQ+1h3riWSlgS5F40/Cl6kU8RKSUDHKmLmg l4No0mOvCYVJPMKZNrF7H1JSSWWyEkXPsn/BUmlaEIqjVyPVB+J5jE3qrh3p1eEcvZhX ObLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=uapV51mLN8WMmYGSnBZfefCdK6ozT3UVGFGF24qIeuY=; fh=1GYOzr1210OGGXiy9aWgwM/ivn5Xh3PZcsG9bHZGbf0=; b=apn4MO1XNg0WpJMOcz+SEs238oQvo4uiTXPy+Xi6Dbr3dfnWlRIiBB78/Qk/6WqtW3 Ecdtm4TPCNvnCWwhEaSyb4h7X8WeNMQDUFfdecX3M3OIhuN5kl+5KEElfyDvLc7gytP9 oNTDu0CdouhBqTPhN+N+1auOJxe72xpSV5lXm0iYL3FLu/sXyaxw/jNluSCa0pceT6h+ AiOZ7+XZgSi+1extEUDV8nIQ0lnnYrgpeudMV/zFb+ArUPc5nOs/Au+zkabEWsv2B5iw +8MRDXy9sKbuGzDLSXHxJeysAxc8homDXeCWvcuM+YJtvIcmT2juWDPbRptjzzeXsPqj Csuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="Ok/ZlHJI"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id l1-20020a656801000000b00573f786103dsi4813304pgt.754.2023.10.19.09.18.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 09:18:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="Ok/ZlHJI"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id CCD3883BB5BD; Thu, 19 Oct 2023 09:18:32 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233090AbjJSQSY (ORCPT + 99 others); Thu, 19 Oct 2023 12:18:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232123AbjJSQSX (ORCPT ); Thu, 19 Oct 2023 12:18:23 -0400 Received: from mail-qt1-x830.google.com (mail-qt1-x830.google.com [IPv6:2607:f8b0:4864:20::830]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E421126; Thu, 19 Oct 2023 09:18:22 -0700 (PDT) Received: by mail-qt1-x830.google.com with SMTP id d75a77b69052e-41cc776ccb4so6170311cf.1; Thu, 19 Oct 2023 09:18:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697732301; x=1698337101; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=uapV51mLN8WMmYGSnBZfefCdK6ozT3UVGFGF24qIeuY=; b=Ok/ZlHJIr8NEYHVFvYHSOv7Lj6afaG8jpmG/NJVlBivlUtviGn2jX6HMptrogT+3s+ ACG+194lnIICGjRvbdDsXqilN1PEu6JmH8q59H30GrT7rxekReU1huejLWO+G4mxHRPM ZqG+XjqB11x0pq0dTmq9wzB1MIBUiR62dtrSh3ioLG6hzeKTDB5N6ESQL7oJE5tZG0b6 1A8NDDO3RtrfE3DVWNrLuax0ONKyg8TFOJb2T+JoSyfdxWMZx/9u98VJFTjRYadA1VI2 qlkmm1RbC5tiklcgA8DW1Jd6/PHXZwfuD65p7s5zlEWkwkHFXvL5SKOS0yRg44NKgd25 z/EQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697732301; x=1698337101; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=uapV51mLN8WMmYGSnBZfefCdK6ozT3UVGFGF24qIeuY=; b=KtLyPZRqsOtZRFMGndeYNFGLw1KLntOWPapRZ0YPIdxbBiQ6IihHOEcVURSo5Sy1Ng pSl4xI70mCpqVmshat3cxXTk1kHg7AwdQfdaW853qwNZitMK1NH7adtC7ui1fxSeJYUv mEc59M2y+Gf6x50hUmDfi5TVBxj/6n7hi00FMX4UqN7Q+AzaneHsOAH6XALTwbhm4McA 2IyjwS3U5dg3HN+3c4XPOZvqOXZ/0AAb52LCO242E4ItvPGop/wkFwPYxc/JFpBgOYYk S/89JA9Yo+AOhmYg086uTj0OkHFlOgpXcUo+sgp/f+CVJ3YFissBwt0ofMMgVxHzzd9Z NAlg== X-Gm-Message-State: AOJu0YwS0GaIOqMeNNFmeKw73n9tabx6DB3YsKwAFuSyLSA3uzCJmnPb iuHe+nFsIpUM/jnJL6eLAMo= X-Received: by 2002:ac8:5b86:0:b0:41c:b617:8529 with SMTP id a6-20020ac85b86000000b0041cb6178529mr2752525qta.21.1697732300989; Thu, 19 Oct 2023 09:18:20 -0700 (PDT) Received: from [10.67.48.245] ([192.19.223.252]) by smtp.googlemail.com with ESMTPSA id fp7-20020a05622a508700b00405502aaf76sm836120qtb.57.2023.10.19.09.18.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 19 Oct 2023 09:18:20 -0700 (PDT) Message-ID: <8ba336f9-b2e3-43e1-a3b7-06022ea9ac00@gmail.com> Date: Thu, 19 Oct 2023 09:18:14 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next v6 5/9] net: dsa: microchip: ksz9477: Add Wake on Magic Packet support Content-Language: en-US To: Oleksij Rempel , "David S. Miller" , Andrew Lunn , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Vladimir Oltean , Woojung Huh , Arun Ramadoss , Conor Dooley , Krzysztof Kozlowski , Rob Herring Cc: kernel@pengutronix.de, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, UNGLinuxDriver@microchip.com, "Russell King (Oracle)" , devicetree@vger.kernel.org References: <20231019122850.1199821-1-o.rempel@pengutronix.de> <20231019122850.1199821-6-o.rempel@pengutronix.de> From: Florian Fainelli In-Reply-To: <20231019122850.1199821-6-o.rempel@pengutronix.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 fry.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 (fry.vger.email [0.0.0.0]); Thu, 19 Oct 2023 09:18:33 -0700 (PDT) On 10/19/23 05:28, Oleksij Rempel wrote: > Introduce Wake on Magic Packet (WoL) functionality to the ksz9477 > driver. > > Major changes include: > > 1. Extending the `ksz9477_handle_wake_reason` function to identify Magic > Packet wake events alongside existing wake reasons. > > 2. Updating the `ksz9477_get_wol` and `ksz9477_set_wol` functions to > handle WAKE_MAGIC alongside the existing WAKE_PHY option, and to > program the switch's MAC address register accordingly when Magic > Packet wake-up is enabled. This change will prevent WAKE_MAGIC > activation if the related port has a different MAC address compared > to a MAC address already used by HSR or an already active WAKE_MAGIC > on another port. > > 3. Adding a restriction in `ksz_port_set_mac_address` to prevent MAC > address changes on ports with active Wake on Magic Packet, as the > switch's MAC address register is utilized for this feature. > > Signed-off-by: Oleksij Rempel Reviewed-by: Florian Fainelli -- Florian