dbus-sensors: gpiosensor service: Add dbus retries

When the gpiosensor service starts, it makes a dbus call to get all the
dbus objects managed by Entity Manager. This dbus call sometimes fails,
and as a result, the gpiosensor service doesn't create dbus objects for
any GPIOs.

This commit updates the gpiosensor service to add dbus retries, if
needed.

Tested:
Ran the misseated_connection test 1000 times. Failure rate 1%.
http://sponge2/cb9b071d-3adb-42a4-8f54-3da18ff8d3d7

https://fusion2.corp.google.com/7e37c674-f1fd-3237-b8c0-d7d5f0ef9a28
https://fusion2.corp.google.com/89047ff5-446a-3525-8b42-e991e8dc7619
https://fusion2.corp.google.com/84d2983a-a18b-3de8-a616-84c1dc39b625
https://fusion2.corp.google.com/80a23722-ec58-33d2-bd5b-de685ce093f6
https://fusion2.corp.google.com/3e4c4b89-b96c-3a71-8e32-9a20a39eb809

Google-Bug-Id: 422474823
Platforms-Affected: All
Change-Id: I55abf9299ebe67d24ff2ce7bf85206a3f724f566
Signed-off-by: John Wedig <johnwedig@google.com>
(cherry picked from commit 029a4995388f1a7a5dfdf38fb3ca54ce7e0ec1dd)
2 files changed
tree: 81b05482e488a70a514213886f0436073cb00bde
  1. classes/
  2. conf/
  3. dynamic-layers/
  4. recipes-bsp/
  5. recipes-connectivity/
  6. recipes-core/
  7. recipes-devtools/
  8. recipes-extended/
  9. recipes-google/
  10. recipes-kernel/
  11. recipes-phosphor/
  12. recipes-support/
  13. recipes-tpm1/
  14. recipes-tpm2/
  15. LICENSE
  16. README.md
README.md

meta-gbmc-staging

This repository contains additions to the openbmc/meta-google layer that are not yet ready for OpenBMC inclusion.

How to use this layer

  1. Clone openbmc/openbmc from GitHub.
  2. Clone this layer from GitHub into a subdirectory of openbmc.