[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <56D769F0.9070901@boundarydevices.com>
Date: Wed, 2 Mar 2016 15:32:16 -0700
From: Troy Kisky <troy.kisky@...ndarydevices.com>
To: Zhi Li <lznuaa@...il.com>
Cc: Fugang Duan <fugang.duan@....com>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"davem@...emloft.net" <davem@...emloft.net>,
"b38611@...escale.com" <b38611@...escale.com>,
"fabio.estevam@...escale.com" <fabio.estevam@...escale.com>,
"l.stach@...gutronix.de" <l.stach@...gutronix.de>,
"andrew@...n.ch" <andrew@...n.ch>,
"tremyfr@...il.com" <tremyfr@...il.com>,
"linux@....linux.org.uk" <linux@....linux.org.uk>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>,
"laci@...ndarydevices.com" <laci@...ndarydevices.com>,
"shawnguo@...nel.org" <shawnguo@...nel.org>,
"johannes@...solutions.net" <johannes@...solutions.net>,
"stillcompiling@...il.com" <stillcompiling@...il.com>,
"sergei.shtylyov@...entembedded.com"
<sergei.shtylyov@...entembedded.com>,
"arnd@...db.de" <arnd@...db.de>
Subject: Re: [PATCH net-next V2 04/16] net: fec: reduce interrupts
On 3/2/2016 9:47 AM, Zhi Li wrote:
> On Wed, Mar 2, 2016 at 10:12 AM, Troy Kisky
> <troy.kisky@...ndarydevices.com> wrote:
>> On 3/2/2016 8:13 AM, Fugang Duan wrote:
>>> From: Troy Kisky <troy.kisky@...ndarydevices.com> Sent: Thursday, February 25, 2016 8:37 AM
>>>>
>>>> - if (fep->ptp_clock)
>>>> + if ((int_events & FEC_ENET_TS_TIMER) && fep->ptp_clock)
>>>> fec_ptp_check_pps_event(fep);
>>>> -
>>> This is error in here. FEC compare timer event is not TS timer.
>>>
>>>
>>
>>
>> So when should fec_ptp_check_pps_event be called ? On every interrupt ?
>
> Compare event is not showed in EIR register. Need check TCSR, please
> see below code.
>
> uint fec_ptp_check_pps_event(struct fec_enet_private *fep)
> {
> xx
> val = readl(fep->hwp + FEC_TCSR(channel));
> if (val & FEC_T_TF_MASK) {
> }
So, should FEC_ENET_TS_TIMER be removed from FEC_DEFAULT_IMASK, since
the interrupt routine never checks it ?
Powered by blists - more mailing lists