Re: [RFC PATCH v1 13/38] coco: host: arm64: Create a PDEV with rmm

Bjorn Helgaas
2025-08-04T22:28:14Z

On Mon, Jul 28, 2025 at 07:21:50PM +0530, Aneesh Kumar K.V (Arm) wrote:
> Create the realm physical device with RMM.

> +++ b/drivers/virt/coco/arm-cca-host/arm-cca.c
> @@ -124,7 +124,15 @@ static int cca_tsm_connect(struct pci_dev *pdev)
> rc = tsm_ide_stream_register(pdev, ide);
> if (rc)
> goto err_tsm;
> -
> + /*
> + * Take a module reference so that we won't call unregister
> + * without rme_unasign_device

s/rme_unasign_device/rme_unassign/

> + */
> + if (!try_module_get(THIS_MODULE)) {
> + rc = -ENXIO;
> + goto err_tsm;
> + }
> + rme_asign_device(pdev);

s/rme_asign_device/rme_assign_device/