Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp1644499rdg; Sat, 14 Oct 2023 10:20:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IET+VSlBXPwE/+6cMp/MBrBMLDTJVhZzaGb7G7cGL+GrqwgR9Us11iYSALqzC0MdMLnvfOt X-Received: by 2002:a17:902:d488:b0:1c8:9832:827f with SMTP id c8-20020a170902d48800b001c89832827fmr20560544plg.20.1697304047759; Sat, 14 Oct 2023 10:20:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697304047; cv=none; d=google.com; s=arc-20160816; b=UPGDPvbmz5gArGjin0KffL7wvsJaOq43pN22wGH6ot2An1hX+uAaDPqG5nxfXe5tpo VMGjkJ9NcPYqkYCLKS5/3+COGtlpx00U4kJ65FaNar2SLZuNlSI+H2mAidpyxI+I0sio hhkjDQuKaiJooWt5aNwlURjNvZwGzKL2ragIBXPzGtLIkJqr6nhWSBvqvCP94hvHP75U hufz4jWiLVASK8nBcgG3JhdEQxALDK4oJN7thsXQgNXUKxE2xtTZMQoXiWlfm0kXZ+GZ 9gAMVA/Fm5zUIJIK95QieWh4WhJuFX4HfiCkp50PYDoMQdKDdiAp5NBko5kKz8N+VOJG b5pg== 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=KnJuBNSi4vZB6RKnIxGSq8aHdl+IQM+Ke+VxJvZvpRY=; fh=pbdktCCt2wJuv718rIqzCC/OpSnBg3qQmTtg1LbUuLo=; b=sJRCC+YlyOuNCjFCynr5MtOo0ERrpZE/r+vf4R2oiUTvblfrxGrJ6mLXa1JbglP6W0 4kF1JexJC35oyAYV5xFGBvJQHOgwyX8HEH1ugMgiV1BDIGzAguylyttpTExIPdTx6Qsf XG2VjfzKqrlbwaFdobvSTWyCtI082KRMKNrfrR3i7P1RtLfkH6/ti6UGXeu46G5WCKcf 0ZNQ5JEMLkCtuHJbXQjdI9XWCtfL1fFiJXXQ0eBXVRiKnfGyS6YCNFcBtg3/YTz/U2Fn Law/idUW8c56J/leeDjI6PNRO04TX90Sf/mUuCa5+J3iEW8I16Hn1jBZbNgwgXLJIDdb Z0yA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=FDDrN8Qb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id m5-20020a1709026bc500b001c0cb378f04si6926774plt.335.2023.10.14.10.20.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Oct 2023 10:20:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=FDDrN8Qb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 1C9988053602; Sat, 14 Oct 2023 10:20:45 -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 S233208AbjJNRUi (ORCPT + 99 others); Sat, 14 Oct 2023 13:20:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230016AbjJNRUg (ORCPT ); Sat, 14 Oct 2023 13:20:36 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3919EB7; Sat, 14 Oct 2023 10:20:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=KnJuBNSi4vZB6RKnIxGSq8aHdl+IQM+Ke+VxJvZvpRY=; b=FDDrN8Qb4k4neL/8HlhZe+I1s4 2F91v0BSuQIbdNkgy1QARSJtZnSxEH4SdgtDAvJCPwcBeHIa8jhEaNJjiKmOKJHofP7h/tsbeMVXR X0Xu6hegcUwRC09d38LIShtnn+oqhOcAKW4cqnT+vTXHiMcNnHBm+F8I2sKVIK0HmasQ=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1qriJM-002Bzs-VD; Sat, 14 Oct 2023 19:20:24 +0200 Date: Sat, 14 Oct 2023 19:20:24 +0200 From: Andrew Lunn To: Oleksij Rempel Cc: "David S. Miller" , Eric Dumazet , Florian Fainelli , Jakub Kicinski , Paolo Abeni , Vladimir Oltean , 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 v3 4/7] net: dsa: microchip: ksz9477: add Wake on PHY event support Message-ID: <364ae6ec-69aa-4983-b312-076ae2eb5399@lunn.ch> References: <20231013122405.3745475-1-o.rempel@pengutronix.de> <20231013122405.3745475-5-o.rempel@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231013122405.3745475-5-o.rempel@pengutronix.de> X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,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]); Sat, 14 Oct 2023 10:20:45 -0700 (PDT) On Fri, Oct 13, 2023 at 02:24:02PM +0200, Oleksij Rempel wrote: > KSZ9477 family of switches supports multiple PHY events: > - wake on Link Up > - wake on Energy Detect. > Since current UAPI can't differentiate between this PHY events, map all of them > to WAKE_PHY. I assume link up and energy detect work without doing a MAC address comparison? So maybe these should be added first, and then handle WAKE_MAGIC and setting the global MAC address, and verifying it matches the user interface MAC address? Andrew