[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <e42564ad-5352-4c00-bafb-e60b47a218d7@oss.nxp.com>
Date: Mon, 19 Jun 2023 11:36:24 +0300
From: "Radu Pirea (OSS)" <radu-nicolae.pirea@....nxp.com>
To: Horatiu Vultur <horatiu.vultur@...rochip.com>
Cc: andrew@...n.ch, hkallweit1@...il.com, linux@...linux.org.uk,
davem@...emloft.net, edumazet@...gle.com, kuba@...nel.org,
pabeni@...hat.com, richardcochran@...il.com,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
sebastian.tobuschat@....com
Subject: Re: [PATCH net-next v1 08/14] net: phy: nxp-c45-tja11xx: enable LTC
sampling on both ext_ts edges
On 19.06.2023 11:10, Horatiu Vultur wrote:
> The 06/16/2023 16:53, Radu Pirea (NXP OSS) wrote:
>>
>> +static void nxp_c45_set_rising_or_falling(struct phy_device *phydev,
>> + struct ptp_extts_request *extts)
>> +{
>> + /* Some enable request has only the PTP_ENABLE_FEATURE flag set and in
>> + * this case external ts should be enabled on rising edge.
>> + */
>> + if (extts->flags & PTP_RISING_EDGE ||
>> + extts->flags == PTP_ENABLE_FEATURE)
>> + phy_clear_bits_mmd(phydev, MDIO_MMD_VEND1,
>> + VEND1_PTP_CONFIG, EXT_TRG_EDGE);
>
> With this patch, are you not changing the behaviour for TJA1103?
Yes. The behaviour is changed. If extts->flags == PTP_ENABLE_FEATURE,
the ext ts will be enabled on falling edge.
> In the way, before there was not check for extts->flags ==
> PTP_ENABLE_FEATURE and now if that is set you configure to trigger on
> raising edge. If that is the case, shouldn't be this in a different
> patch?
You are right. I will split this patch in two. One that enables ext ts
on rising edge when extts->flags == PTP_ENABLE_FEATURE and another one
with TJA1120 changes.
>
>> +
>> + if (extts->flags & PTP_FALLING_EDGE)
>> + phy_set_bits_mmd(phydev, MDIO_MMD_VEND1,
>> + VEND1_PTP_CONFIG, EXT_TRG_EDGE);
>> +}
>> +
>
>
> --
> /Horatiu
--
Radu P.
Powered by blists - more mailing lists