[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <BN3PR07MB251673623B941CAF5DEAB474C9CB0@BN3PR07MB2516.namprd07.prod.outlook.com>
Date: Tue, 6 Jun 2017 08:54:50 +0000
From: Rafal Ozieblo <rafalo@...ence.com>
To: Richard Cochran <richardcochran@...il.com>
CC: David Miller <davem@...emloft.net>,
"nicolas.ferre@...el.com" <nicolas.ferre@...el.com>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>,
"harini.katakam@...inx.com" <harini.katakam@...inx.com>,
"andrei.pistirica@...rochip.com" <andrei.pistirica@...rochip.com>
Subject: RE: [PATCH v2 4/4] net: macb: Add hardware PTP support
> From: Richard Cochran [mailto:richardcochran@...il.com]
> Sent: 4 czerwca 2017 22:55
> To: Rafal Ozieblo <rafalo@...ence.com>
> Cc: David Miller <davem@...emloft.net>; nicolas.ferre@...el.com;
> netdev@...r.kernel.org; linux-kernel@...r.kernel.org;
> devicetree@...r.kernel.org; linux-arm-kernel@...ts.infradead.org;
> harini.katakam@...inx.com; andrei.pistirica@...rochip.com
> Subject: Re: [PATCH v2 4/4] net: macb: Add hardware PTP support
>
> 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
Would "ENOTSUP" be sufficient ?
>
> Thanks,
> Richard
Regards,
Rafal
Powered by blists - more mailing lists