[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <66f30c0f-dec8-4ad5-9578-a9dcc422355a@ti.com>
Date: Fri, 14 Feb 2025 11:35:07 +0530
From: "Malladi, Meghana" <m-malladi@...com>
To: Paolo Abeni <pabeni@...hat.com>, <javier.carrasco.cruz@...il.com>,
<diogo.ivo@...mens.com>, <horms@...nel.org>, <kuba@...nel.org>,
<edumazet@...gle.com>, <davem@...emloft.net>, <andrew+netdev@...n.ch>
CC: <linux-kernel@...r.kernel.org>, <netdev@...r.kernel.org>,
<linux-arm-kernel@...ts.infradead.org>, <srk@...com>,
Vignesh Raghavendra
<vigneshr@...com>,
Roger Quadros <rogerq@...nel.org>, <danishanwar@...com>
Subject: Re: [EXTERNAL] Re: [PATCH net 1/2] net: ti: icss-iep: Fix pwidth
configuration for perout signal
On 2/13/2025 4:53 PM, Paolo Abeni wrote:
> On 2/11/25 11: 35 AM, Meghana Malladi wrote: > @@ -419,8 +426,9 @@
> static int icss_iep_perout_enable_hw(struct icss_iep *iep, >
> regmap_write(iep->map, ICSS_IEP_CMP1_REG0, lower_32_bits(cmp)); > if
> (iep->plat_data->flags &
> ZjQcmQRYFpfptBannerStart
> This message was sent from outside of Texas Instruments.
> Do not click links or open attachments unless you recognize the source
> of this email and know the content is safe.
> Report Suspicious
> <https://us-phishalarm-ewt.proofpoint.com/EWT/v1/G3vK!
> updqdzavl0dbisXOnfkDHxHqGlQUHEro3tgnljLa7x4DRPBIRKu8Nqm3bW1LeMtXFyqz6yM7_tLlrvUmslKj9m_IL0hUlNU$>
> ZjQcmQRYFpfptBannerEnd
>
> On 2/11/25 11:35 AM, Meghana Malladi wrote:
>> @@ -419,8 +426,9 @@ static int icss_iep_perout_enable_hw(struct icss_iep *iep,
>> regmap_write(iep->map, ICSS_IEP_CMP1_REG0, lower_32_bits(cmp));
>> if (iep->plat_data->flags & ICSS_IEP_64BIT_COUNTER_SUPPORT)
>> regmap_write(iep->map, ICSS_IEP_CMP1_REG1, upper_32_bits(cmp));
>> - /* Configure SYNC, 1ms pulse width */
>> - regmap_write(iep->map, ICSS_IEP_SYNC_PWIDTH_REG, 1000000);
>> + /* Configure SYNC, based on req on width */
>> + regmap_write(iep->map, ICSS_IEP_SYNC_PWIDTH_REG,
>> + (u32)(ns_width / iep->def_inc));
>
> This causes build errors on 32bits:
>
> ERROR: modpost: "__udivdi3" [drivers/net/ethernet/ti/icssg/icss_iep.ko]
> undefined!
> make[3]: *** [../scripts/Makefile.modpost:147: Module.symvers] Error 1
> make[2]: *** [/home/nipa/net/wt-0/Makefile:1944: modpost] Error 2
> make[1]: *** [/home/nipa/net/wt-0/Makefile:251: __sub-make] Error 2
> make: *** [Makefile:251: __sub-make] Error 2
> ERROR: modpost: "__udivdi3" [drivers/net/ethernet/ti/icssg/icss_iep.ko]
>
> You should use div_u64()
>
I see, thanks.
Can you tell me how can I reproduce this on my end for 32 bits.
Will fix this in v2.
> /P
>
Powered by blists - more mailing lists