lkml.org 
[lkml]   [2023]   [Feb]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: [PATCH v3 char-misc-next] misc: microchip: pci1xxxx: Add OTP/EEPROM driver for the pci1xxxx switch
Date
> From: Greg KH <gregkh@linuxfoundation.org>
> Sent: Friday, January 20, 2023 4:26 PM
> To: Kumaravel Thiagarajan - I21417
> <Kumaravel.Thiagarajan@microchip.com>
> > + dev_err(&priv->pdev->dev,
> > + "EPC_Timeout, EEPROM is unresponsive: %x\n",
> > + data);
>
> Can this spam the kernel logs? If so, please rate limit it.

This print will only come once at max and will not spam logs.

> > + delay = msecs_to_jiffies(OTP_RW_TIMEOUT_MILLISECONDS);
> > + j0 = jiffies;
> > + j1 = j0 + delay;
>
> Are you sure this math works out? Please use the jiffies math functions
> instead so you can handle wrapping properly.

You suggest using any existing APIs to add jiffies to handle wrapping? I am not able
to find any such API. Can you please point out API name.

Thanks,
Tharun Kumar P

\
 
 \ /
  Last update: 2023-03-27 00:10    [W:0.062 / U:0.156 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site