]> git.baikalelectronics.ru Git - kernel.git/commit
net/ethtool: Add support for the ethtool feature to flash firmware image from a speci...
authorAjit Khaparde <ajitk@serverengines.com>
Wed, 2 Sep 2009 17:02:55 +0000 (17:02 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Sep 2009 06:07:39 +0000 (23:07 -0700)
commit8900849b7048d402df6152c15be6d781041e150f
treeff76707c7433b2931a66d209d09e01325fc75274
parenta82f92197d659f27da26102a87735aa259604733
net/ethtool: Add support for the ethtool feature to flash firmware image from a specified file.

This patch adds support to flash a firmware image to a device using ethtool.
The driver gets the filename of the firmware image and flashes the image
using the request firmware path.

The region "on the chip" to be flashed can be specified by an option.
It is upto the device driver to enumerate the region number passed by ethtool,
to the region to be flashed.

The default behavior is to flash all the regions on the chip.

Signed-off-by: Ajit Khaparde <ajitk@serverengines.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/ethtool.h
net/core/ethtool.c