ptp: ocp: remove flash image header check fallback
authorVadim Fedorenko <vadfed@fb.com>
Thu, 20 Oct 2022 23:24:33 +0000 (02:24 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Oct 2022 12:10:40 +0000 (13:10 +0100)
commitc1fd463d571a155bf43e04fd23d02aef364c5b0b
treec3b5a9855ad4c8405aec2e39f08f65bbe3026dc5
parentee6439aaad3245851bbbcbf6c7534c9a29407ab2
ptp: ocp: remove flash image header check fallback

Previously there was a fallback mode to flash firmware image without
proper header. But now we have different supported vendors and flashing
wrong image could destroy the hardware. Remove fallback mode and force
header check. Both vendors have published firmware images with headers.

Acked-by: Jonathan Lemon <jonathan.lemon@gmail.com>
Signed-off-by: Vadim Fedorenko <vadfed@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/ptp/ptp_ocp.c