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
File | Mode | Size |
---|---|---|
00-INDEX | -rw-r--r-- | 1.5 KB |
CREDITS | -rw-r--r-- | 1.9 KB |
HiSax.cert | -rw-r--r-- | 3.9 KB |
INTERFACE | -rw-r--r-- | 27.2 KB |
INTERFACE.CAPI | -rw-r--r-- | 14.1 KB |
INTERFACE.fax | -rw-r--r-- | 4.5 KB |
README | -rw-r--r-- | 28.6 KB |
README.FAQ | -rw-r--r-- | 721 bytes |
README.HiSax | -rw-r--r-- | 23.3 KB |
README.act2000 | -rw-r--r-- | 3.5 KB |
README.audio | -rw-r--r-- | 5.8 KB |
README.avmb1 | -rw-r--r-- | 5.5 KB |
README.concap | -rw-r--r-- | 10.5 KB |
README.diversion | -rw-r--r-- | 6.1 KB |
README.fax | -rw-r--r-- | 1.1 KB |
README.gigaset | -rw-r--r-- | 17.7 KB |
README.hfc-pci | -rw-r--r-- | 1.8 KB |
README.hysdn | -rw-r--r-- | 7.8 KB |
README.icn | -rw-r--r-- | 5.0 KB |
README.mISDN | -rw-r--r-- | 328 bytes |
README.pcbit | -rw-r--r-- | 1.6 KB |
README.sc | -rw-r--r-- | 11.9 KB |
README.syncppp | -rw-r--r-- | 2.1 KB |
README.x25 | -rw-r--r-- | 7.1 KB |
syncPPP.FAQ | -rw-r--r-- | 7.9 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...