Commit Graph

7 Commits

Author SHA1 Message Date
Richard Hughes
2dea742004 Match the MEI UUID in quirk files
This allows us to be more specific when matching devices, and also means we get
more attributes 'for free' from the FuUdevDevice->probe().

This would allow us to have multiple device GTypes handling multiple MEI
interfaces in the same plugin., for instance, PTHI and MKHI.

The slight fly in the ointment is that the kernel does not set the 'dev' for
the mei_me devices, but it's always going to be just /dev/mei0, so hardcode it.
2022-10-12 13:17:42 +01:00
Richard Hughes
366e3a5668 trivial: Define the HECI GUIDs in a central place 2022-10-11 16:17:20 +01:00
Richard Hughes
14e7e1b587 Use EFI-style GUIDs when connecting the MEI interface
This means the GUID matches what the kernel exports in sysfs.
2022-10-11 16:17:20 +01:00
Richard Hughes
1251cb3376 amt: Connect to the interface during ->open() 2022-07-20 20:11:32 +01:00
Richard Hughes
dcaa8f85f2 amt: Fix trivial -Wunused-variable issue 2022-07-11 09:51:41 +01:00
Richard Hughes
ced79fce4a Create the better device GType in the backend
It is weird to do this when constructing the object, and it allows us
to match PossiblePlugin quirk matches on potentially better instance
IDs added by the superclass.
2022-06-30 19:06:38 +01:00
Richard Hughes
5e899535d4 amt: Modernize the plugin and split out common functionality
The MEI code is soon going to be used by a new plugin, so split it
out into libfwupdplugin like we did i2c.
2022-06-21 08:10:04 +01:00