[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID:
<MAXPR01MB2573036E3F64491864493EC1FE1D2@MAXPR01MB2573.INDPRD01.PROD.OUTLOOK.COM>
Date: Sat, 11 Jan 2025 09:29:53 +0800
From: Chen Wang <unicorn_wang@...look.com>
To: Inochi Amaoto <inochiama@...il.com>
Cc: Chen Wang <unicornxw@...il.com>, u.kleine-koenig@...libre.com,
aou@...s.berkeley.edu, arnd@...db.de, conor+dt@...nel.org,
guoren@...nel.org, inochiama@...look.com, krzk+dt@...nel.org,
palmer@...belt.com, paul.walmsley@...ive.com, robh@...nel.org,
tglx@...utronix.de, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-riscv@...ts.infradead.org,
chao.wei@...hgo.com, xiaoguang.xing@...hgo.com, fengchun.li@...hgo.com
Subject: Re: [PATCH v2 2/3] irqchip: Add the Sophgo SG2042 MSI interrupt
controller
On 2025/1/11 8:45, Inochi Amaoto wrote:
> On Mon, Dec 09, 2024 at 03:12:00PM +0800, Chen Wang wrote:
>> From: Chen Wang <unicorn_wang@...look.com>
[......]
>> +
>> +struct sg2042_msi_data {
> suggestions: sg2042_msi_chipdata
ok
[......]
>> +static void sg2042_msi_irq_compose_msi_msg(struct irq_data *data,
>> + struct msi_msg *msg)
>> +{
>> + struct sg2042_msi_data *priv = irq_data_get_irq_chip_data(data);
> It will be better to unify the variable name, it is confused for me.
ok, I will unify this from "priv" to "data" as other functions.
[......]
>> + if (data->irq_first < SG2042_VECTOR_MIN ||
>> + (data->irq_first + data->num_irqs - 1) > SG2042_VECTOR_MAX) {
>> + dev_err(&pdev->dev, "msi-ranges is incorrect!\n");
>> + return -EINVAL;
>> + }
> This check is fine, but I think it is kind of useless. Take the
> configuration for devicetree and process it as is, which also makes
> supporting new platform simple.
Sure, I will drop this check.
[......]
Thanks,
Chen
Powered by blists - more mailing lists