From: Krzysztof Kozlowski <krzk@kernel.org>
To: Adrian Hunter <adrian.hunter@intel.com>, alexandre.belloni@bootlin.com
Cc: Frank.Li@nxp.com, linux-i3c@lists.infradead.org
Subject: Re: [PATCH 6/7] i3c: mipi-i3c-hci-pci: Add support for Multi-Bus Instances
Date: Wed, 10 Dec 2025 07:01:54 +0100 [thread overview]
Message-ID: <686a8d29-ac3c-4ec6-8ed8-58e70972b9d2@kernel.org> (raw)
In-Reply-To: <20251209115104.124156-7-adrian.hunter@intel.com>
On 09/12/2025 12:51, Adrian Hunter wrote:
> +static void mipi_i3c_hci_pci_setup_cell(struct mipi_i3c_hci_pci *hci, int idx,
> + struct mipi_i3c_hci_pci_cell_data *data,
> + struct mfd_cell *cell)
> +{
> + u32 offset = idx ? hci->info->instance_offset[idx - 1] : 0;
> +
> + hci->instances[idx].offset = offset;
> +
> + data->pdata = hci->info->pdata;
> + data->pdata.base_regs = hci->base + offset;
> +
> + data->res = DEFINE_RES_IRQ(0);
> +
> + cell->name = "mipi-i3c-hci";
> + cell->id = hci->instances[idx].dev_id;
> + cell->platform_data = &data->pdata;
> + cell->pdata_size = sizeof(data->pdata);
> + cell->num_resources = 1;
> + cell->resources = &data->res;
> +}
> +
> +static int mipi_i3c_hci_pci_add_instances(struct mipi_i3c_hci_pci *hci)
> +{
> + int instance_count = hci->info->instance_count + 1; /* Include instance at offset 0 */
> + struct mipi_i3c_hci_pci_cell_data *data __free(kfree);
No, don't do that. Please read cleanup.h.
> + struct mfd_cell *cells __free(kfree);
> + int irq;
> + int ret;
> +
Best regards,
Krzysztof
--
linux-i3c mailing list
linux-i3c@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-i3c
next prev parent reply other threads:[~2025-12-10 6:02 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-09 11:50 [PATCH 0/7] i3c: mipi-i3c-hci-pci: Define Multi-Bus Instances for Intel controllers Adrian Hunter
2025-12-09 11:50 ` [PATCH 1/7] i3c: mipi-i3c-hci: Remove duplicate blank lines Adrian Hunter
2025-12-09 16:21 ` Frank Li
2025-12-09 11:50 ` [PATCH 2/7] i3c: mipi-i3c-hci: Stop reading Extended Capabilities if capability ID is 0 Adrian Hunter
2025-12-09 16:22 ` Frank Li
2025-12-09 11:51 ` [PATCH 3/7] i3c: mipi-i3c-hci: Quieten initialization messages Adrian Hunter
2025-12-09 16:25 ` Frank Li
2025-12-09 11:51 ` [PATCH 4/7] i3c: mipi-i3c-hci: Allow for Multi-Bus Instances Adrian Hunter
2025-12-09 11:51 ` [PATCH 5/7] i3c: mipi-i3c-hci-pci: Define default driver data Adrian Hunter
2025-12-09 16:36 ` Frank Li
2025-12-10 8:27 ` Adrian Hunter
2025-12-10 15:14 ` Frank Li
2025-12-09 11:51 ` [PATCH 6/7] i3c: mipi-i3c-hci-pci: Add support for Multi-Bus Instances Adrian Hunter
2025-12-09 17:10 ` Frank Li
2025-12-10 9:17 ` Adrian Hunter
2025-12-10 15:13 ` Frank Li
2025-12-10 6:01 ` Krzysztof Kozlowski [this message]
2025-12-09 11:51 ` [PATCH 7/7] i3c: mipi-i3c-hci-pci: Define Multi-Bus Instances for Intel controllers Adrian Hunter
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=686a8d29-ac3c-4ec6-8ed8-58e70972b9d2@kernel.org \
--to=krzk@kernel.org \
--cc=Frank.Li@nxp.com \
--cc=adrian.hunter@intel.com \
--cc=alexandre.belloni@bootlin.com \
--cc=linux-i3c@lists.infradead.org \
/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