Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp1427266img; Tue, 19 Mar 2019 07:27:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqzsNHxw33VEFsl3RdZxivpqNvcDo8zm/S4529k768vJopPdCG7ny0hCaxPvQShS4UiqHlqG X-Received: by 2002:a17:902:9884:: with SMTP id s4mr2392277plp.110.1553005626421; Tue, 19 Mar 2019 07:27:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553005626; cv=none; d=google.com; s=arc-20160816; b=Wl4gSB4JHugWD9dnVvK62xRG3L+IT+zZfIp5b3X34x9msbNK2ztiiAGO7FCLa/Q//2 BOm4zTyPWQoRMTRaMqPueSWlXMKFYUk1d6aiWvTEhNdJ5L9Xayak5F8M7HVHEfj0ut9g 7y5oqpU+pmFBoTzus4Jzw5IPht1wsgfvlro8EC6a6hEYF29EBSO4nqN1jHsi7EwU+fJZ Rm3QbvmYEoj1wXzVJ9UYZRmYljWosQB5V/wbgQdElWRbkEfW+/F9etZnhuCxF2HPmTwK 3+RfS2mVG5xbpAmEydouhmCdTD8vTs2+Wl44Rgq4RggJqbDh8rFWBBhhrc0zN8YjqjvX CxBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=BHr58bZTK/dW8lcPjGA4iNyjw75zsiEtuluqMZdQBi8=; b=F3hClSPG+CN1ilduPJqC6dfG6hhHJwTeqZjNzoKG2wUdmpR9IJ11fz1LzHI2A5ABMt yrBCtkdocZDfo2i/RvR5JKXO4iW3q9b5hHMIe3J2wyhu2DHJEJYFVYK/B6/m5Y30bsQQ vmdv7Q9pPJ+dvoEBJuLL4TvYy+GX4AjaR794wc6+hidTghPhCxwYsn6yHjY97TvCBnHj TOdxlppK3ao0/bmf+yLS8q2sFeWkCYTegpFiAWObNL3z4gAMEA5zZkIkSpcS2Ovwhxs+ JjYcY+7md9TjDpohhBmhhd7l/AVYbr8mJ9wfNMOkcMeRP35fgCIKIUWWUXstGTr8CoSV xNeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MpOpiK9F; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m3si11106115pgp.263.2019.03.19.07.26.50; Tue, 19 Mar 2019 07:27:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MpOpiK9F; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727535AbfCSOZx (ORCPT + 99 others); Tue, 19 Mar 2019 10:25:53 -0400 Received: from mail-qt1-f196.google.com ([209.85.160.196]:34074 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726763AbfCSOZx (ORCPT ); Tue, 19 Mar 2019 10:25:53 -0400 Received: by mail-qt1-f196.google.com with SMTP id k2so22341781qtm.1 for ; Tue, 19 Mar 2019 07:25:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=BHr58bZTK/dW8lcPjGA4iNyjw75zsiEtuluqMZdQBi8=; b=MpOpiK9FdBWh9rzuSW9ybpDMsuqbEFaSOZWUzPo98kb84xMzbVlyGraOCNqzzRWyDz HKBb+PIcUN0B8BaCdk1JoloHc18APzxp0woA1c4avBb+T9w6r9AhzEZGZuUDz3ZIbhKA 3tbV1HPUmOg25i1h/Kt/bubpvgsTiP5Sywe7fKw0fx6or5hbXaMzeAiJph/sJMupOLV9 Xcq4tOWX5rx/WlgpLGAL83t2GUW64CuBdhUeqoOH9sNa7su5XovQaImTvvBiheog4YZM hV8JPiyvyc/ee2UBXa+4pY9YDikA8+mUkJ8+LRcA58+CmsmIiCqK6hshx+fzLYJYqar9 reHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=BHr58bZTK/dW8lcPjGA4iNyjw75zsiEtuluqMZdQBi8=; b=rY7CN+BsRl2VVh1zQUDWBMmVWHYlprHAtWtpbaP7SWUKBXKxYYuYc+HjpySGQ+S4gA DSysOI1bkHcoW9kg/c55tdtXPI6BQLJJ9BOVLaaZKvvvcEeu3ZMQr20BHmpYEizc/H4h S1ZJDpC7nQKJpYQuXVSzGuvvWf3EOFUVA8RndDl8t5vxTgQviXGBm9n4N17yh/eHHebe c66gzL4HNfyYwB3fc9jQ7c2QCMyra0wozw4GGxnKPek+2gvhhvArdUpfKWiDFohbw/+k xFnXx/z6kVs9AaEBPMAyKEU26SUzXdsJEXF0Ny/xkvBOYjzMBbXkV32NFhfJ6I6MDMvS u6oA== X-Gm-Message-State: APjAAAUhO4nfm6sOVjz37Y/1NIvPY03UjT2/ZkY2/rumixz5xkzq1fLR t+0W6LOzvZHCDH9R49NnyuE= X-Received: by 2002:ac8:2f98:: with SMTP id l24mr2214895qta.261.1553005552158; Tue, 19 Mar 2019 07:25:52 -0700 (PDT) Received: from jfdmac.sonatest.net (ipagstaticip-d73c7528-4de5-0861-800b-03d8b15e3869.sdsl.bell.ca. [174.94.156.236]) by smtp.gmail.com with ESMTPSA id s17sm7009508qtc.15.2019.03.19.07.25.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Mar 2019 07:25:51 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\)) Subject: Re: [PATCH 1/2] w1: ds2408: add a missing reset when retrying in output_write() From: Jean-Francois Dagenais In-Reply-To: Date: Tue, 19 Mar 2019 10:25:50 -0400 Cc: open list , Evgeniy Polyakov , Greg Kroah-Hartman Content-Transfer-Encoding: quoted-printable Message-Id: <3E9B4A8B-6409-4102-A3A2-40853AD04DB1@gmail.com> References: <20190318092737.8170-1-manio@skyboo.net> <20190318092737.8170-2-manio@skyboo.net> To: Mariusz Bialonczyk X-Mailer: Apple Mail (2.3445.102.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Mar 19, 2019, at 10:21, Jean-Francois Dagenais = wrote: >=20 > I can do a proper patch submission if you guys provide positive = response on this > early RFC. Or better yet, you can take it and own it yourself as your = v2 > Mariusz. ;) Just FYI, here's what the retry loop looks like after this suggested = patch: do { w1_buf[0] =3D W1_F29_FUNC_CHANN_ACCESS_WRITE; w1_buf[1] =3D *buf; w1_buf[2] =3D ~(*buf); w1_write_block(sl->master, w1_buf, 3); readBack =3D w1_read_8(sl->master); if (readBack =3D=3D W1_F29_SUCCESS_CONFIRM_BYTE && optional_read_back_valid(sl, *buf)) { bytes_written =3D 1; goto out; } if (w1_reset_resume_command(sl->master)) goto out; /* unrecoverable error */ /* try again, the slave is ready for a command */ } while (--retries); Much better on the eyes.=