Re: [PATCH v4 3/3] soc: aspeed: lpc-pcc: Add PCC controller support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2025-03-14 at 19:21 +0800, Kevin Chen wrote:
> +       pcc->mdev.parent = dev;
> +       pcc->mdev.minor = MISC_DYNAMIC_MINOR;
> +       pcc->mdev.name = devm_kasprintf(dev, GFP_KERNEL, "%s%d",
> DEVICE_NAME,
> +                                       pcc->mdev_id);
> +       pcc->mdev.fops = &pcc_fops;
> +       rc = misc_register(&pcc->mdev);
> +       if (rc) {
> +               dev_err(dev, "Couldn't register misc device\n");
> +               goto err_free_ida;
> +       }

Just a note that this still isn't accounting for discussion on the
previous posting of the series putting the driver under
drivers/soc/aspeed:

https://lore.kernel.org/all/f7369d6205e05c7aac3f3de7cbd08c3b08960d75.camel@xxxxxxxxxxxxxxxxxxxx/

If we're not going to try make a common userspace behaviour over the
Aspeed snoop and PCC functions and the Nuvoton BPC function then I
think the behaviour of the chardev should at least be documented. But I
would rather that it were common to avoid headaches in userspace.

Andrew




[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux