Hi Marek,
On 05/03/2025 19:53, Marek Vasut wrote:
> On 3/4/25 9:07 PM, Paul Barker wrote:
>> The value written to the RFLR register includes the length of the CRC
>> data at the end of each Ethernet frame. So we need to increase the value
>> written to this register to ensure that we can receive full size frames.
>>
>> While we're here we can also copy the improved comment from the Linux
>> kernel.
>>
>> Fixes: 8ae51b6f324e ("net: ravb: Add Renesas Ethernet RAVB driver")
>> Signed-off-by: Paul Barker <[email protected]>
>> ---
>> drivers/net/ravb.c | 10 ++++++++--
>> 1 file changed, 8 insertions(+), 2 deletions(-)
>>
>> diff --git a/drivers/net/ravb.c b/drivers/net/ravb.c
>> index 6129929568a3..6bd94cf6bb1b 100644
>> --- a/drivers/net/ravb.c
>> +++ b/drivers/net/ravb.c
>> @@ -354,8 +354,14 @@ static int ravb_mac_init(struct ravb_priv *eth)
>> /* Disable MAC Interrupt */
>> writel(0, eth->iobase + RAVB_REG_ECSIPR);
>>
>> - /* Recv frame limit set register */
>> - writel(RFLR_RFL_MIN, eth->iobase + RAVB_REG_RFLR);
>> + /* Set receive frame length
>
> /*
> * Set receive ...
>
> Please don't use netdev-style comments here.
>
> With that fixed:
>
> Reviewed-by: Marek Vasut <[email protected]>
>
> I can also fix while applying, please let me know.I copied the comment straight from the kernel sources, didn't think about the comment style sorry. Please fix up while applying. Thanks, -- Paul Barker
OpenPGP_0x27F4B3459F002257.asc
Description: OpenPGP public key
OpenPGP_signature.asc
Description: OpenPGP digital signature

