aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/microchip/encx24j600.c
Commit message (Collapse)AuthorAge
* net: encx24j600: Export missing SPI module alias informationJavier Martinez Canillas2015-11-02
| | | | | | | | | The driver Kconfig symbol is tristate which means that it can be built as a module but the module alias information is not added to the module info so module autoload won't work since user-space won't have the information. Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com> Signed-off-by: David S. Miller <davem@davemloft.net>
* net: encx24j600: Fix SPI id table definitionJavier Martinez Canillas2015-11-02
| | | | | | | | | | | | | | | | A driver's SPI id table is expected to be an array of struct spi_device_id that ends with a zero-initialized sentinel entry. But this driver defines the table as a single struct spi_device_id and sets .id_table to a pointer to this struct. But spi_match_id() has a loop that iterates while the struct spi_device_id .name[0] is not NULL, so not having a sentinel can cause a NULL pointer deference error. This patch defines the SPI id table correctly as all other SPI drivers do. Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com> Signed-off-by: David S. Miller <davem@davemloft.net>
* net: encx24j600: Fix mask to update LED configurationJon Ringle2015-10-25
| | | | | | | | | | This fixes the mask used to update the LED configuration so that it clears the necessary bits as well as setting the bits according to the mask. Also reverse the LED configuration to show the Link state + collisions in LEDA and the Link state + TX/RX events in LEDB. Signed-off-by: Jon Ringle <jringle@gridpoint.com> Signed-off-by: David S. Miller <davem@davemloft.net>
* net: Microchip encx24j600 driverJon Ringle2015-10-08
| | | | | | | | | | | | This ethernet driver supports the Micorchip enc424j600/626j600 Ethernet controller over a SPI bus interface. This driver makes use of the regmap API to optimize access to registers by caching registers where possible. Datasheet: http://ww1.microchip.com/downloads/en/DeviceDoc/39935b.pdf Signed-off-by: Jon Ringle <jringle@gridpoint.com> Signed-off-by: David S. Miller <davem@davemloft.net>
* Revert "net: Microchip encx24j600 driver"David S. Miller2015-10-06
| | | | This reverts commit 04fbfce7a222327b97ca165294ef19f0faa45960.
* Revert "net: encx24j600_exit() can be static"David S. Miller2015-10-06
| | | | This reverts commit 9886ce2b9d4e5a8bb3d78d0f7eff3c0f1ed58d67.
* net: encx24j600_exit() can be statickbuild test robot2015-10-05
| | | | | Signed-off-by: Fengguang Wu <fengguang.wu@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
* net: Microchip encx24j600 driverJon Ringle2015-10-05
This ethernet driver supports the Micorchip enc424j600/626j600 Ethernet controller over a SPI bus interface. This driver makes use of the regmap API to optimize access to registers by caching registers where possible. Datasheet: http://ww1.microchip.com/downloads/en/DeviceDoc/39935b.pdf Signed-off-by: Jon Ringle <jringle@gridpoint.com> Signed-off-by: David S. Miller <davem@davemloft.net>