Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp421521rdb; Thu, 21 Dec 2023 13:13:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IG3HPxXdaABjaxLf+DbzANwlWbK3t0PYa5iUCFdFKBpoCVh8JhFE+IExWguv2c8N39ZwkFI X-Received: by 2002:aa7:848e:0:b0:6d9:64d4:19f2 with SMTP id u14-20020aa7848e000000b006d964d419f2mr369007pfn.14.1703193195562; Thu, 21 Dec 2023 13:13:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703193195; cv=none; d=google.com; s=arc-20160816; b=f3RIYwhoQfShQuX9XmHS2ZcZJRwFkQwq2BklJHvgeEeWjEmSwovgsi94ur9Z+yLeQh 9IGbgK+/hyD6mImCmeocONBkBnbzszf5gMRImWmSnh2a0aEMiuOVTjoALxGnpy/QF7xE uN2WhzwaLiM0MmkVdfyajP6PDk5LyOtDBfg9dqG7wHjVDduPwgDVnmK+Hl65Mh5hyc9I 6CgEawRho6YHH7zTSfrBvZul5n+YYrNB7i97QlO1zGdGAFlk8Lp26GI69/U/cQC02t45 qH99bL+0E4yuFRKwn0nzqPVMWWlqAHVmBJs/uKsS/I3NGLVdY8Ode3bc6E0rP0+8/AxJ 0Muw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=GdMlmaV9AC7XvOLSkLsEav9XnreEWiVniTZV6CZEpk4=; fh=53ViexFUGDIiBF/vIae2MuSjfH8u4Zop8LEuO2fBMKQ=; b=GXFAvRStP8jsRxRUHCcZRdBUm6wrmz1kd/LDG1IK2kuSJJCwo4YZ50R/BhMmEzDbwm 6SBGvx0aib3uVJJdQwXI8gZC0EbWAw1GU2cPBQkctDF8Sh3gtBZmlKb6itUH7wg9p7qu nOYo09PLko7FARa07ZuHhfOcuiq/TvdLHxA5dIy1hGjY/A1S+cPgO8c8ZZ2GUT/Oj2j3 dVwojGDZz1vujmKz1cdHu9V7DK4PeMK0QefeIhdJ/R450gQUN6MegVNEjMI84bouZhCQ hGcT5NhLqr+qXVvhDDTiJxkABjqOMR58YBWKk+/i2FUOAuSp7fhIZGTaf5C/LSbYO0ql 5j0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=q28p3H6T; spf=pass (google.com: domain of linux-kernel+bounces-9075-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9075-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id o6-20020a635d46000000b005c2791fedb4si2132146pgm.21.2023.12.21.13.13.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 13:13:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-9075-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=q28p3H6T; spf=pass (google.com: domain of linux-kernel+bounces-9075-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9075-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 382B328683A for ; Thu, 21 Dec 2023 21:13:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 94E8E76DB6; Thu, 21 Dec 2023 21:13:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="q28p3H6T" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3DDD476DAE for ; Thu, 21 Dec 2023 21:13:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-40d2764c0f2so15155395e9.2 for ; Thu, 21 Dec 2023 13:13:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703193184; x=1703797984; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:to:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=GdMlmaV9AC7XvOLSkLsEav9XnreEWiVniTZV6CZEpk4=; b=q28p3H6TBjI5NmTShE0CsG4Nov/c5hTdRCcx5Vc+gjoZpqV1HLn4EuncBEf6o0TT/m VnTtneGUaUGjrq5A0gKk31Q+x6cwirQP1/vJqAvIm3zftSZHLugnB3IszlDuGLNvHKpp lQDdDZlYgMwev1HdVwSzMx8aK/6RzSfEA3AIEIBYwHJ+xaOtQTMbm4m9/5ZX3T1bGNOz RtyX1ZeKfay5KBt1yn0d+lvg65IYztqZdFCI0dO0GLlReaJVfES4JouIguxz5tIW0T/l XInqh5vSryGwd34N7mDckN/2karryvM0Ll6FPgmZgv9l+jQs346wtcmlSHmJuDdPHa0C Nr7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703193184; x=1703797984; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:to:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=GdMlmaV9AC7XvOLSkLsEav9XnreEWiVniTZV6CZEpk4=; b=rNZkW9X0nyUay4+Fy5rE+Q5Jtxl4/TK2D/pkBgKnufP45OnP9YXxIpW95m178EMDkJ AUjHYn62cFL5lxh94LcYq4rT8UKMQmGq4eD9mFkutXM7XEUIXfhC6IKGmXJbisI7O8/7 Vh/TwF4sh/Hu+OP5YuKZhfjSrw98KDVaTsO2NZRj+Y0S7OvFIF/Dlb7cb4szn6t7rOTT 2uzCmtHdQ447iXdNUMCM6rm5ZeSDlr+lsODattFAYLalcNIP9YggdgEhsComl7I2ISP+ 0uScRzjvpF9DTjIeZ+9D+lf4bo+sMHb0bsTqVU70eTDdfFxeRA6D1NzfakHl/FvqSkrZ wI8Q== X-Gm-Message-State: AOJu0Yw+ijK2kxvnakte2vji8i9K+Lv23zr/kB0mGyPLt381PaZxRRMW psLs9UExN6cmJwO90wRYnbKa1F8zEa36HA== X-Received: by 2002:a05:600c:1908:b0:40d:3452:e791 with SMTP id j8-20020a05600c190800b0040d3452e791mr179835wmq.127.1703193184340; Thu, 21 Dec 2023 13:13:04 -0800 (PST) Received: from [192.168.0.22] ([78.10.206.178]) by smtp.gmail.com with ESMTPSA id d17-20020a170906345100b00a26af0a6845sm520953ejb.9.2023.12.21.13.13.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 21 Dec 2023 13:13:03 -0800 (PST) Message-ID: Date: Thu, 21 Dec 2023 22:13:01 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1 0/2] w1: add UART w1 bus driver To: Christoph Winklhofer , robh+dt@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20231221065049.30703-1-cj.winklhofer@gmail.com> Content-Language: en-US From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzTRLcnp5c3p0b2Yg S296bG93c2tpIDxrcnp5c3p0b2Yua296bG93c2tpQGxpbmFyby5vcmc+wsGUBBMBCgA+FiEE m9B+DgxR+NWWd7dUG5NDfTtBYpsFAmI+BxMCGwMFCRRfreEFCwkIBwIGFQoJCAsCBBYCAwEC HgECF4AACgkQG5NDfTtBYptgbhAAjAG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v4Isx2dEFh+/Q== In-Reply-To: <20231221065049.30703-1-cj.winklhofer@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 21/12/2023 07:50, Christoph Winklhofer wrote: > Hello! > > Krzysztof, thank your very much for your feedback! > > This patch contains a driver for a 1-Wire bus over UART. The driver > utilizes the UART interface via the Serial Device Bus to create the > 1-Wire timing patterns. > > Version 1 > You already sent v1, so this is v2: b4 diff '<20231221065049.30703-1-cj.winklhofer@gmail.com>' Grabbing thread from lore.kernel.org/all/20231221065049.30703-1-cj.winklhofer@gmail.com/t.mbox.gz --- Analyzing 4 messages in the thread ERROR: Could not auto-find previous revision Run "b4 am -T" manually, then "b4 diff -m mbx1 mbx2" I still cannot find the changelog. Does it mean nothing improved? > - In v1, the driver requests a baud-rate (9600 for reset and 115200 for > write/read) and tries to adapt the transmitted byte according to the > actual baud-rate returned from serdev. Is this the correct direction or > should the baud-rate be specified in the device-tree? Alternatively, > it could make sense to specify the minimum and maximum times for the > 1-Wire operations in the device-tree, instead of using hard-coded ones > similar as in "Figure 11. Configuration tab" of the linked document > "Using UART to Implement a 1-Wire Bus Master". Depends, are these hardware properties? Are these runtime? What do they depend on? > > - In addition, the received byte is now protected with a mutex - instead > of the atomic, which I used before due to the concurrent store and load. > > - Receiving more than one byte results in an error, since the w1-uart > driver is the only writer, it writes a single-byte and should receive > a single byte. > > Changes: > - support different baud-rates > - fix variable names, errno-returns, wrong define CONFIG_OF > - fix log flooding > - fix locking problem for serdev-receive and w1-master reset/touch > - fix driver remove (error-path for rxtx-function) > - add documentation for dt-binding So this looks like changelog. Please make it explicit - move it to the beginning of cover letter and say "changes in v2". Best regards, Krzysztof