Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1568190

RE: [PATCH net-next v2] macb: Common code to enable ptp support for MACB/GEM

Path csiph.com!goblin2!goblin1!goblin.stu.neva.ru!peer03.fr7!futter-mich.highwinds-media.com!news.highwinds-media.com!fu-berlin.de!bofh.it!news.nic.it!robomod
From Rafal Ozieblo <rafalo@cadence.com>
Newsgroups linux.kernel
Subject RE: [PATCH net-next v2] macb: Common code to enable ptp support for MACB/GEM
Date Fri, 27 Jan 2017 12:30:05 +0100
Message-ID <t4cTb-3sv-87@gated-at.bofh.it> (permalink)
References <t1kDv-1WJ-5@gated-at.bofh.it> <t3U0a-xW-21@gated-at.bofh.it> <t47A5-cB-1@gated-at.bofh.it> <t4bX4-2Sv-11@gated-at.bofh.it> <t4bX4-2Sv-9@gated-at.bofh.it>
X-Original-To Nicolas Ferre <nicolas.ferre@atmel.com>, Harini Katakam <harinikatakamlinux@gmail.com>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=cadence.onmicrosoft.com; s=selector1-cadence-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=FxBkgPkB3SlyOCWb9+jlwV7Q7iOpu6mVyWEJf592O0Q=; b=lVqrIZmwy/xUH1QKfbPRPe5ddFe/NnDzIHRpJczPhVnZ7oC8rwHbhAsFRBERcMi8jXgmFYJLZsEIgUdM/oSzOd8Iw4+/LBxl2me26p0rPVeIqldxHPaHirfZan6hz5Omi6dZb22e1dNnqDOz0iMyjT6rcc6DPPpfzfbNvhldum4=
Thread-Topic [PATCH net-next v2] macb: Common code to enable ptp support for MACB/GEM
Thread-Index AQHSclQKXfAzgWEE2UmMHA7Xi22DFqFK56+AgAD0BICAAEYRwIAACYgAgAAJluA=
Accept-Language pl-PL, en-US
Content-Language en-US
Authentication-Results spf=none (sender IP is ) smtp.mailfrom=rafalo@cadence.com;
X-Originating-IP [213.131.238.28]
X-Ms-Office365-Filtering-Correlation-ID 3127d30d-7768-415b-3c9c-08d446a48e0f
X-Microsoft-Antispam UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:BN3PR07MB2515;
X-Microsoft-Exchange-Diagnostics 1;BN3PR07MB2515;7:iegRnQYsPkMck2hDeROAAPKsdmNqLVNP6WONiVumN8AqS8uR8rArE4I5Ty5rc3ZWZb21YhMwOMVMvkcqxAflMYZdK0lwNpuKDIjKZkOzgXfe/qa0AhTeWkwfnPVIk6rRm3XU4StTXPVDv7zUsfDDLEW4eJpKhQRCuOaohFzV3sRxqAmzzBiUiMO3FzDzQyuGba6lD3LuumaenDHuWEF4RbehsAlSCpQ2QAZRuAWuTwXIZA8d/9kdiUCRi49hNHXNmoUr5Ks6woIhd22FQjK7L9mjyqTOgEhjGuDpWRg+KzE9uSYOErk3Z3t4w2BK/MBjnzIjiSh00sRHQIXhoD7gCJpkRGTwQ5OK6waCkpW545UPAv4slH2VySUCYw4XKxRAPaqgzJ3v5MRnJHGD41+9bmv3BNeJ+jrqCdY1IGhhknOUbR6GPW4oBK7MsEAEMPxVmJ3ZuJ5L82nEwMBGdbYaZQ==;20:nVqDdFVOQx11O2gpI7poictzljEYjcT8NqZVIjA4bAfkVkJHLTAWuwbw6WI764uZJgrWPNX0XrN9f/IPpycLJ6Hz2EVKZUgKk2MVmByFKGiVVVpvsdbB4MbiIk08cAnvSBXJnaYdU95Ag35XtCmcWciBppFI65R8v79+m8U9Ww3NEy1qYON1m232o7xz0SsKZ+fxR+YHIt3tDGlspLjWfhmzBa+KhwOWHhYCYD09UFYvT1eMbS3uhs9MwvcOHXuV
X-Microsoft-Antispam-Prvs <BN3PR07MB251503FD5628B3FD8E3276B0C9760@BN3PR07MB2515.namprd07.prod.outlook.com>
X-Exchange-Antispam-Report-Test UriScan:(72806322054110);
X-Exchange-Antispam-Report-Cfa-Test BCL:0;PCL:0;RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6041248)(20161123564025)(20161123562025)(20161123555025)(20161123560025)(6072148);SRVR:BN3PR07MB2515;BCL:0;PCL:0;RULEID:;SRVR:BN3PR07MB2515;
X-Forefront-Prvs 0200DDA8BE
X-Forefront-Antispam-Report SFV:NSPM;SFS:(10009020)(6009001)(7916002)(39450400003)(36092001)(377454003)(189002)(199003)(24454002)(13464003)(54356999)(55016002)(54906002)(8656002)(99286003)(6436002)(50986999)(76176999)(122556002)(8666007)(39060400001)(25786008)(38730400001)(5660300001)(9686003)(229853002)(7696004)(3846002)(102836003)(6116002)(68736007)(101416001)(86362001)(92566002)(4326007)(6506006)(77096006)(2950100002)(2906002)(66066001)(3280700002)(74316002)(106116001)(2900100001)(106356001)(305945005)(53936002)(8676002)(105586002)(7416002)(7736002)(93886004)(189998001)(33656002)(81156014)(8936002)(3660700001)(81166006)(5001770100001)(97736004);DIR:OUT;SFP:1101;SCL:1;SRVR:BN3PR07MB2515;H:BN3PR07MB2516.namprd07.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en;
Received-Spf None (protection.outlook.com: cadence.com does not designate permitted sender hosts)
Spamdiagnosticoutput 1:99
Spamdiagnosticmetadata NSPM
Content-Type text/plain; charset="utf-8"
Content-Transfer-Encoding base64
MIME-Version 1.0
X-Originatororg cadence.com
X-Ms-Exchange-Crosstenant-Originalarrivaltime 27 Jan 2017 11:06:33.6525 (UTC)
X-Ms-Exchange-Crosstenant-Fromentityheader Hosted
X-Ms-Exchange-Crosstenant-ID d36035c5-6ce6-4662-a3dc-e762e61ae4c9
X-Ms-Exchange-Transport-Crosstenantheadersstamped BN3PR07MB2515
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 32
Organization linux.* mail to news gateway
X-Original-Cc Andrei Pistirica <andrei.pistirica@microchip.com>, "netdev@vger.kernel.org" <netdev@vger.kernel.org>, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, "linux-arm-kernel@lists.infradead.org" <linux-arm-kernel@lists.infradead.org>, "davem@davemloft.net" <davem@davemloft.net>, "harini.katakam@xilinx.com" <harini.katakam@xilinx.com>, "punnaia@xilinx.com" <punnaia@xilinx.com>, "michals@xilinx.com" <michals@xilinx.com>, "anirudh@xilinx.com" <anirudh@xilinx.com>, "boris.brezillon@free-electrons.com" <boris.brezillon@free-electrons.com>, "alexandre.belloni@free-electrons.com" <alexandre.belloni@free-electrons.com>, "tbultel@pixelsurmer.com" <tbultel@pixelsurmer.com>, "richardcochran@gmail.com" <richardcochran@gmail.com>
X-Original-Date Fri, 27 Jan 2017 11:06:33 +0000
X-Original-Message-ID <BN3PR07MB2516525EBCC11BE7E5AC3ADBC9760@BN3PR07MB2516.namprd07.prod.outlook.com>
X-Original-References <1484841375-11420-1-git-send-email-andrei.pistirica@microchip.com> <BN3PR07MB25160FCBCF19918C495F43B4C9770@BN3PR07MB2516.namprd07.prod.outlook.com> <CAFcVECLuWM65zXJWtMcwijZ1ZbtH0pvKnTUR=SJagPGHEr9amg@mail.gmail.com> <BN3PR07MB25163747E1520E4CE1C6164FC9760@BN3PR07MB2516.namprd07.prod.outlook.com> <779c1540-f4da-90ee-1fa1-c94339a892aa@atmel.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
X-Received-Bytes 8259
X-Received-Body-CRC 2310184561
Xref csiph.com linux.kernel:1568190

Show key headers only | View raw


>-----Original Message-----
>From: Nicolas Ferre [mailto:nicolas.ferre@atmel.com] 
>Sent: 27 stycznia 2017 11:28
>Subject: Re: [PATCH net-next v2] macb: Common code to enable ptp support for MACB/GEM
>
>Le 27/01/2017 à 11:26, Rafal Ozieblo a écrit :
>>> -----Original Message-----
>>> From: Harini Katakam [mailto:harinikatakamlinux@gmail.com] 
>>> Sent: 27 stycznia 2017 06:43
>>> Subject: Re: [PATCH net-next v2] macb: Common code to enable ptp support for MACB/GEM
>>>
>>> Hi Rafal,
>>>
>>> On Thu, Jan 26, 2017 at 8:45 PM, Rafal Ozieblo <rafalo@cadence.com> wrote:
>>>>> -----Original Message-----
>>>>> From: Andrei Pistirica [mailto:andrei.pistirica@microchip.com]
>>>>> Sent: 19 stycznia 2017 16:56
>>>>> Subject: [PATCH net-next v2] macb: Common code to enable ptp support for MACB/GEM
>>>>>
>>>>>
>>>>> +static inline bool gem_has_ptp(struct macb *bp)
>>>>> +{
>>>>> +     return !!(bp->caps & MACB_CAPS_GEM_HAS_PTP);
>>>>> +}
>>>> Why don't you use hardware capabilities here? Would it be better to read it from hardware instead adding it to many configuration?
>>>
>>> If you are referring to TSU bit in DCFG5, then we will be relying on
>>> Cadence IP's information irrespective of the SoC capability
>>> and whether the PTP support was adequate.
>>> I think the capability approach gives better control and
>>> it is not really much to add.
>>>
>>> Regards,
>>> Harini
>>>
>> Yes, I'm referring to TSU bit.
>> What if SoC contains multiple Cadence GEMs, some with PTP support and others without?
>
>Simply define different DT compatibility strings and we're good.

What with GEM on PCI ? There is no DT.

>> Relevant will be checking both, hardware capabilities and SoC capabilities from "caps" field.
>> 
>
>
>-- 
>Nicolas Ferre
>

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH net-next v2] macb: Common code to enable ptp support for MACB/GEM Andrei Pistirica <andrei.pistirica@microchip.com> - 2017-01-19 14:10 +0100
  Re: [PATCH net-next v2] macb: Common code to enable ptp support for  MACB/GEM Nicolas Ferre <nicolas.ferre@atmel.com> - 2017-01-19 17:20 +0100
    Re: [PATCH net-next v2] macb: Common code to enable ptp support for  MACB/GEM Nicolas Ferre <nicolas.ferre@atmel.com> - 2017-01-25 10:30 +0100
      Re: [PATCH net-next v2] macb: Common code to enable ptp support for MACB/GEM Harini Katakam <harinikatakamlinux@gmail.com> - 2017-01-25 10:40 +0100
  RE: [PATCH net-next v2] macb: Common code to enable ptp support for  MACB/GEM Rafal Ozieblo <rafalo@cadence.com> - 2017-01-26 16:20 +0100
    Re: [PATCH net-next v2] macb: Common code to enable ptp support for MACB/GEM Harini Katakam <harinikatakamlinux@gmail.com> - 2017-01-27 06:50 +0100
      Re: [PATCH net-next v2] macb: Common code to enable ptp support for  MACB/GEM Nicolas Ferre <nicolas.ferre@atmel.com> - 2017-01-27 11:20 +0100
      Re: [PATCH net-next v2] macb: Common code to enable ptp support for  MACB/GEM Nicolas Ferre <nicolas.ferre@atmel.com> - 2017-01-27 11:30 +0100
        RE: [PATCH net-next v2] macb: Common code to enable ptp support for  MACB/GEM Rafal Ozieblo <rafalo@cadence.com> - 2017-01-27 12:30 +0100
      RE: [PATCH net-next v2] macb: Common code to enable ptp support for  MACB/GEM Rafal Ozieblo <rafalo@cadence.com> - 2017-01-27 11:30 +0100

csiph-web