From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=13.77.154.182 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796368911; b=vQxcJY/Xc6GjuKVgV7ggM6Bu5Lo+ezHjOBsgkXQzWgFi9TA8CsJ8tPVImdqXyXCRh70z pcuy80uAkyWxWDgU0IRmOq9Ve7dur+IiSEbR5KJaA8VNkFicLADU9qVf2UuPKioUaQK5u TNA4/oKystx07HJqyeCpk4mdkfzzT6UxMq533TsOwR+fujQ8yiPk65GAOPlpbFdyB10FZ Q15+UIRdXhDibULxc62P/LxQBA7sC7Z9yp4T85L7Q8uvMhBfSHrkGPr+uasglPnneu6+R +7HD/6jSO2LZML5cNbhj0Nsr4cIVgzlpwVoeMpfJZ6fqbTZS5aEjcOF77G6Q0AJzvJA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796368911; h=DMARC-Filter:Received:DKIM-Filter:DKIM-Signature:Message-ID:Date: MIME-Version:User-Agent:Subject:To:Cc:References:Content-Language: From:In-Reply-To:Content-Type:Content-Transfer-Encoding:X-Spam-Status: X-Spam-Checker-Version; bh=eMVFNzWfHrPJFXGTrVFyxunu4kM5Sj24wD0ih3U6HxU=; b=JLM7mQz0hyKt7MPl5MUfvwdcDIQG7NbdwJROM9EweEjX4mBXZ32ePPBwZyvV0IJ7hmki oNbdvCWH5ebXgwu1McuaXwERfs6E8MfeKioGkLEsH6gfmV75fkkLuEpSvYfkxbfdnYvgS rnHVtmcCSBJ22nq46zzeKRKngFzPtptX2w/oWGqisc5DNnYxbMKVJWt82wS6wEYfTGrpT 1pkyzEftNBKnwwxcEjw2cxBIUEaLDaOXSeLfhwLjgYGQFEN+pq1XYP+tsY8bGM8OdRN1j DyXl+ckZtNmywb3pFDZir2YVkLQMA7XEF1CQegG2P+b3KbCTWzSEciIhdE22Sf+CSJw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.microsoft.com; spf=pass smtp.mailfrom=linux.microsoft.com; dkim=pass header.d=linux.microsoft.com header.i=@linux.microsoft.com header.a=rsa-sha256 header.s=default header.b=A21YUgbK; arc=none smtp.remote-ip=13.77.154.182 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D1DFE606A339; Fri, 4 Dec 2026 07:21:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D1DFE606A339 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.a=rsa-sha256 header.s=default header.b=A21YUgbK Received: from [10.94.176.68] (unknown [52.172.102.253]) by linux.microsoft.com (Postfix) with ESMTPSA id 9F92C20B716D; Thu, 3 Dec 2026 23:21:29 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 9F92C20B716D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1796368910; bh=eMVFNzWfHrPJFXGTrVFyxunu4kM5Sj24wD0ih3U6HxU=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=A21YUgbK8A3Ij6lNMI+V55W5ZssSsaR8PYlNHutKO48aEoeI8iv/LgmeK5xeisX9u 7F8yuETSsnlKlzvDFUxbcvF1r5ZtKO0o4soCYoZ1+u6vI9ePme4U5BV6BleoHLS/yR jpOkNvZZWBIhpTwyZpHALok8DNr7BqclCjR2+U+Y= Message-ID: <111acb39-eadc-42ab-a74d-7ad95cc232a4@linux.microsoft.com> Date: Fri, 4 Dec 2026 12:51:27 +0530 X-Mailing-List: linux-csky@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 09/14] leds/trigger/cpu, hotplug: Update name & callbacks to match their hotplug states To: "Srivatsa S. Bhat (Microsoft)" , Jassi Brar , Michal Simek , Saeed Nowshadi , Tanmay Shah , Tejas Patel , Rajan Vaja , Greg Kroah-Hartman , Abhyuday Godhasara , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Heinrich Schuchardt , Anup Patel , Conor Dooley , Caleb James DeLisle , Daniel Lezcano , Thomas Gleixner , Maxime Coquelin , Alexandre Torgue , Herve Codina , Chris Packham , Markus Stockhausen , Sander Vanheule , Lorenzo Pieralisi , Sudeep Holla , Ulf Hansson , "Rafael J. Wysocki" , Christian Loehle , Anup Patel , Atish Patra , Suzuki K Poulose , Mike Leach , James Clark , Leo Yan , Alexander Shishkin , Yeoreum Yun , Radu Rendec , =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , Lee Jones , Pavel Machek , Griffin Kroah-Hartman , Lukasz Luba , Jens Wiklander , Sumit Garg , Etienne Carriere , Andrew Morton , Zqiang , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Jiri Olsa , Ian Rogers , Adrian Hunter , Guo Ren , Mao Han , Mete Durlu , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Palmer Dabbelt , linux-riscv@lists.infradead.org, linux-mips@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-renesas-soc@vger.kernel.org, linux-pm@vger.kernel.org, coresight@lists.linaro.org, linux-leds@vger.kernel.org, op-tee@lists.trustedfirmware.org, linux-perf-users@vger.kernel.org, linux-csky@vger.kernel.org, linux-s390@vger.kernel.org, Saurabh Sengar , Thara Gopinath References: <20261204-fix-cpuhp-state-names-v1-0-32e62361ce1d@csail.mit.edu> <20261204-fix-cpuhp-state-names-v1-9-32e62361ce1d@csail.mit.edu> Content-Language: en-US From: Prasanna Kumar T S M In-Reply-To: <20261204-fix-cpuhp-state-names-v1-9-32e62361ce1d@csail.mit.edu> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 04-12-2026 00:46, Srivatsa S. Bhat (Microsoft) wrote: > The CPU LED trigger registers its CPU hotplug callbacks at > CPUHP_AP_ONLINE_DYN, but names the state "leds/trigger:starting". > This is misleading because the 'starting' suffix denotes the earlier, > interrupts-disabled STARTING section, and not the ONLINE section. > > Rename it to "leds/trigger:online", following the naming convention > documented in Documentation/core-api/cpu_hotplug.rst. > > Also, rename the registered CPU hotplug startup and teardown callbacks > to match the states that they are associated with. > > No functional change intended, except for the update to the name string, > which gets reflected in sysfs output and instrumentation. > > Fixes: 73c1b41e63f0 ("cpu/hotplug: Cleanup state names") > Signed-off-by: Srivatsa S. Bhat (Microsoft) > --- > drivers/leds/trigger/ledtrig-cpu.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/drivers/leds/trigger/ledtrig-cpu.c b/drivers/leds/trigger/ledtrig-cpu.c > index 679323c2ccda..5e3cb6c98843 100644 > --- a/drivers/leds/trigger/ledtrig-cpu.c > +++ b/drivers/leds/trigger/ledtrig-cpu.c > @@ -120,13 +120,13 @@ static struct syscore ledtrig_cpu_syscore = { > .ops = &ledtrig_cpu_syscore_ops, > }; > > -static int ledtrig_online_cpu(unsigned int cpu) > +static int ledtrig_cpu_online(unsigned int cpu) > { > ledtrig_cpu(CPU_LED_START); > return 0; > } > > -static int ledtrig_prepare_down_cpu(unsigned int cpu) > +static int ledtrig_cpu_offline(unsigned int cpu) > { > ledtrig_cpu(CPU_LED_STOP); > return 0; > @@ -163,8 +163,8 @@ static int __init ledtrig_cpu_init(void) > > register_syscore(&ledtrig_cpu_syscore); > > - ret = cpuhp_setup_state(CPUHP_AP_ONLINE_DYN, "leds/trigger:starting", > - ledtrig_online_cpu, ledtrig_prepare_down_cpu); > + ret = cpuhp_setup_state(CPUHP_AP_ONLINE_DYN, "leds/trigger:online", > + ledtrig_cpu_online, ledtrig_cpu_offline); > if (ret < 0) > pr_err("CPU hotplug notifier for ledtrig-cpu could not be registered: %d\n", > ret); > Looks good to me. Reviewed-by: Prasanna Kumar T S M