All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
To: Yinbo Zhu <zhuyinbo@loongson.cn>
Cc: amitk@kernel.org, christophe.jaillet@wanadoo.fr,
	daniel.lezcano@linaro.org, devicetree@vger.kernel.org,
	krzysztof.kozlowski+dt@linaro.org, linux-kernel@vger.kernel.org,
	linux-pm@vger.kernel.org, liupeibao@loongson.cn,
	rafael@kernel.org, robh+dt@kernel.org, rui.zhang@intel.com,
	zhanghongchen@loongson.cn
Subject: Re: [PATCH v10 1/2] thermal: loongson-2: add thermal management support
Date: Fri, 11 Nov 2022 12:19:49 +0100	[thread overview]
Message-ID: <786d9e96-211d-2357-4f5a-38e580d817f8@wanadoo.fr> (raw)
In-Reply-To: <ef7a6f77-9f18-e68d-a6a7-61186346c768@loongson.cn>

Le 11/11/2022 à 11:05, Yinbo Zhu a écrit :
> 
> 
> 在 2022/11/10 下午2:01, Christophe JAILLET 写道:
>> Le 09/11/2022 à 09:09, Yinbo Zhu a écrit :
>>> Hi Rafael J.Wysocki,
>>>
>>> I just have a verified on your tree about my patch again, it is okay,
>>> if no other proplems, please help merge it to your tree and sync it 
>>> to linux mainline tree.
>>>
>>> Thanks,
>>> Yinbo.
>>>
>>
>> Hi,
>>
>> I've sent a few nits on v10, that you are obviously free to take into 
>> account or not.
>>
>> However, one of these comments is about thermal_add_hwmon_sysfs() vs 
>> devm_thermal_add_hwmon_sysfs() in loongson2_thermal_probe().
>>
>> IMHO, if I'm correct, at least this comment should be fixed.
> Hi Christophe JAILLET,
> 
> Thanks your addvice, I had send v11 that following your advice,
> but some it is different. e.g.  devm_request_threaded_irq return value 
> is integer and use IS_ERR(integer) that isn't appropriate.

Hi,
thanks for taking my comments into consideration.


My point was something like:

	ret = devm_request_threaded_irq(dev, data->irq,
			loongson2_thermal_alarm_irq, loongson2_thermal_irq_thread,
			IRQF_ONESHOT, "loongson2_thermal", data);
	if (ret < 0)
		return dev_err_probe(dev, ret, "failed to request alarm irq\n");

But that  mostly a matter of taste. I don't think it worth a re-spin 
only for that.


However, I'll send another comment about the use of min() and max() in 
v11. I think it is not correct.

CJ

> 
> Tks,
> Yinbo
>>
>> CJ
> 
> 


      reply	other threads:[~2022-11-11 11:20 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-03  8:34 [PATCH v10 1/2] thermal: loongson-2: add thermal management support Yinbo Zhu
2022-11-03  8:34 ` [PATCH v10 2/2] dt-bindings: thermal: add loongson-2 thermal Yinbo Zhu
2022-11-09  8:12   ` Yinbo Zhu
2022-11-03  9:25 ` [PATCH v10 1/2] thermal: loongson-2: add thermal management support Christophe JAILLET
2022-11-09  8:09 ` Yinbo Zhu
2022-11-10  6:01   ` Christophe JAILLET
2022-11-11 10:05     ` Yinbo Zhu
2022-11-11 11:19       ` Christophe JAILLET [this message]

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=786d9e96-211d-2357-4f5a-38e580d817f8@wanadoo.fr \
    --to=christophe.jaillet@wanadoo.fr \
    --cc=amitk@kernel.org \
    --cc=daniel.lezcano@linaro.org \
    --cc=devicetree@vger.kernel.org \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=liupeibao@loongson.cn \
    --cc=rafael@kernel.org \
    --cc=robh+dt@kernel.org \
    --cc=rui.zhang@intel.com \
    --cc=zhanghongchen@loongson.cn \
    --cc=zhuyinbo@loongson.cn \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.