Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1640244ybz; Sun, 26 Apr 2020 00:54:34 -0700 (PDT) X-Google-Smtp-Source: APiQypLRV4K5V4BZ+Cjm6nChZAZPXKuefTpv02AyaOQ2INp3Fnro9EZav3HxjPSOVR6XOWeslzrx X-Received: by 2002:a17:906:809:: with SMTP id e9mr14117934ejd.81.1587887674071; Sun, 26 Apr 2020 00:54:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587887674; cv=none; d=google.com; s=arc-20160816; b=c0p5b+lS0VNxxEIF257LqcA9EXnVHl0Jq6UMdNBR0xjVb/jdN9gaKvyKYbKgq8q7P0 uHaTnI9g44A0nxY+c8E+l1OUqwywEXuSZoZ5B8Oq9969lyWQ1NdHa6wRm5m5C73dpOUK z1XhKhf3LJk4Rcmz9JGhtpssAEbdb8l00AEOlIVmdWUlyDssbCIVu0KMhQwCVWvaNUpX IjVaKZ4yhjtFrxIPVT8wvpIuBcWnoMoAntX4H8WHOSOHYReGxmnNQe3mDV7abtGkut+B DStYJQNlrMgq4b5lSFiwbT6fkfbaVRIPBOLKLZg0Uyu9nwlPkzXyuFMx3qWOBailR2mh ZA+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-signature; bh=dlaYtzBhqCOJ3VoDX6DtQUz5VK905cLHtYPCSoXmEOk=; b=iWbP62z7jpLb8VITIRoLVljvaqIzoJ0lJLgG1iF3NupPOCpLIZ296cog05q1yaG/3w uRae70LuoB2EF1tNyHjuj7v2rZj6ZCDb331Os5WbQmd2U8nnJQowg/j+vbjWODZeMjAC hzkQOwzMrQxXBSXSZS5Yp4FheG5ZjL6eEYQd7ocCkDx4keln9dET2QIS+1Krnpnl8dtt lD4ZlQVTY+cexjRgdV0016w3zr4qKrpBgcizBwVWh8sLPS9MSERi9n/SYVbtSVOePvhI 4ScPM56UQ2hoPHjTofVevFCJHkEYFhtYX3EY7pM6Lz8zknV+M9/QrLVLvFmVCxAvnWfI tmWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kroah.com header.s=fm3 header.b=GZzz2Aol; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=hWBEp3lh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t27si6306121edt.100.2020.04.26.00.54.11; Sun, 26 Apr 2020 00:54:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kroah.com header.s=fm3 header.b=GZzz2Aol; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=hWBEp3lh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726135AbgDZHvr (ORCPT + 99 others); Sun, 26 Apr 2020 03:51:47 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:54215 "EHLO out3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726112AbgDZHvq (ORCPT ); Sun, 26 Apr 2020 03:51:46 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 429335C0283; Sun, 26 Apr 2020 03:51:45 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Sun, 26 Apr 2020 03:51:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kroah.com; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:content-transfer-encoding:in-reply-to; s=fm3; bh=d laYtzBhqCOJ3VoDX6DtQUz5VK905cLHtYPCSoXmEOk=; b=GZzz2AolPYeHVBkaP PBTFKP2TzrAOrbcnUAFbT9qxQylD6OfDuoAIUkRc7bEYyoMcqKjX1qB8x1/2zsNb LpcRpaDnw6gBXcUd+Ah5BllMzH5g6/avJGBYu32hT1EvSmFupKlXGo5vgGZPUKS1 jROniLIsbcpViUSFouFtbHZVfH7+X3njN7/1fFm4fP4YRrJE+knNpg3WHtpjafja Qk0y7UmqDXiJAwx+nFkBBZw8FlehxGYDuF/TYJGjSqCCrS4qgeAuo3PVboeDiuUc zWhOQOT1hK1Dd8PWQ5LwnWPC7QeMiIou0Mf2ibrvmrS/HkOaHprc6E5f/7oei6Fy o8ZfQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=dlaYtzBhqCOJ3VoDX6DtQUz5VK905cLHtYPCSoXmE Ok=; b=hWBEp3lhIQx+fbVSBne/RSgvH/Ek5XM5M3Pi70xrGtRz4lk1mK0HjuKAD X3uIE/EWAcxe1OxOC9MzhJoeuJVXhbWNkKJ4Yki/19GrWF3DolYHIR5pjSdf0qlg Co9TNk8130taQjztTXaLQVGMQskHcNpahemFjKzn7ZIrhw/vZdvZjGihDFT6mksQ ogDUqM0+899RZ92TsqKBo0omyBsSAt9qBL8++9TFmGFX+eO4AbbNP+cQluXFjv0o cbcE9eHDdOzTdoA28938zYnZMAOVHtFVTh6roirtun2NLxVbfT34Ah8a+vtodsr/ FWhGiq8PYzOOhKPZ0D0I29WQ96/gg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrheeigdeftdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfhfgggtugfgjgesthekre dttddtudenucfhrhhomhepifhrvghgucfmjfcuoehgrhgvgheskhhrohgrhhdrtghomheq necukfhppeekfedrkeeirdekledruddtjeenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpehgrhgvgheskhhrohgrhhdrtghomh X-ME-Proxy: Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) by mail.messagingengine.com (Postfix) with ESMTPA id 78B9B3065E19; Sun, 26 Apr 2020 03:51:44 -0400 (EDT) Date: Sun, 26 Apr 2020 09:51:41 +0200 From: Greg KH To: Akira Shimahara Cc: zbr@ioremap.net, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/2] Changes in w1_therm.c and adding w1_therm.h Message-ID: <20200426075141.GB2100063@kroah.com> References: <20200423144116.GA7319@kroah.com> <20200425153141.247055-1-akira215corp@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200425153141.247055-1-akira215corp@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Apr 25, 2020 at 05:31:41PM +0200, Akira Shimahara wrote: > From: Akira SHIMAHARA > > 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 > > Main motivation was to improve temperature reading speed, which depend > on resolution settings of devices. The module store the powwer status and > the resolution of each device so that during reading operation, no > transaction is required on the bus, which improve speed. > The hardware status is checked as soon as a new device is detected, > when a user change occurred, or when the corresponding sys file is > accessed by user. > > The bulk read allow to trigger convserion of all devices on the bus at > the same time. It will apply a strong pull up on the line if at least > one device required it. The duration of the pull up is the max time > required by a device on the line. > > Please let me know any feedback you have on this patch. > > Thanks ahead, > > Signed-off-by: Akira Shimahara > --- > Changes in v2: > - Adding documentation in Documentatin/ABI/testing/sysfs-driver-w1_therm > - Updating existing documentation in Documentation/w1/slaves/w1_therm.rst > > drivers/w1/slaves/w1_therm.c | 1406 ++++++++++++++++++++++++++-------- > drivers/w1/slaves/w1_therm.h | 386 ++++++++++ > 2 files changed, 1470 insertions(+), 322 deletions(-) > create mode 100644 drivers/w1/slaves/w1_therm.h No documentation files are added here :(