Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp1312756rdb; Sat, 23 Dec 2023 01:55:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IG+2Eo5hm1/vk5b7D3QpQN4ZwBiEQiPwzZSNEFmK5loPzN/4SZ6SNV1W8pa9t1CMdbXm67s X-Received: by 2002:a05:6214:5d1:b0:67f:adb0:f045 with SMTP id t17-20020a05621405d100b0067fadb0f045mr1169490qvz.106.1703325301182; Sat, 23 Dec 2023 01:55:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703325301; cv=none; d=google.com; s=arc-20160816; b=FaZVfHAFPV8mszQGn1fG7NYXwQpv81mEXOSVlPW8zrrux5Epy2SdkCfJ8Fbjjtzm4/ qalcMB91LDx9qxffz3HxTrktkAAbgp3ef/N/Xo6PhVeYvBlP2Q92DB9o9FKNewCXkhl1 jEj2+eRXmnGyKKU6iqRiRSECucQ+QQbotqKGeXyeVQc+AvUpzNjPt1GDz8b46G4JcsDZ yYAEveOt6XEb/jqVL5Vk9vG0yXy8lz6JhKKG2qpTcDosv+am8ZYco49YORw1BGcPl+Z/ I6WIzDPleXCSvnqIrTvcd+0Ou56AZBPtIgr0JX/EGuCAZ09K8Ev9uzkVyp98ZUX1jIt/ c4RQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=bHzDFdj6AAq1EkhQ9b2oKbYVeVHhqzNqLXJeReuch38=; fh=OehZo7FOO6WEmaEdXMb8GBlRrGKDl2LycDKONlRwpjs=; b=sb3352gK5u/aYLeD7HN4kinlrfz1Ue6NxtIywf6wafRSjt5Jy9eeWSY7zVTwUAsIHF IZLOJa2MCOFY1JLc3raMF5B5oRIKcStkqB5OghNw9s2eXVJu8luPIw+qtSceSNiVz8Zp 6AlgTtTU/OuN13/jQYzizBpp2rJVEYHq3kzWTeLkvCX4eu8omIburbIYhGphFyDK9Pgs Kg/g6DR9OqdWL4smOfOg91+d6RiG9IM8Gr+zGYEntuXNEh5HWoUKdKMMcvUlX0nWSOkI DNcCpAhdIy7vuLrj+M8R8isXpmtryhGEK4vBw6Ocyjr8N/0+6WJOWkEzfk3eh7ZGzN3M Dmyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ZsulTFzY; spf=pass (google.com: domain of linux-kernel+bounces-10365-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10365-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id c14-20020a0cca0e000000b0067f9b995c84si2639685qvk.447.2023.12.23.01.55.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Dec 2023 01:55:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-10365-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ZsulTFzY; spf=pass (google.com: domain of linux-kernel+bounces-10365-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10365-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id EBC001C2147E for ; Sat, 23 Dec 2023 09:55:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CDC31946D; Sat, 23 Dec 2023 09:54:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ZsulTFzY" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ej1-f48.google.com (mail-ej1-f48.google.com [209.85.218.48]) (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 9AD609453; Sat, 23 Dec 2023 09:54:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-f48.google.com with SMTP id a640c23a62f3a-a2335d81693so452972066b.0; Sat, 23 Dec 2023 01:54:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703325290; x=1703930090; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=bHzDFdj6AAq1EkhQ9b2oKbYVeVHhqzNqLXJeReuch38=; b=ZsulTFzYRFPNei18xnwpjCg3Xv0qL5miYtOzb7UEmnzaRZZSmbB3RzGWFweuzc7ZBK scEKlHvQlaS9ZfHTlcIB4k7PgF+WMLW6v1gdzsWcpab/OibP2G4UwES5bMkS0XmQJFMA EYCfxHZlNPuvdKdknOECUMa3iMh9YFct+t/tb8QCKCUuEGW9jnL9Dmk37LR/dh1fBiO1 Z+OtpcExFXb2Z97cgZ6T6o7QJhVQ4FMTEoSSSfdgNI2TYi6loB98LQfuM7L0l/Tv5W5R oSO/dPYcLeDoRzUtUNibPRVk8jAnS5JCQjnks/HTRb0kMpXfRaZkK/hmNAYZpWBCOoLS tIkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703325290; x=1703930090; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=bHzDFdj6AAq1EkhQ9b2oKbYVeVHhqzNqLXJeReuch38=; b=MpO8fTxBrItgzPF2IBJUYGZvZMvkvvkEYhk+aTSOm0c9PZaZ0xp+mJNVeoQ9GQ++QW 2VB8VXz0JxEQwtRNtbp0WcuDZyPtWYJ6KJYi4JbsYESFHR6h3HNJL3ldVJYQ5nIVQGBm 5tbKNH7lFFNupJ6arQ3uhd2+ijyHC0zdYK5vtHCR4wk6iEcHEXmCwq6HoKN1FNxaR/dM oSqY1CRNIKvcPdGavjuS+tWmwYiZI5Vxoy/whB8h0yOK3lP85j+jAbsMBF+kLY6LoCaN 47H/16ijWWe54+T1DPG/7X3GgRueBi1c+DTWYZ74QalgxmjiDT1oc9ruHs9NVHOV6det P0pQ== X-Gm-Message-State: AOJu0YzeagYOZipGZ9fuRtBFuZhSWDPAMB11djxEIfZk6r/IsbJ9Kq3G DM2kGH4b+EEWyjro6bfTdps= X-Received: by 2002:a17:906:c143:b0:a1c:4c3e:99e2 with SMTP id dp3-20020a170906c14300b00a1c4c3e99e2mr4320683ejc.22.1703325289779; Sat, 23 Dec 2023 01:54:49 -0800 (PST) Received: from cjw-notebook (188-23-116-43.adsl.highway.telekom.at. [188.23.116.43]) by smtp.gmail.com with ESMTPSA id cl2-20020a170906c4c200b00a19afc16d23sm2898160ejb.104.2023.12.23.01.54.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Dec 2023 01:54:49 -0800 (PST) Date: Sat, 23 Dec 2023 10:54:47 +0100 From: Christoph Winklhofer To: Krzysztof Kozlowski Cc: robh+dt@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 0/2] w1: add UART w1 bus driver Message-ID: References: <20231221065049.30703-1-cj.winklhofer@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Thu, Dec 21, 2023 at 10:13:01PM +0100, Krzysztof Kozlowski wrote: > 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? > > Sorry, I will fix the patch and resend it. > > - 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? > Ok, the timing constraints came from the 1-Wire protocol, so DT makes no sense. Probably it would be nice to tweak them for different 1-Wire slaves via parameter to the driver - however, I will left them hardcoded for now. Thanks! Christoph