Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1657170
| From | Richard Cochran <richardcochran@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2 4/4] net: macb: Add hardware PTP support |
| Date | 2017-06-04 23:00 +0200 |
| Message-ID | <tOKMV-1G2-1@gated-at.bofh.it> (permalink) |
| References | <tNVKp-2l4-19@gated-at.bofh.it> <tNVKr-2l4-53@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Fri, Jun 02, 2017 at 03:28:10PM +0100, Rafal Ozieblo wrote:
> +int gem_get_hwtst(struct net_device *dev, struct ifreq *rq)
> +{
> + struct macb *bp = netdev_priv(dev);
> + struct hwtstamp_config *tstamp_config = &bp->tstamp_config;
> +
> + if ((bp->hw_dma_cap & HW_DMA_CAP_PTP) == 0)
> + return -EFAULT;
Segmentation fault? Really?
...
> +int gem_set_hwtst(struct net_device *dev, struct ifreq *ifr, int cmd)
> +{
> + struct macb *bp = netdev_priv(dev);
> + struct hwtstamp_config *tstamp_config = &bp->tstamp_config;
> + enum macb_bd_control tx_bd_control = TSTAMP_DISABLED;
> + enum macb_bd_control rx_bd_control = TSTAMP_DISABLED;
> + u32 regval;
> +
> + if ((bp->hw_dma_cap & HW_DMA_CAP_PTP) == 0)
> + return -EFAULT;
here again
Thanks,
Richard
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v2 4/4] net: macb: Add hardware PTP support Rafal Ozieblo <rafalo@cadence.com> - 2017-06-02 16:30 +0200
Re: [PATCH v2 4/4] net: macb: Add hardware PTP support Richard Cochran <richardcochran@gmail.com> - 2017-06-04 23:00 +0200
RE: [PATCH v2 4/4] net: macb: Add hardware PTP support Rafal Ozieblo <rafalo@cadence.com> - 2017-06-06 11:00 +0200
Re: [PATCH v2 4/4] net: macb: Add hardware PTP support Richard Cochran <richardcochran@gmail.com> - 2017-06-06 20:40 +0200
Re: [PATCH v2 4/4] net: macb: Add hardware PTP support Richard Cochran <richardcochran@gmail.com> - 2017-06-06 20:40 +0200
RE: [PATCH v2 4/4] net: macb: Add hardware PTP support Rafal Ozieblo <rafalo@cadence.com> - 2017-06-07 13:20 +0200
Re: [PATCH v2 4/4] net: macb: Add hardware PTP support Richard Cochran <richardcochran@gmail.com> - 2017-06-07 15:30 +0200
csiph-web