kernel-fxtec-pro1x/drivers/net/ethernet/dlink
Jeff Mahoney 1bb57e940e dl2k: Clean up rio_ioctl
The dl2k driver's rio_ioctl call has a few issues:
- No permissions checking
- Implements SIOCGMIIREG and SIOCGMIIREG using the SIOCDEVPRIVATE numbers
- Has a few ioctls that may have been used for debugging at one point
  but have no place in the kernel proper.

This patch removes all but the MII ioctls, renumbers them to use the
standard ones, and adds the proper permission check for SIOCSMIIREG.

We can also get rid of the dl2k-specific struct mii_data in favor of
the generic struct mii_ioctl_data.

Since we have the phyid on hand, we can add the SIOCGMIIPHY ioctl too.

Most of the MII code for the driver could probably be converted to use
the generic MII library but I don't have a device to test the results.

Reported-by: Stephan Mueller <stephan.mueller@atsec.com>
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-04-26 05:36:39 -04:00
..
de600.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
de600.h de6*/dl2k/sundance: Move the D-Link drivers 2011-08-11 16:29:50 -07:00
de620.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
de620.h de6*/dl2k/sundance: Move the D-Link drivers 2011-08-11 16:29:50 -07:00
dl2k.c dl2k: Clean up rio_ioctl 2012-04-26 05:36:39 -04:00
dl2k.h dl2k: Clean up rio_ioctl 2012-04-26 05:36:39 -04:00
Kconfig MII: fix Kconfig dependencies for MII 2011-09-15 15:49:08 -04:00
Makefile de6*/dl2k/sundance: Move the D-Link drivers 2011-08-11 16:29:50 -07:00
sundance.c ethernet: unify return value of .ndo_set_mac_address if address is invalid 2012-02-23 17:03:20 -05:00