Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2060240ybz; Sun, 26 Apr 2020 10:13:03 -0700 (PDT) X-Google-Smtp-Source: APiQypJSPHBVUaM1Y9G12mz2KK7HZswSaMcA1WdVbU+2VQxmHNRDgNWLai2f2Ob8f689w78tJNYK X-Received: by 2002:a17:906:160a:: with SMTP id m10mr15569169ejd.8.1587921183479; Sun, 26 Apr 2020 10:13:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587921183; cv=none; d=google.com; s=arc-20160816; b=Uxw/TKEDJw4Nbsyn31g4S8YHbEMP4PQ2qCYF1wXZlrkl2VlRgGs3dHHpnNJ11NGKDd X9ZVo2kl3PY+GkZ0TM6+fsOlYzvGrRwVr0BoNPQ40kEyKJ1f+en172SSERL4oPSXWqQg 6rQQQODc9iw4u6C0tP81b5iAoKZn+x34/7ukTIVaB6RwfAyMdM0kb2io4uSBDYCKx7fk 5830M44jHF6Aic0NOXiqwYTZjXletvcRVB7fU1C0tcQPA721rQIMT148j2GlfduxqQuL YskWupwc3AL7Z/IdJm32dZyw3HgIrovxiKBtoG4dSxgwkbN0w7zzeRXllzjDb44v7P9c e1Hw== 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=Uz0IZa8nk56SgTTPFUxSsQ9v7SwozUUUONCAK2vrfSE=; b=KUgUcTWejfCwpdAcvfm05QZnexRdLrQUGWjHCxu3j4hPe2t0AQm5H1MUSCgSiK55nl i24Pj6wRh/DNRrWiO6jWzxeJG4CIVPWV1jLMLWGSh0LvLmaxLARVNByke5evLqIL0wKc PGlVRoMbM25r4BibRMqvpCPC+5souEmVBWS1UA5d7qw4n2+WDdNGarkJ2AaVy2cDbJZT vketkrlzBLwj0MH4J0GyrUQNBA8F6giFtTOsxvrCEBGnrGYuHt4/Otv6jdW87sU5+ted p5Q54p2oe7jdMopFfqJcBGOCWAJMlJdz282ATsWxvQXnJXoxZ6/5xq1GnSSoWOuE82Rp uw/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kroah.com header.s=fm3 header.b=iPOY9kIB; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b="LV9t/QMd"; 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 m5si6685718edq.498.2020.04.26.10.12.40; Sun, 26 Apr 2020 10:13:03 -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=iPOY9kIB; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b="LV9t/QMd"; 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 S1726165AbgDZRJH (ORCPT + 99 others); Sun, 26 Apr 2020 13:09:07 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:59561 "EHLO out5-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726143AbgDZRJG (ORCPT ); Sun, 26 Apr 2020 13:09:06 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id CF9805C0112; Sun, 26 Apr 2020 13:09:05 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Sun, 26 Apr 2020 13:09:05 -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=U z0IZa8nk56SgTTPFUxSsQ9v7SwozUUUONCAK2vrfSE=; b=iPOY9kIBpwBL4AATZ EkNZZZSyvTqLTe3+OEqQKam/DCvqtsFA4iZyhDBJ6q40imtZ+uU0q3nTZydyZzS0 S0ZpZcCF0cJn+YkE4Kdp6RkDRYwgMatbUjrEmD59SN87lk2N1yBEa1SO/5q+Opad czeBUh9jVFETvh85CJrQeC1BWfc/ZM78GO5vOSl/tIRG8gTkHDGndwSIKJ0p2Jds zw2YuvWi2LgmtyvEhAxgdTeJlsyfTKWYYy6Bfp+pRHIreYYvVGvATRfHDCL22ep7 mA1jxUoEIWQyQ3LsV4t+gQzsUIJob2endgVl4wcsY4Soqplf0MTMC1QhDjULGTwN TMPUg== 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=Uz0IZa8nk56SgTTPFUxSsQ9v7SwozUUUONCAK2vrf SE=; b=LV9t/QMd4orRsGtxzekAEltsZNVIydrPCTc68d/sC8vFe4KGrbjDHlg7m LLfJXLMPi4MZxRXl498g/JhErn5o+DRFmgYVps0jBibJu8ozN8FAVvDr6ugjDiZa yFT8T5fNPgNjX7Ihl/jho/DslK7N/CkSs+ybao+X9JBRAqLraW061xsNpY/Wmhik 9ciykw7Q4XiEx0h099240SLDrqWjy7s7kYz7WVMD1n9DVG4tFC1xxlO1vEgbqK7V iR3g9QmTghsabjOZLRoFl7TsRq3NSHDZmRS2ZX4gxAoV0gky79pe1BNPrDXGXpob L94CRWdDg3pRoTgpLtdJ88WcuuuXw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrheejgdduuddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkfhggtggugfgjsehtke ertddttddunecuhfhrohhmpefirhgvghcumffjuceoghhrvghgsehkrhhorghhrdgtohhm qeenucfkphepkeefrdekiedrkeelrddutdejnecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepghhrvghgsehkrhhorghhrdgtohhm 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 2EE1D3280059; Sun, 26 Apr 2020 13:09:05 -0400 (EDT) Date: Sun, 26 Apr 2020 19:09:01 +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: <20200426170901.GA2139089@kroah.com> References: <20200423144116.GA7319@kroah.com> <20200425153141.247055-1-akira215corp@gmail.com> <20200426075141.GB2100063@kroah.com> <1b002fb8caf1755b89882fd7a3bbac1565959a6d.camel@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1b002fb8caf1755b89882fd7a3bbac1565959a6d.camel@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Apr 26, 2020 at 02:36:52PM +0200, Akira shimahara wrote: > Le dimanche 26 avril 2020 ? 09:51 +0200, Greg KH a ?crit : > > 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 :( > > > > It's in the PATCH 2/2 included in the previous mail. You want me to > merge in one commit ?. I thought it was easier for you to keep a track > of the v1. What previous mail? I don't see a patch 2/2 here, did you not cc: me? thanks, greg kh