* [PATCH] efi: declare prototype for close_protocol BootService
@ 2021-01-29 13:58 Ahmad Fatoum
2021-02-01 8:43 ` Sascha Hauer
0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2021-01-29 13:58 UTC (permalink / raw)
To: barebox; +Cc: Ahmad Fatoum
Sometimes, drivers need to probe whether the EFI device in front of them
is the actual hardware they expect. If it's not, the driver should call
close_protocol to leave the decision on whether to match this device to
another driver. Use the correct type for close_protocol to facilitate
this.
No functional change, as no in-tree driver makes use of this yet.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
include/efi.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/include/efi.h b/include/efi.h
index 43c05939513d..f6833fde1e75 100644
--- a/include/efi.h
+++ b/include/efi.h
@@ -256,7 +256,8 @@ typedef struct {
efi_status_t (EFIAPI *open_protocol)(efi_handle_t handle, efi_guid_t *protocol,
void ** interface, efi_handle_t agent_handle,
efi_handle_t controller_handle, u32 attributes);
- void *close_protocol;
+ efi_status_t (EFIAPI *close_protocol)(efi_handle_t handle, efi_guid_t *protocol,
+ efi_handle_t agent, efi_handle_t controller);
efi_status_t(EFIAPI *open_protocol_information)(efi_handle_t handle, efi_guid_t *Protocol,
struct efi_open_protocol_information_entry **entry_buffer,
unsigned long *entry_count);
--
2.30.0
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] efi: declare prototype for close_protocol BootService
2021-01-29 13:58 [PATCH] efi: declare prototype for close_protocol BootService Ahmad Fatoum
@ 2021-02-01 8:43 ` Sascha Hauer
0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2021-02-01 8:43 UTC (permalink / raw)
To: Ahmad Fatoum; +Cc: barebox
On Fri, Jan 29, 2021 at 02:58:33PM +0100, Ahmad Fatoum wrote:
> Sometimes, drivers need to probe whether the EFI device in front of them
> is the actual hardware they expect. If it's not, the driver should call
> close_protocol to leave the decision on whether to match this device to
> another driver. Use the correct type for close_protocol to facilitate
> this.
>
> No functional change, as no in-tree driver makes use of this yet.
>
> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
> ---
> include/efi.h | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
Applied, thanks
Sascha
>
> diff --git a/include/efi.h b/include/efi.h
> index 43c05939513d..f6833fde1e75 100644
> --- a/include/efi.h
> +++ b/include/efi.h
> @@ -256,7 +256,8 @@ typedef struct {
> efi_status_t (EFIAPI *open_protocol)(efi_handle_t handle, efi_guid_t *protocol,
> void ** interface, efi_handle_t agent_handle,
> efi_handle_t controller_handle, u32 attributes);
> - void *close_protocol;
> + efi_status_t (EFIAPI *close_protocol)(efi_handle_t handle, efi_guid_t *protocol,
> + efi_handle_t agent, efi_handle_t controller);
> efi_status_t(EFIAPI *open_protocol_information)(efi_handle_t handle, efi_guid_t *Protocol,
> struct efi_open_protocol_information_entry **entry_buffer,
> unsigned long *entry_count);
> --
> 2.30.0
>
>
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
>
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-02-01 8:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-29 13:58 [PATCH] efi: declare prototype for close_protocol BootService Ahmad Fatoum
2021-02-01 8:43 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox