Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp557777rdb; Thu, 1 Feb 2024 17:44:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IFzfQk8GeM1KrdwUmsXhhuOn2TNWOrwcOtAFJhL7Y/NTpPIYnf2jmNFrd+CPwBXv+662BbL X-Received: by 2002:a19:e056:0:b0:511:3634:c7e with SMTP id g22-20020a19e056000000b0051136340c7emr185371lfj.69.1706838242025; Thu, 01 Feb 2024 17:44:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706838241; cv=pass; d=google.com; s=arc-20160816; b=C3P/1Lxbop2IFgPD4dZyf6yVx0wAHy7G/6ZO5TcUTXCJomE6xL6u40k4FcPDwOjZxu qXuNyE/2LpAOqa86nR++GaDY6Y8/JChb81cNlO4wZRYbb2cCTr5vd3Pk06YIogU4a+sO m3xOvgYVyo2eG7RjE1goDDC+8lD0PJFfhkr+14yw74PxZKHSNT5XEzyM/Mf4NgZXc1dx y/iBSHoJVgVOc76CZO7/IfIEMsXg+YNpy9B7XBCzMcepTRK4Qm5uUMTK/BwHQ7FWejIl CCvmtZQy4wLy3vqomRPjbY/dgD49VIel7cygW0SrOpiuPZ1N0q1MgxbZR92yFo4+oy7J N44Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=bUBDi/m6vanSfN7M1l7jMTNcJUjKwJryfyB1BXudoSg=; fh=xgsOu9bwpXSOLiyoiuQjeFJ3JjAkOWBNkwPnDMrLDGc=; b=EYQLg2YoBBOi9J1al0DUa28TPnCN6TIerx5Oqas6PtKfkqJyuksTYWtNpPY96U4YSj nxN1bqrKnFJkOBlmh/969VNVISva0h+tXFrBkdtzwfSIl5t/338NEQ/J0g2FBUcs3XqP mVHtOXiAsHx497IDRuP+89casqv+a6ycjDCmPPQCnYC++A/2gthR9xe3R+cDgpNen22O GvohqQPp79FdWyB90mC2pGZpteGELRPRnLxsJo2D3Xl0aZEfZHmYBzn9781bJJ9Uz/Ay b2NHglDamRoeWWGwrFEiJkq0MnMTiAbLWrbqBR9F+Ioxe6TRydnb9/sErFGy71sA/l7T /AyA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=1meNNi5A; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-49071-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49071-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch X-Forwarded-Encrypted: i=1; AJvYcCV1eJJMrMD9J1QNIkwSbcjXXht3mIXN+PlGGo6ehokvI+WegPTclj1wG6UKOhLhSZIlN6rfvW50fGKRhFv7RseU15SmJ/XYN1IyqMXL7g== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id i24-20020a1709064ed800b00a36802aeb69si338100ejv.428.2024.02.01.17.44.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 17:44:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-49071-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=1meNNi5A; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-49071-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49071-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id BBD8E1F26EBE for ; Fri, 2 Feb 2024 01:44:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 812978BED; Fri, 2 Feb 2024 01:43:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="1meNNi5A" Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 30B3E8824; Fri, 2 Feb 2024 01:43:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706838229; cv=none; b=LqBsEl5RemRfySKDswLVF2kFhxUvnwnUKLJ28hyhTRMR4ny7AUB4KYA5sUdFPmel/m76KYhPyJzBkDPyIEA/ikIAzNrGfyEa0nO9jAL2+y/ETkSQoZLC9c8iFMlLagTnB16s2qQX5FU0KgYVeMeNqNJbSSlJ/WCn3TtNo8bEIAY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706838229; c=relaxed/simple; bh=jF7cqlsOLjqdYzWUfrDIRz33gJa1OHskriEj+F8t68s=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=VK2wUXyvCFW4OtOfuceerGaREafzfqF3YZ3//mlq6KEMLv1wqRmZtlQjtbrP4/qIMXnSWbVSxSmh0d1sDWz8AuJh16hB6omUCa9BZzKqNkxlujxxEy125yT4wzSRwjjw+dd/2tQv8mTdRMI/w5lS0uH5PfYDrN1XhLG64gIGKs0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=1meNNi5A; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch 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=bUBDi/m6vanSfN7M1l7jMTNcJUjKwJryfyB1BXudoSg=; b=1meNNi5AWyupGCEBpPG/qvE0jH qHT2flxVKXduJRVNGc1gJPVEMWbHDwndfrIv0O1PeGOqnnlYHAPZvjLWHN+041RvQJD61XXP2H4ob z0KuDS3B5b0uBdNL4Caud36vx4KSxonWgw4GwgG0ciql4H59CS3VGJ10jEwgCgA4o5KY=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1rViaf-006jmC-Ku; Fri, 02 Feb 2024 02:43:37 +0100 Date: Fri, 2 Feb 2024 02:43:37 +0100 From: Andrew Lunn To: Christian Marangi Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Konrad Dybcio , Heiner Kallweit , Russell King , Frank Rowand , Robert Marko , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: Re: [net-next PATCH v5 9/9] net: phy: qca807x: add support for configurable LED Message-ID: <46085abf-8e82-4fd9-95b8-95cbfde6e5c2@lunn.ch> References: <20240201151747.7524-1-ansuelsmth@gmail.com> <20240201151747.7524-10-ansuelsmth@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240201151747.7524-10-ansuelsmth@gmail.com> > + > + phydev->drv->led_brightness_set = NULL; > + phydev->drv->led_blink_set = NULL; > + phydev->drv->led_hw_is_supported = NULL; > + phydev->drv->led_hw_control_set = NULL; > + phydev->drv->led_hw_control_get = NULL; I don't see how that works. You have multiple PHYs using this driver. Some might have LEDs, some might have GPOs. But if you modify the driver structure like this, you prevent all PHYs from having LEDs, and maybe cause a Opps if a PHY device has already registered its LEDs? Andrew