0212-vchiq_arm-Service-callbacks-must-not-fail.patch 1013 B

1234567891011121314151617181920212223242526
  1. From 9f0245f4c5b19e0708891143438d93b876e48aca Mon Sep 17 00:00:00 2001
  2. From: Phil Elwell <phil@raspberrypi.org>
  3. Date: Wed, 23 Mar 2016 20:53:47 +0000
  4. Subject: [PATCH] vchiq_arm: Service callbacks must not fail
  5. Service callbacks are not allowed to return an error. The internal callback
  6. that delivers events and messages to user tasks does not enqueue them if
  7. the service is closing, but this is not an error and should not be
  8. reported as such.
  9. Signed-off-by: Phil Elwell <phil@raspberrypi.org>
  10. ---
  11. drivers/misc/vc04_services/interface/vchiq_arm/vchiq_arm.c | 2 +-
  12. 1 file changed, 1 insertion(+), 1 deletion(-)
  13. --- a/drivers/misc/vc04_services/interface/vchiq_arm/vchiq_arm.c
  14. +++ b/drivers/misc/vc04_services/interface/vchiq_arm/vchiq_arm.c
  15. @@ -224,7 +224,7 @@ add_completion(VCHIQ_INSTANCE_T instance
  16. } else if (instance->closing) {
  17. vchiq_log_info(vchiq_arm_log_level,
  18. "service_callback closing");
  19. - return VCHIQ_ERROR;
  20. + return VCHIQ_SUCCESS;
  21. }
  22. DEBUG_TRACE(SERVICE_CALLBACK_LINE);
  23. }