Re: [RFC PATCH 1/4] espi: add core bus framework
Uwe Kleine-König <[email protected]>
| Newsgroups | org.ozlabs.lists.linux-aspeed,dev.linux.lists.chrome-platform,org.kernel.vger.linux-doc,org.kernel.vger.linux-kernel,org.kernel.vger.linux-spi,org.ozlabs.lists.openbmc |
|---|---|
| Message-ID | <anye28kId4k8pxBv@monoceros> |
Hello,
On Wed, Aug 12, 2026 at 06:20:29PM +0530, M, Krishnamoorthi wrote:
> On 8/6/2026 7:01 PM, Uwe Kleine-König wrote:
> > On Tue, Aug 04, 2026 at 05:22:56PM +0530, Krishnamoorthi M wrote:
> > > [...]
> > > +const struct bus_type espi_bus_type = {
> > > + .name = "espi",
> > > + .match = espi_bus_match,
> > > + .uevent = espi_bus_uevent,
> > > + .probe = espi_bus_probe,
> > > + .remove = espi_bus_remove,
> > > +};
> > > +EXPORT_SYMBOL_GPL(espi_bus_type);
> >
> > Do you really need this exported?
>
> Yes, it is required. Controller and slave drivers built as modules reference
> espi_bus_type directly when registering devices. Without the export they
> fail to link.
I would have expected that
drv->driver.bus = &espi_bus_type;
in __espi_register_driver() is enough for drivers to not have to use
that symbol directly?
Best regards
Uwe
signature.asc
(application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEP4GsaTp6HlmJrf7Tj4D7WH0S/k4FAmp8n4YACgkQj4D7WH0S /k4Ymwf+OtbJNAPe3Ou/27KwbxJa7KENRUomWmPpgocqBVTa4ITzi7yNWHl4gAqS n5Xc9dI8tHJ49x6eepGWEp56WN4iknHSvv4VfsYY1q3IiP0BA7wHPGNtXoWIHOAa 4o7paa8rCqvUEEnsWHx6t7NgF4d9H3ByZLukSoHjbEaMGXR8k4sAoIZl6OP1zHLL sDcIp43PhG5JIYLJA+zNDa/GcsWt7GAOI61w0iEk642G+3Sp4LU4Aeml8sLnCZwv z5mEpWndwlZQ5q6u+eQBlADmahJtNTb4U9cwNydL7sdyQFKIWhpQEIlpaBbpzcKH rwtLLuNJ9v2D8mdQKMK2Yod5Qp7vCg== =HyN7 -----END PGP SIGNATURE-----