From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=185.171.202.116 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796234113; b=iXrIH0I08CymoLjtHR+nnm9V1op3TtTbz6y9twlORMhpq4lxx3yc3ZVLWR2Yj3EP3/6L BVbIsTffvNvbRYzCJWQUt2BmKNQvcms2KwSU06cMVoQnvsZWEVS2lm+6vAwNuk6PfG60K bDrMiSAyzK4SW/Uo2L3xBGLUuhVmN6vWTRnBq5iU5EKPSFpvSMECI1w3uz/c6bfwUAW7Y Xcq5GI72w1HvJQOpwV9N1Tq+QMfhYlXgsxgEBREVT0xvq+32tHSddsFLD732N+Rlucj4Z jPKBcPeXwpd7t6AKa62IX3wJL9KOARRT8zsJuxgJayD+Iqq/oatQ+QScoonMNbT2HhQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796234113; h=DMARC-Filter:Received:Received:Received:DKIM-Signature:Message-ID: Date:MIME-Version:User-Agent:Subject:To:Cc:References:From: Content-Language:In-Reply-To:Content-Type:Content-Transfer-Encoding: X-Last-TLS-Session-Version; bh=h1pwkpJvXbro2UxioOXTFSSGbfXjCYck4n50b0BPV+I=; b=K1pxHNsyGel8qsmXKIoJl8iMbXzdzlBPeh2SOITKp6yayQ0fiW5MiIoPZx0N+u7SxPrU lqaOshhajvL0G4Wo06Ok4bX+nBF11WoMc4OwTg/PlqeTvjvxLBApaUSix+0/O1RO4bf/6 +NRGPa8wP3d+WRmKD2BLO6OT0Guto1rlgQnmVjkq/lkXPgrVL3bXc8fpmJHqcBHjnpLy6 Yh9bno3mwiwdbbbsxnJFmkkvCwhofIFCMz5G8yzu+x6/l+8T7wycva8/mJEkjIgvY0JbO uphW+QLHYKasxivgHhkV/91S3jOeg/OBPqtL/pjzMAwZAqTyK9VAZuLC3y7HeXcv9AA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=dkim header.b=ImZ8rtY5; arc=none smtp.remote-ip=185.171.202.116 Received: from smtpout-04.galae.net (smtpout-04.galae.net [185.171.202.116]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DD04B606A32D; Wed, 2 Dec 2026 17:55:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org DD04B606A32D Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=dkim header.b=ImZ8rtY5 Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-04.galae.net (Postfix) with ESMTPS id E1BCAC01336; Wed, 2 Dec 2026 17:55:20 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id AB6CA6075F; Wed, 2 Dec 2026 17:55:09 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 7A11F11EA1BAF; Wed, 02 Dec 2026 18:55:00 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1796234104; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:content-language:in-reply-to:references; bh=h1pwkpJvXbro2UxioOXTFSSGbfXjCYck4n50b0BPV+I=; b=ImZ8rtY5OsrzmTPzrbtlABttNXi6HYGyZ9iYY9/Q4FcMmQRSt5tg0Pmjtai4qroiMF6XUA j7mXObqK6luLni6fYu4CyOvuaP8WPJawlFum2rJpkF4DTWC0VsntUzucCNAcYOo7EW/SR1 6dPfV7/I3AO8+9/AaK7NgzeWeQ97gAR1x6M8nxdO7435vWTxlWTw5XFtV2rCTFNqas2eet wC56CiYWr/kOHHmz83KngjHcCRuj1J9Z14d5WlrqG03+F7JqQxuawR7I9xcK4NsO4HfSZQ ByUe8/Y/ScNOd5LunVgLeILJn8KxnvEf+p5LzY528gLtnHitSELQKwtc/SY90w== Message-ID: Date: Wed, 2 Dec 2026 18:54:59 +0100 X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Betterbird (Linux) Subject: Re: [PATCH net-next v6 2/2] net: pse-pd: add LED trigger support via notification path To: Carlo Szelinsky Cc: Oleksij Rempel , Andrew Lunn , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Lee Jones , Pavel Machek , Jonas Jelonek , Ross Cawston , netdev@vger.kernel.org, linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org References: <20261202173635.207646-1-github@szelinsky.de> From: Kory Maincent Content-Language: en-US In-Reply-To: <20261202173635.207646-1-github@szelinsky.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Last-TLS-Session-Version: TLSv1.3 On 12/2/26 18:36, Carlo Szelinsky wrote: > Hi Kory, > > On Mon, 30 Nov 2026 17:31, Kory Maincent wrote: >> Human readable commit message please. > > Acknowledged. > >> I don't get why you separate the registration of the two led triggers. >> What is the reason for that? > > "delivering" changes when a PD is plugged in or removed. The core only > sees that through the IRQ or the poll helper. Without one of them the > LED would miss it, so I only register "delivering" when there is an > event source. "enabled" only changes through the core, so it always > works. > > The second place is for drivers like tps23881, which call > devm_pse_irq_helper() after devm_pse_controller_register(). At > registration pcdev->irq is still 0.> > If you prefer, I can register both triggers in one place for every > controller, and document that "delivering" needs an IRQ or polling to > follow plug and unplug. What do you think? Yes this seems good to me. >> Please no inline in C files. Let the compiler decide. > > Right, will fix. > >> There is one led trigger per PI isn't it? So why do you put it here >> instead of in the pse_pi structure? > > Right, I'll move it into struct pse_pi. As a pointer to a struct only > pse_core.c knows, like the poll fields. OK? Yes. -- Köry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com