1. 25 Mar, 2014 1 commit
  2. 24 Mar, 2014 18 commits
  3. 22 Mar, 2014 17 commits
  4. 21 Mar, 2014 4 commits
    • David S. Miller's avatar
      Merge branch 'ptp-next' · 65025079
      David S. Miller authored
      Richard Cochran says:
      
      ====================
      ptp: dynamic pin control
      
      This patch series introduces a way of changing the auxiliary PTP
      Hardware Clock functions (periodic output signals and time stamping
      external signals) at run time. In the past on the netdev list, we have
      discussed other ways to handle this, such as module parameters and
      ethtool. This series implements a new PHC ioctl because that is the
      most natural way. Users already activate the auxiliary functions via
      the ioctls. The sysfs interface has also been expanded so that the pin
      configuration can be programmed using shell scripts.
      
      The first patch adds the new ioctls. The PHC subsystem does most of
      the work of maintaining the function-to-pin mapping. Drivers will only
      need to allocate and initialize a pin configuration table and also
      provide a new method that validates a particular assignment.
      
      Patches 5 and 6 just clean up a couple of issues in the phyter driver,
      and the remaining patches actually hook the phyter's pins into the new
      system.
      
      * ChangeLog
      ** V3
         - simplify locking in the set pin logic
      ** V2
         - fix bug in sysfs code on init error path
         - rename ptp_setpin() to ptp_set_pinfunc()
         - rename .setpin() to .verify() in the driver interface
         - simplify ptp_find_pin() logic
         - use correct test when checking whether the pin with the
           calibration function is being reprogrammed
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      65025079
    • Richard Cochran's avatar
      dp83640: let the periodic pin from the module parameter be a default. · 621bdecc
      Richard Cochran authored
      This patch changes the driver use the new pin configuration method when
      programming the periodic output signal.
      Signed-off-by: default avatarRichard Cochran <richardcochran@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      621bdecc
    • Richard Cochran's avatar
      dp83640: let external input pins from the module parameters be defaults. · faa89716
      Richard Cochran authored
      This patch changes the driver to use the new pin configuration method when
      programming the external time stamp input signals.
      Signed-off-by: default avatarRichard Cochran <richardcochran@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      faa89716
    • Richard Cochran's avatar
      dp83640: implement programmable pin functions. · 86dd3612
      Richard Cochran authored
      This patch adapts the dp83640 driver to allow reconfiguration of which
      auxiliary function goes on which pin. The functions may be reassigned
      freely with the one exception of the calibration function.
      Signed-off-by: default avatarRichard Cochran <richardcochran@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      86dd3612