con 4> =return call_event_proc('SetSDPwrPort',0)
I put this in the boot () function before installing the patches.
Tried the same thing on my M10, and that finally gets me UHS speed. Boot time seems same or faster. Note that this is not possible on all cameras: the sx280 version of SetSDPwrPort uses I2C and needs a running OS.
On the sx280, I switched off SD power for 10ms in Startup task (where the disabled diskboot call is). It worked, but card speed remained below 21MB/s. On this camera, startup times increased significantly when I left the SD powered off.
But I'm not sure about this solution: SD power is switched off but the card still can get power via data lines...
Yes, that's a concern, the SD spec specifically mentions that "DAT, CMD, and CLK should be disconnected or driven
to logical 0 by the host" when the card is powered down.
Perhaps there's a more proper version of SD power control somewhere that also drives the above mentioned pins to a low state?