lkml.org 
[lkml]   [2020]   [Apr]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] Changes in w1_therm.c and adding w1_therm.h
On Tue, Apr 14, 2020 at 07:02:48PM +0200, Akira Shimahara wrote:
> From: Akira SHIMAHARA <akira215corp@gmail.com>
>
> Patch for enhacement of w1_therm module. Added features :
> - Bulk read : send one command for all the slaves
> on the bus to trigger temperature conversion
> - Optimized conversion time regarding to device resolution
> - Dedicated sysfs entry for powering read,
> resolution set/get, eeprom save/restore
> - Alarms settings and reading
> - Code optimization to mitigate bus traffic
> (devices information are stored to avoid
> interrogating each device every-time)
>
> Following sysfs entry are added :
> - temperature (RO) : return the temperature in 1/1000°
> - ext_power (RO) : return the power status of the device
> - resolution (RW) : get or set the device resolution (supported devices)
> - eeprom (WO) :trigger a save or restore to/from device EEPROM
> - alarms (RW) : read or write TH and TL in the device RAM
> - therm_bulk_read (RW) : Attribute at master level to trigger
> bulk read and to survey the progress of devices conversions
> - w1_slave has been kept for compatibility

You do not document any of these new sysfs files, why not?

Please add entries to Documentation/ABI/

And for the temp and other issues, shouldn't you use the "default"
kernel subsystems instead of creating your own api here?

thanks,

greg k-h

\
 
 \ /
  Last update: 2020-04-23 16:42    [W:0.154 / U:1.056 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site