Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1691193ybz; Thu, 16 Apr 2020 13:47:12 -0700 (PDT) X-Google-Smtp-Source: APiQypJ3JrHxK2WULIl8Cn4i4iJ6rP78F04wqXE8kan71Dm9d2u+2QP2jeTF8BjpJRZVZs/Yx4fn X-Received: by 2002:a17:906:b217:: with SMTP id p23mr11092995ejz.136.1587070032240; Thu, 16 Apr 2020 13:47:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587070032; cv=none; d=google.com; s=arc-20160816; b=GrmDbUOQfFeTBIqEsF/LLeRDKXzPXsIHFZORTsgIgDsxJlhxx8TTjgc/JnUplMc79L BwjrzpMPGjnPBehfrEnqm5sS69kxOt/przlaWejz59Wr3fmtiFJ9wKuPwYly+Pw2Cqce t2q8Skxi3StMZ7+xIzJ9XzlryIIW5tAKYc2u3htPL4HbzEXxXA+Q2LGi276lQ+EYqfxv iZ3xjhvzlSD/YAPvFe0Nma+ipQKkkCeKP6+IXPB8Q0OS/usyDFw1v0LlrVQR/DVKybv5 61zJp9o0h4DdODuIVICeg5prcH3h02IEta3yQceag+xYUkfLUfK8/7MzbXiv18l8+Jtc qtSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:message-id:date :mime-version:subject:references:in-reply-to:cc:to:envelope-from :from:dkim-signature; bh=FjgtpRfNnNo3G5mZ6JF4NLtbDrsA/Hb5OCt/UqoNZkY=; b=jf+8lldGFlUN3RH4JZmBv33A0LvLhfu8d2N5dbwVCteiGQXJXpIS0vJt/6PveWgnGt abP45YtzpfXGapv5HbAkNVL4cKZSKKsqPnbFw3wulKxEmCkjW2Ot9YNDoMeZfTBPsex0 Rn0plyoYCJM37ZQiNEfB8FhP/p+AInDMadsbed9k06tT0GgUJahI+9Tk0mrkQEtgI80C wPR2w6m1kj3jxrIewTrGXSf8DCJINIvYSkUnAEJQgAw5aCE5ebnJ68/CmZbMrQc7VFjQ vixmaNAIj6zIeV+q0hLYL3sYjvEXmDm7EQQp+dftBRZUa0v9Cwu7hNg6EsY9DPXZ08Vw Ww2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@yandex.ru header.s=mail header.b=c1zv+sv3; 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 g8si13564080ejc.247.2020.04.16.13.46.48; Thu, 16 Apr 2020 13:47:12 -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=@yandex.ru header.s=mail header.b=c1zv+sv3; 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 S1729283AbgDPUSW (ORCPT + 99 others); Thu, 16 Apr 2020 16:18:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729120AbgDPUSV (ORCPT ); Thu, 16 Apr 2020 16:18:21 -0400 X-Greylist: delayed 330 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Thu, 16 Apr 2020 13:18:17 PDT Received: from forward501j.mail.yandex.net (forward501j.mail.yandex.net [IPv6:2a02:6b8:0:801:2::111]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DADF7C03C1A8 for ; Thu, 16 Apr 2020 13:18:17 -0700 (PDT) Received: from mxback2q.mail.yandex.net (mxback2q.mail.yandex.net [IPv6:2a02:6b8:c0e:40:0:640:9c8c:4946]) by forward501j.mail.yandex.net (Yandex) with ESMTP id 47A43338071F; Thu, 16 Apr 2020 23:12:41 +0300 (MSK) Received: from localhost (localhost [::1]) by mxback2q.mail.yandex.net (mxback/Yandex) with ESMTP id YUcaSHdlDb-Ceg4lJIF; Thu, 16 Apr 2020 23:12:40 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1587067960; bh=FjgtpRfNnNo3G5mZ6JF4NLtbDrsA/Hb5OCt/UqoNZkY=; h=Message-Id:Cc:Subject:In-Reply-To:Date:References:To:From; b=c1zv+sv3JOpzKhBNttUBmSNhIREG4HQQAtiqvDWoEjhdc5HF/QBcUzLodfyI1IuGu EV6r+WKIFaFX+lczdK6ABSSLhr+v75S5eNjVFzXv80TBjFNPdC9YjV4CXWLeu3Gr6i HPONBKoAp4517407xuyl6T0RXduxdWtbuLWDwpWc= Authentication-Results: mxback2q.mail.yandex.net; dkim=pass header.i=@yandex.ru Received: by vla5-dcf36e533bf7.qloud-c.yandex.net with HTTP; Thu, 16 Apr 2020 23:12:40 +0300 From: Evgeniy Polyakov Envelope-From: drustafa@yandex.ru To: Akira Shimahara , "linux-kernel@vger.kernel.org" Cc: Greg Kroah-Hartman In-Reply-To: <20200414170248.299534-1-akira215corp@gmail.com> References: <20200414170248.299534-1-akira215corp@gmail.com> Subject: Re: [PATCH] Changes in w1_therm.c and adding w1_therm.h MIME-Version: 1.0 X-Mailer: Yamail [ http://yandex.ru ] 5.0 Date: Thu, 16 Apr 2020 23:12:40 +0300 Message-Id: <20621587067856@mail.yandex.ru> Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=utf-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi 14.04.2020, 20:03, "Akira Shimahara" : > 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 harware status is checked as soon as a new device is detected, > when a user change occured, 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 Looks good to me, thank you! These are really good changes. Greg, please pull it into your tree, thank you. Acked-by: Evgeniy Polyakov