public inbox for alsa-devel@alsa-project.org
 help / color / mirror / Atom feed
From: lizhe  <sensor1010@163.com>
To: "Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
	skhan@linuxfoundation.org, ilpo.jarvinen@linux.intel.com,
	michael.chan@broadcom.com, dave.jiang@intel.com,
	ville.syrjala@linux.intel.com, gustavo.sousa@intel.com,
	marex@denx.de, uma.shankar@intel.com, hamza.mahfooz@amd.com,
	rostedt@goodmis.org, dan.carpenter@linaro.org,
	rdunlap@infradead.org, arnd@arndb.de, axun.yang@flygoat.com,
	naveen.n.rao@linux.ibm.com, christophe.leroy@csgroup.eu,
	tiwai@suse.de, alsa-devel@alsa-project.org, perex@perex.cz,
	bugreport@ubisectech.com, cmaiolino@redhat.com, jack@suse.cz,
	hughd@google.com, stable@vger.kernel.org,
	akpm@linux-foundation.org, tiagolam@gmail.com,
	benno.lossin@proton.me, aliceryhl@google.com,
	syoshida@redhat.com, leitao@debian.org, davem@davemloft.net,
	josef@toxicpanda.com, edumazet@google.com, kuba@kernel.org,
	idosch@nvidia.com, paulmck@kernel.org, willemb@google.com,
	matttbe@kernel.org, martineau@kernel.org,
	grygorii.strashko@ti.com, gregory.clement@bootlin.com,
	grant.likely@secretlab.ca, bsegall@google.com,
	broonie@kernel.org, festevam@gmail.com, fancer.lancer@gmail.com,
	brgl@bgdev.pl, Steen.Hegelund@microchip.com, len.brown@intel.com,
	rafael.j.wysocki@intel.com, d-gole@ti.com,
	qingliang.li@mediatek.com, stanislaw.gruszka@linux.intel.com,
	geert+renesas@glider.be, khilman@deeprootsystems.com,
	broonie@opensource.wolfsonmicro.com, rjw@sisk.pl,
	kai.heng.feng@canonical.com, rui.zhang@intel.com, cai@lca.pw,
	trong@android.com, swboyd@chromium.org,
	jonathan.haslam@gmail.com, jolsa@kernel.org, mhiramat@kernel.org,
	mingo@kernel.org, wangkefeng.wang@huawei.com,
	willy@infradead.org, khuey@kylehuey.com,
	alexander.shishkin@linux.intel.com, acme@redhat.com,
	jolsa@redhat.com, torvalds@linux-foundation.org,
	peterz@infradead.org, eranian@google.com,
	vincent.weaver@maine.edu, acme@kernel.org, mark.rutland@arm.com,
	namhyung@kernel.org, yabinc@google.com, tglx@linutronix.de,
	dongli.zhang@oracle.com, kstewart@linuxfoundation.org,
	pombredanne@nexb.com, kirill@shutemov.name,
	kirill.shutemov@linux.intel.com, robin.murphy@arm.com,
	nsaenzjulienne@suse.de, rientjes@google.com, hch@lst.de,
	dyoung@redhat.com, jirislaby@kernel.org,
	sourabhjain@linux.ibm.com, bhe@redhat.com,
	hbathini@linux.ibm.com, mpe@ellerman.id.au,
	thunder.leizhen@huawei.com, ziy@nvidia.com, seanjc@google.com,
	bp@alien8.de, vkuznets@redhat.com, dwmw@amazon.co.uk,
	mark.rutland@arm.com, mikelley@microsoft.com, deller@gmx.de,
	gpiccoli@igalia.com
Cc: stable@vger.kernel.org, patches@lists.linux.dev,
	"Viresh Kumar" <viresh.kumar@linaro.org>,
	"Rafael J. Wysocki" <rafael.j.wysocki@intel.com>,
	"Sasha Levin" <sashal@kernel.org>
Subject: Re:[PATCH 6.8 215/493] cpufreq: exit() callback is optional
Date: Thu, 30 May 2024 21:56:15 +0800 (CST)	[thread overview]
Message-ID: <4a63f4ef.b14a.18fc9c97952.Coremail.sensor1010@163.com> (raw)
In-Reply-To: <20240527185637.351762776@linuxfoundation.org>

Hi, Viresh Kumar
    
Do you take to heart the efforts and contributions of others to the community ?


1. 
I submitted this patch. You included it in your patch completely.

    > > static int cpufreq_offline(unsigned int cpu)

> >@@ -1731,7 +1734,7 @@ static void cpufreq_remove_dev(struct device *dev, struct subsys_interface *sif)

> >  }

> > 

> >  /* We did light-weight exit earlier, do full tear down now */

> >- if (cpufreq_driver->offline)

> >+ if (cpufreq_driver->offline && cpufreq_driver->exit)

> >  cpufreq_driver->exit(policy);

> > 

> >  up_write(&policy->rwsem);

> >-- 




2. 

You have seen the three patches I submitted to you and the main line before submitting this patch.




> >@@ -1670,10 +1670,13 @@ static void __cpufreq_offline(unsigned int cpu, struct cpufreq_policy *policy)

> >   */

> >  if (cpufreq_driver->offline) {

> >  cpufreq_driver->offline(policy);

> >- } else if (cpufreq_driver->exit) {

> >- cpufreq_driver->exit(policy);

> >- policy->freq_table = NULL;

> >+ return;

> >  }

> >+

> >+ if (cpufreq_driver->exit)

> >+ cpufreq_driver->exit(policy);

> >+

> >+ policy->freq_table = NULL;

> > }




As a senior member of the kernel community, you should uphold the fairness and justice of the community.




Why do you have to rush in and take over others' patches? Isn't that selfish of you?




Your behavior disrespects others' efforts and enthusiasm, and it undermines the collaborative, harmonious, and fair atmosphere of the community.




I have tried to communicate with you several times,  but you have refused. Is it because you are the maintainer of the community ?  Where does your authority come from ?


                                                                 thanks.
                                                                 Lizhe   

















At 2024-05-28 02:53:37, "Greg Kroah-Hartman" <gregkh@linuxfoundation.org> wrote:
>6.8-stable review patch.  If anyone has any objections, please let me know.
>
>------------------
>
>From: Viresh Kumar <viresh.kumar@linaro.org>
>
>[ Upstream commit b8f85833c05730d631576008daaa34096bc7f3ce ]
>
>The exit() callback is optional and shouldn't be called without checking
>a valid pointer first.
>
>Also, we must clear freq_table pointer even if the exit() callback isn't
>present.
>
>Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
>Fixes: 91a12e91dc39 ("cpufreq: Allow light-weight tear down and bring up of CPUs")
>Fixes: f339f3541701 ("cpufreq: Rearrange locking in cpufreq_remove_dev()")
>Reported-by: Lizhe <sensor1010@163.com>
>Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
>Signed-off-by: Sasha Levin <sashal@kernel.org>
>---
> drivers/cpufreq/cpufreq.c | 11 +++++++----
> 1 file changed, 7 insertions(+), 4 deletions(-)
>
>diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c
>index 3c2c955fbbbd6..86f1bc7754ea6 100644
>--- a/drivers/cpufreq/cpufreq.c
>+++ b/drivers/cpufreq/cpufreq.c
>@@ -1670,10 +1670,13 @@ static void __cpufreq_offline(unsigned int cpu, struct cpufreq_policy *policy)
> 	 */
> 	if (cpufreq_driver->offline) {
> 		cpufreq_driver->offline(policy);
>-	} else if (cpufreq_driver->exit) {
>-		cpufreq_driver->exit(policy);
>-		policy->freq_table = NULL;
>+		return;
> 	}
>+
>+	if (cpufreq_driver->exit)
>+		cpufreq_driver->exit(policy);
>+
>+	policy->freq_table = NULL;
> }
> 
> static int cpufreq_offline(unsigned int cpu)
>@@ -1731,7 +1734,7 @@ static void cpufreq_remove_dev(struct device *dev, struct subsys_interface *sif)
> 	}
> 
> 	/* We did light-weight exit earlier, do full tear down now */
>-	if (cpufreq_driver->offline)
>+	if (cpufreq_driver->offline && cpufreq_driver->exit)
> 		cpufreq_driver->exit(policy);
> 
> 	up_write(&policy->rwsem);
>-- 
>2.43.0
>
>

           reply	other threads:[~2024-06-13 16:01 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <20240527185637.351762776@linuxfoundation.org>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4a63f4ef.b14a.18fc9c97952.Coremail.sensor1010@163.com \
    --to=sensor1010@163.com \
    --cc=Steen.Hegelund@microchip.com \
    --cc=acme@kernel.org \
    --cc=acme@redhat.com \
    --cc=akpm@linux-foundation.org \
    --cc=alexander.shishkin@linux.intel.com \
    --cc=aliceryhl@google.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=arnd@arndb.de \
    --cc=axun.yang@flygoat.com \
    --cc=benno.lossin@proton.me \
    --cc=bhe@redhat.com \
    --cc=bp@alien8.de \
    --cc=brgl@bgdev.pl \
    --cc=broonie@kernel.org \
    --cc=broonie@opensource.wolfsonmicro.com \
    --cc=bsegall@google.com \
    --cc=bugreport@ubisectech.com \
    --cc=cai@lca.pw \
    --cc=christophe.leroy@csgroup.eu \
    --cc=cmaiolino@redhat.com \
    --cc=d-gole@ti.com \
    --cc=dan.carpenter@linaro.org \
    --cc=dave.jiang@intel.com \
    --cc=davem@davemloft.net \
    --cc=deller@gmx.de \
    --cc=dongli.zhang@oracle.com \
    --cc=dwmw@amazon.co.uk \
    --cc=dyoung@redhat.com \
    --cc=edumazet@google.com \
    --cc=eranian@google.com \
    --cc=fancer.lancer@gmail.com \
    --cc=festevam@gmail.com \
    --cc=geert+renesas@glider.be \
    --cc=gpiccoli@igalia.com \
    --cc=grant.likely@secretlab.ca \
    --cc=gregkh@linuxfoundation.org \
    --cc=gregory.clement@bootlin.com \
    --cc=grygorii.strashko@ti.com \
    --cc=gustavo.sousa@intel.com \
    --cc=hamza.mahfooz@amd.com \
    --cc=hbathini@linux.ibm.com \
    --cc=hch@lst.de \
    --cc=hughd@google.com \
    --cc=idosch@nvidia.com \
    --cc=ilpo.jarvinen@linux.intel.com \
    --cc=jack@suse.cz \
    --cc=jirislaby@kernel.org \
    --cc=jolsa@kernel.org \
    --cc=jolsa@redhat.com \
    --cc=jonathan.haslam@gmail.com \
    --cc=josef@toxicpanda.com \
    --cc=kai.heng.feng@canonical.com \
    --cc=khilman@deeprootsystems.com \
    --cc=khuey@kylehuey.com \
    --cc=kirill.shutemov@linux.intel.com \
    --cc=kirill@shutemov.name \
    --cc=kstewart@linuxfoundation.org \
    --cc=kuba@kernel.org \
    --cc=leitao@debian.org \
    --cc=len.brown@intel.com \
    --cc=marex@denx.de \
    --cc=mark.rutland@arm.com \
    --cc=martineau@kernel.org \
    --cc=matttbe@kernel.org \
    --cc=mhiramat@kernel.org \
    --cc=michael.chan@broadcom.com \
    --cc=mikelley@microsoft.com \
    --cc=mingo@kernel.org \
    --cc=mpe@ellerman.id.au \
    --cc=namhyung@kernel.org \
    --cc=naveen.n.rao@linux.ibm.com \
    --cc=nsaenzjulienne@suse.de \
    --cc=patches@lists.linux.dev \
    --cc=paulmck@kernel.org \
    --cc=perex@perex.cz \
    --cc=peterz@infradead.org \
    --cc=pombredanne@nexb.com \
    --cc=qingliang.li@mediatek.com \
    --cc=rafael.j.wysocki@intel.com \
    --cc=rdunlap@infradead.org \
    --cc=rientjes@google.com \
    --cc=rjw@sisk.pl \
    --cc=robin.murphy@arm.com \
    --cc=rostedt@goodmis.org \
    --cc=rui.zhang@intel.com \
    --cc=sashal@kernel.org \
    --cc=seanjc@google.com \
    --cc=skhan@linuxfoundation.org \
    --cc=sourabhjain@linux.ibm.com \
    --cc=stable@vger.kernel.org \
    --cc=stanislaw.gruszka@linux.intel.com \
    --cc=swboyd@chromium.org \
    --cc=syoshida@redhat.com \
    --cc=tglx@linutronix.de \
    --cc=thunder.leizhen@huawei.com \
    --cc=tiagolam@gmail.com \
    --cc=tiwai@suse.de \
    --cc=torvalds@linux-foundation.org \
    --cc=trong@android.com \
    --cc=uma.shankar@intel.com \
    --cc=ville.syrjala@linux.intel.com \
    --cc=vincent.weaver@maine.edu \
    --cc=viresh.kumar@linaro.org \
    --cc=vkuznets@redhat.com \
    --cc=wangkefeng.wang@huawei.com \
    --cc=willemb@google.com \
    --cc=willy@infradead.org \
    --cc=yabinc@google.com \
    --cc=ziy@nvidia.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox