On Mon, Dec 09, 2024 at 03:12:00PM +0800, Chen Wang wrote:[......]
From: Chen Wang <unicorn_wang@xxxxxxxxxxx>
+suggestions: sg2042_msi_chipdata
+struct sg2042_msi_data {
+static void sg2042_msi_irq_compose_msi_msg(struct irq_data *data,It will be better to unify the variable name, it is confused for me.
+ struct msi_msg *msg)
+{
+ struct sg2042_msi_data *priv = irq_data_get_irq_chip_data(data);
+ if (data->irq_first < SG2042_VECTOR_MIN ||This check is fine, but I think it is kind of useless. Take the
+ (data->irq_first + data->num_irqs - 1) > SG2042_VECTOR_MAX) {
+ dev_err(&pdev->dev, "msi-ranges is incorrect!\n");
+ return -EINVAL;
+ }
configuration for devicetree and process it as is, which also makes
supporting new platform simple.