All of lore.kernel.org
 help / color / mirror / Atom feed
* Implementation of fwnode_operations :: device_get_match_data() for software nodes?
@ 2023-02-23 20:37 Vladimir Oltean
  2023-02-27 12:18 ` Heikki Krogerus
  2023-02-27 22:26 ` Andy Shevchenko
  0 siblings, 2 replies; 17+ messages in thread
From: Vladimir Oltean @ 2023-02-23 20:37 UTC (permalink / raw)
  To: Andy Shevchenko, Daniel Scally, Heikki Krogerus, Sakari Ailus,
	Greg Kroah-Hartman, Rafael J. Wysocki, linux-acpi, linux-kernel

Hi,

I have a need to instantiate a driver written for OF which calls
device_get_match_data(dev) to get various information based on the
compatible string.

I am creating a software node based on the following properties:

	struct property_entry props[2] = {
		PROPERTY_ENTRY_STRING("compatible", compatible),
		{},
	};

(I see I'm not the only one doing this, some drivers/platform/x86/x86-android-tablets.c
and drivers/platform/chrome/chromeos_laptop.c also do it)

and the driver in question does begin to probe, but its match_data is
NULL, because the operation from the title isn't implemented for
software nodes. So probing ultimately fails.

Is there some sort or reason why this doesn't exist, other than a lack
of need?

Can someone please help me with an implementation of this feature?

Thanks,
Vladimir

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2024-03-25 15:57 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-23 20:37 Implementation of fwnode_operations :: device_get_match_data() for software nodes? Vladimir Oltean
2023-02-27 12:18 ` Heikki Krogerus
2023-02-27 23:07   ` Vladimir Oltean
2023-02-27 22:26 ` Andy Shevchenko
2023-02-27 23:44   ` Vladimir Oltean
2023-03-01 14:33     ` Andy Shevchenko
2023-03-01 14:36       ` Vladimir Oltean
2023-03-01 15:09         ` Andy Shevchenko
2023-03-01 15:25           ` Vladimir Oltean
2023-03-01 15:34             ` Andy Shevchenko
2023-03-01 17:18               ` Vladimir Oltean
2023-03-01 17:33                 ` Andy Shevchenko
2023-03-01 17:43                   ` Vladimir Oltean
2024-03-25 13:41                     ` Andy Shevchenko
2024-03-25 15:16                       ` Herve Codina
2024-03-25 15:39                         ` Andy Shevchenko
2024-03-25 15:57                           ` Herve Codina

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.