Mon, May 27, 2019 at 08:14:32PM CEST, f.faine...@gmail.com wrote: > > >On 5/23/2019 2:45 AM, Jiri Pirko wrote: >> From: Jiri Pirko <j...@mellanox.com> >> >> When user is flashing device using devlink, he currenly does not see any >> information about what is going on, percentages, etc. >> Drivers, for example mlxsw and mlx5, have notion about the progress >> and what is happening. This patchset exposes this progress >> information to userspace. >> >> See this console recording which shows flashing FW on a Mellanox >> Spectrum device: >> https://asciinema.org/a/247926 > >It would be great to explain why you went that route instead of >implementing a MTD device (like what sfc) which would have presumably >allowed you to more or less the same thing using a standard device >driver model that is establish with flash devices.
This patch is not adding flash functionality. It only adds the visibility into already implemented flash process. Also, re MTD, let me refer you to the discussion 2 years ago: Subject: Re: [patch net-next 0/9] mlxsw: Support firmware flash From: Yotam Gigi <yot...@mellanox.com> Message-ID: <0daa5c5a-377c-767f-ea19-26c1f22bd...@mellanox.com> Date: Sun, 28 May 2017 10:26:49 +0300