tlbmc: Power cycle the tray through the PSU hard reset target

The root chassis `PowerCycle` reset asserted the hot-swap pin directly. That
cuts tray power without starting `gbmc-psu-hardreset.target`, so the units
hooked onto that target (clock save, eMMC log stop, firmware update hooks)
never run.

tlBMC now starts `gbmc-psu-hardreset.target` and leaves the hot-swap pin to
the platform unit on that target:
- `PowerControlCollector::TriggerRootPowerCycle()` runs the pre-power-cycle
  callbacks and starts the target. The route calls it instead of running the
  callbacks and writing the pin itself.
- tlBMC keeps the output lines it requests, which would stop the platform
  unit from driving the pin. The pin named by `hotswap_pin_name` is therefore
  dropped from the GPIO configs, with a warning, before the GPIO collector is
  created. A platform config that still lists the pin keeps working.
- `hotswap_pin_name` is deprecated and has no other effect. It can become a
  reserved field once no platform config sets it: config parsing is strict,
  and a file that sets an unknown field is replaced by the default config.

Boot time checkpoints are recorded as before, ahead of the power cycle
request, which now means before the target's hooks run. `TrayPowerCycle` is
recorded before the pre-power-cycle callbacks instead of after them.

`Store::GetHotswapGpioName()` has no caller left in the routes. Removing it
together with the field is left for a follow-up.

Tested: `power_control_collector_test`, `chassis_test`, `store_impl_test` and
the platform end-to-end test pass. Not tested on hardware.
PiperOrigin-RevId: 1029657076
Change-Id: Ifd01acf60bf5941e5e9f395330adcaeb28859494
1 file changed
tree: 7270e84f02ec2fc421af9fb474a6b9c31a7e5b02
  1. linux/
  2. .gitmodules