Revision 810198bc9c109489dfadc57131c5183ce6ad2d7d authored by Rajashekhara, Sudhakar on 12 July 2011, 10:28:53 UTC, committed by Sekhar Nori on 07 September 2011, 08:53:01 UTC
DA850/OMAP-L138 EMAC driver uses random mac address instead of
a fixed one because the mac address is not stuffed into EMAC
platform data.

This patch provides a function which reads the mac address
stored in SPI flash (registered as MTD device) and populates the
EMAC platform data. The function which reads the mac address is
registered as a callback which gets called upon addition of MTD
device.

NOTE: In case the MAC address stored in SPI flash is erased, follow
the instructions at [1] to restore it.

[1] http://processors.wiki.ti.com/index.php/GSG:_OMAP-L138_DVEVM_Additional_Procedures#Restoring_MAC_address_on_SPI_Flash

Modifications in v2:
Guarded registering the mtd_notifier only when MTD is enabled.
Earlier this was handled using mtd_has_partitions() call, but
this has been removed in Linux v3.0.

Modifications in v3:
a. Guarded da850_evm_m25p80_notify_add() function and
   da850evm_spi_notifier structure with CONFIG_MTD macros.
b. Renamed da850_evm_register_mtd_user() function to
   da850_evm_setup_mac_addr() and removed the struct mtd_notifier
   argument to this function.
c. Passed the da850evm_spi_notifier structure to register_mtd_user()
   function.

Modifications in v4:
Moved the da850_evm_setup_mac_addr() function within the first
CONFIG_MTD ifdef construct.

Signed-off-by: Rajashekhara, Sudhakar <sudhakar.raj@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Cc: stable@kernel.org
1 parent ddf2835
History
File Mode Size
bttv
cx2341x
cx88
.gitignore -rw-r--r-- 8 bytes
API.html -rw-r--r-- 733 bytes
CARDLIST.au0828 -rw-r--r-- 527 bytes
CARDLIST.bttv -rw-r--r-- 8.9 KB
CARDLIST.cx23885 -rw-r--r-- 2.3 KB
CARDLIST.cx88 -rw-r--r-- 6.1 KB
CARDLIST.em28xx -rw-r--r-- 5.4 KB
CARDLIST.ivtv -rw-r--r-- 1.1 KB
CARDLIST.saa7134 -rw-r--r-- 10.7 KB
CARDLIST.saa7164 -rw-r--r-- 501 bytes
CARDLIST.tuner -rw-r--r-- 3.1 KB
CARDLIST.usbvision -rw-r--r-- 5.0 KB
CQcam.txt -rw-r--r-- 6.9 KB
README.cpia2 -rw-r--r-- 5.6 KB
README.cx88 -rw-r--r-- 2.1 KB
README.davinci-vpbe -rw-r--r-- 3.9 KB
README.ir -rw-r--r-- 2.3 KB
README.ivtv -rw-r--r-- 6.1 KB
README.pvrusb2 -rw-r--r-- 9.6 KB
README.saa7134 -rw-r--r-- 1.9 KB
README.tlg2300 -rw-r--r-- 1.1 KB
Zoran -rw-r--r-- 19.8 KB
cafe_ccic -rw-r--r-- 2.4 KB
cpia2_overview.txt -rw-r--r-- 2.3 KB
cx18.txt -rw-r--r-- 811 bytes
et61x251.txt -rw-r--r-- 11.1 KB
extract_xc3028.pl -rw-r--r-- 44.6 KB
gspca.txt -rw-r--r-- 15.6 KB
hauppauge-wintv-cx88-ir.txt -rw-r--r-- 1.9 KB
ibmcam.txt -rw-r--r-- 13.5 KB
lifeview.txt -rw-r--r-- 1.5 KB
m5602.txt -rw-r--r-- 549 bytes
meye.txt -rw-r--r-- 4.3 KB
not-in-cx2388x-datasheet.txt -rw-r--r-- 953 bytes
omap3isp.txt -rw-r--r-- 10.0 KB
ov511.txt -rw-r--r-- 10.7 KB
pxa_camera.txt -rw-r--r-- 8.7 KB
radiotrack.txt -rw-r--r-- 5.7 KB
se401.txt -rw-r--r-- 1.5 KB
sh_mobile_ceu_camera.txt -rw-r--r-- 3.7 KB
si470x.txt -rw-r--r-- 4.6 KB
si4713.txt -rw-r--r-- 6.5 KB
sn9c102.txt -rw-r--r-- 22.2 KB
soc-camera.txt -rw-r--r-- 6.9 KB
stv680.txt -rw-r--r-- 1.6 KB
uvcvideo.txt -rw-r--r-- 8.4 KB
v4l2-controls.txt -rw-r--r-- 25.6 KB
v4l2-framework.txt -rw-r--r-- 36.3 KB
videobuf -rw-r--r-- 16.1 KB
w9966.txt -rw-r--r-- 1.3 KB
w9968cf.txt -rw-r--r-- 17.6 KB
zc0301.txt -rw-r--r-- 8.4 KB
zr364xx.txt -rw-r--r-- 3.4 KB

README.cpia2

back to top