[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <8e896bc3-b153-4db2-b874-4374376db9a0@huawei.com>
Date: Mon, 23 Jun 2025 09:43:23 +0800
From: Jijie Shao <shaojijie@...wei.com>
To: Jakub Kicinski <kuba@...nel.org>
CC: <shaojijie@...wei.com>, <davem@...emloft.net>, <edumazet@...gle.com>,
<pabeni@...hat.com>, <andrew+netdev@...n.ch>, <horms@...nel.org>,
<shenjian15@...wei.com>, <wangpeiyang1@...wei.com>, <liuyonglong@...wei.com>,
<chenhao418@...wei.com>, <jonathan.cameron@...wei.com>,
<shameerali.kolothum.thodi@...wei.com>, <salil.mehta@...wei.com>,
<netdev@...r.kernel.org>, <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH net-next 3/3] net: hibmcge: configure FIFO thresholds
according to the MAC controller documentation
on 2025/6/21 23:35, Jakub Kicinski wrote:
> On Thu, 19 Jun 2025 22:44:23 +0800 Jijie Shao wrote:
>> + value |= FIELD_PREP(HBG_REG_CFG_FIFO_THRSLD_TX_FULL_M, full);
>> + value |= FIELD_PREP(HBG_REG_CFG_FIFO_THRSLD_TX_EMPTY_M , empty);
>> + }
>> +
>> + if (dir & HBG_DIR_RX) {
>> + value |= FIELD_PREP(HBG_REG_CFG_FIFO_THRSLD_RX_FULL_M, full);
>> + value |= FIELD_PREP(HBG_REG_CFG_FIFO_THRSLD_RX_EMPTY_M , empty);
> nit checkpatch says:
>
> WARNING: line length of 81 exceeds 80 columns
> #62: FILE: drivers/net/ethernet/hisilicon/hibmcge/hbg_hw.c:306:
> + value |= FIELD_PREP(HBG_REG_CFG_FIFO_THRSLD_TX_EMPTY_M , empty);
>
> ERROR: space prohibited before that ',' (ctx:WxW)
> #62: FILE: drivers/net/ethernet/hisilicon/hibmcge/hbg_hw.c:306:
> + value |= FIELD_PREP(HBG_REG_CFG_FIFO_THRSLD_TX_EMPTY_M , empty);
> ^
>
> WARNING: line length of 81 exceeds 80 columns
> #67: FILE: drivers/net/ethernet/hisilicon/hibmcge/hbg_hw.c:311:
> + value |= FIELD_PREP(HBG_REG_CFG_FIFO_THRSLD_RX_EMPTY_M , empty);
>
> ERROR: space prohibited before that ',' (ctx:WxW)
> #67: FILE: drivers/net/ethernet/hisilicon/hibmcge/hbg_hw.c:311:
> + value |= FIELD_PREP(HBG_REG_CFG_FIFO_THRSLD_RX_EMPTY_M , empty);
> ^
>
> total: 2 errors, 2 warnings, 0 checks, 79 lines checked
>
> NOTE: For some of the reported defects, checkpatch may be able to
> mechanically convert to the typical style using --fix or --fix-inplace.
This is my mistake.
Thanks for the guidance.
Thanks
Jijie Shao
Powered by blists - more mailing lists