[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <10e59e850894524d34cc7d89c126ab9133e6a1a7.camel@perches.com>
Date: Thu, 02 Dec 2021 18:50:27 -0800
From: Joe Perches <joe@...ches.com>
To: Sui Chen <suichen@...gle.com>, linux-kernel@...r.kernel.org
Cc: openbmc@...ts.ozlabs.org, linux-i2c@...r.kernel.org,
joel@....id.au, andrew@...id.au, tali.perry1@...il.com,
benjaminfair@...gle.com, krellan@...gle.com
Subject: Re: [RFC Patch v2 1/3] i2c debug counters as sysfs attributes
On Thu, 2021-12-02 at 18:37 -0800, Sui Chen wrote:
> This change adds a few example I2C debug counters as sysfs attributes:
> - ber_cnt (bus error count)
> - nack_cnt (NACK count)
> - rec_fail_cnt, rec_succ_cnt (recovery failure/success count)
> - timeout_cnt (timeout count)
> - i2c_speed (bus frequency)
> - tx_complete_cnt (transaction completed, including both as an initiator
> and as a target)
>
> The function i2c_adapter_create_stats_folder creates a stats directory
> in the device's sysfs directory to hold the debug counters. The platform
> drivers are responsible for instantiating the counters in the stats
> directory if applicable.
Please try to use scripts/checkpatch.pl on your patches and see if
you should be more 'typical kernel style' compliant.
Ideally, use the --strict option too.
Powered by blists - more mailing lists