Received: by 2002:a05:6a10:8395:0:0:0:0 with SMTP id n21csp623862pxh; Tue, 9 Nov 2021 16:21:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJw4PmVWM4DMgb5BGW0djGjANDtLecCnvFScQYSNqZmSkUSjOFK38fcOpYEOr4mA1RYzOaKz X-Received: by 2002:a05:6e02:1bcb:: with SMTP id x11mr7871668ilv.94.1636503719256; Tue, 09 Nov 2021 16:21:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636503719; cv=none; d=google.com; s=arc-20160816; b=LyyRbWxpW88D+Az+Dt6L9tMMouA5zbObygq0szpSU1eSq50yu+aCMaw+qUIkVcFygi foRAOlbDhsQ1PyLRzIaZlzIbO8vyA8OMw3Hro4Ti5WrXzo5UFYJNY8LD5pKrXgrjtSKN mjJyICiR70YAh0JpPeSNR/6AqAKz5V9i9rTsfnSagGATB9IhXZoEC9edQvr2pWM7teJq 51l7FdvfjBZbdi52ndI1wNzL4UtpQoaML3Xd0H3KB/j2020mpLk7eh9dk6HpLZue5iSc ODnK+ICLjnoWgoN6KnlOtFrSI5pLpQ1PBAUYphAhHjhn1zRmDptUL/X0EaHY+jJkqCp3 0S/A== 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=UQf8COTFsagdrfbDjGeAFUwNVRG2xJ6sgcNzxAbi2GQ=; b=qcGK7IvVpay0UCul6Ray/91RFDRU6gchLiUFPZ0eoCJNKGerL+9NeizThZu/0SVXjI bC+dNPQWlINJCoSaywxeUBQcmnNu8GmMOJunQzXAD43EmJiVIRBRq1fwIatapsxW1WQH VIaVlsUUYiexx/2mFG2Wgk+LGW3NpGPBIzvE/bdTPSCi6W9hV5b8Fwo6Ac+nQgqfHj97 Tchs0C2Qdnzdyg8DDNX7HuJv/A9eOagHTbCPMlQBOFoWbj7ZNzrwmfjuW6Zud79m9sRf PjjUWFifTPFIG1fNg5ntS12SXWx+fMEi1aSmyjCyms0OSR52rlXNYM0xcbKDN2qC9rlS r7cQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=3vR5thXo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i15si29102244ion.80.2021.11.09.16.21.47; Tue, 09 Nov 2021 16:21:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=3vR5thXo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245206AbhKIVbc (ORCPT + 97 others); Tue, 9 Nov 2021 16:31:32 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:53468 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245187AbhKIVbZ (ORCPT ); Tue, 9 Nov 2021 16:31:25 -0500 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=UQf8COTFsagdrfbDjGeAFUwNVRG2xJ6sgcNzxAbi2GQ=; b=3vR5thXo5U0rqtVzvGah4Lsl/d /b2EEtsaZdO8VlZNYC7oCbh+PbezQOcZoRwCGBddHevqFI03oDQ3v6nOm49kzzNAlayYHgA/NCoQi E79jOZ/M8dMmqP7kugNMj1GgfhQghMImI3J6+ZwpMaJ0zkx0zcvQ+7yPUBJ8B7ZuUkBQ=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1mkYfS-00D1aM-7h; Tue, 09 Nov 2021 22:28:34 +0100 Date: Tue, 9 Nov 2021 22:28:34 +0100 From: Andrew Lunn To: Ansuel Smith Cc: Vivien Didelot , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Jakub Kicinski , Rob Herring , Jonathan Corbet , Pavel Machek , John Crispin , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-leds@vger.kernel.org, Marek =?iso-8859-1?Q?Beh=FAn?= Subject: Re: [RFC PATCH v3 6/8] leds: trigger: add hardware-phy-activity trigger Message-ID: References: <20211109022608.11109-1-ansuelsmth@gmail.com> <20211109022608.11109-7-ansuelsmth@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211109022608.11109-7-ansuelsmth@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > +/* The attrs will be placed dynamically based on the supported triggers */ > +static struct attribute *phy_activity_attrs[PHY_ACTIVITY_MAX_TRIGGERS + 1]; This cannot be global. I have boards with a mixture of different PHYs and switches. Each will have their own collection of supported modes. And some PHYs have different modes per LED. Andrew