Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5908540rwl; Wed, 22 Mar 2023 04:07:54 -0700 (PDT) X-Google-Smtp-Source: AK7set8YyoS52JESoMhYTKx5gS2RwO7+RuORDoauIkFoP7T3dYJdRR1TmQS3kC73Uozg2UIHofVL X-Received: by 2002:aa7:8e8e:0:b0:627:fb40:7cb4 with SMTP id a14-20020aa78e8e000000b00627fb407cb4mr3289263pfr.30.1679483274238; Wed, 22 Mar 2023 04:07:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679483274; cv=none; d=google.com; s=arc-20160816; b=ls2WECF1+1kwRyuMhOj1NGOViBPtS+SlTezNRIY9n69djvCKL/7DyRfUXfsbOHG6rG 3t2Jv491vVIi5dCloiKd+HEjNaN1KglTTr2QB05+iroL0uwNGUL5jLeL1o2fas3P9QGe 5+DBIKjURzMivnNt/lWWrZ0xDPyqSocbr6gUSwPgF129rTxIZqidlD+58otPP/zu71U0 xavyTB2UbkBjpQi0PMH1VJReJU0eLKqR9rDxtHO1Kb2dT3Mp95zn5AHTjkXnj/k7zTD5 1njK4DTkkUn3u2WzjOBjCPwQ5coFEXNnEHxNn1pZb+qnZ0cdSft5qsfm+vINnTlKieOA Pyag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:subject :from:references:cc:to:content-language:user-agent:mime-version:date :message-id:dkim-signature; bh=I9BZjSey1yXLeocjbsqhzGudA4US9Y+Kj5EuK+kqw+I=; b=m1S/cag8Cv00W8ORRfRyy8HeS0913wKD7RceJm0azOE3D/AtR8hfavd2S/eyf/r5Sn tjCV0xyzPHexxN2xLewGNztPd9c9tQpTaQEGNbuEKSVxTmon3s1x5Y6Vzlz6XEw1bnNJ TuxiE7ksNPyU1z0o8FSSjtPNjMCxQ8wy1FBPQONPU9WtgKf5GskD4HzKlqv4Vf7Dkzd+ J4fovawcxUewgxieQNGO/pKEQroeJnyB/vByK4ICVGTFFERFoEoWCQ07Y3Rg9NmhZTwp 6iRMRDXl4ZaNccGNig6yooVGWkVjwSI8fowRz2GvdJb7LSbSCBtO3g6XpwY0IEfzT24U K+1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=iroviQ2q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b35-20020a631b63000000b00509d00f18efsi15315268pgm.112.2023.03.22.04.07.42; Wed, 22 Mar 2023 04:07:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=iroviQ2q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S230172AbjCVK7k (ORCPT + 99 others); Wed, 22 Mar 2023 06:59:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229645AbjCVK7i (ORCPT ); Wed, 22 Mar 2023 06:59:38 -0400 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B29D60436; Wed, 22 Mar 2023 03:59:37 -0700 (PDT) Received: by mail-lf1-x136.google.com with SMTP id q16so11955224lfe.10; Wed, 22 Mar 2023 03:59:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679482776; h=content-transfer-encoding:in-reply-to:subject:from:references:cc:to :content-language:user-agent:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=I9BZjSey1yXLeocjbsqhzGudA4US9Y+Kj5EuK+kqw+I=; b=iroviQ2qk+WB3LQFiLTgKmubA8HEs+mHubO46x3Ly8/I+Bs6Rz4q3z+Lgq8w75uqKP Trgd9UYL936dj6m0iAOw/e/9bv0RSYmMb9Ay7UPE+1gKYGZGZI5E4bQvZU00Vpb6nL9n DcUCXcs1MFFO59G6/1oNLsHZhUd5HmngKuspimY2VsqEOJlh8GYmWskQbIARBLKI/paj w+tzVq0/4XXswBgPDUBgLFYf++RJEwJA9+33RdZHbAV7VyxfA024QFI00asWH1iAym7p qxG1Q9J3mGXL4Xo6giJn1+M6OeILbG7/KUwnx5K16pq+/tJ0nUeM3WyYmIdwKdcGq2Xd l9VA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679482776; h=content-transfer-encoding:in-reply-to:subject:from:references:cc:to :content-language:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=I9BZjSey1yXLeocjbsqhzGudA4US9Y+Kj5EuK+kqw+I=; b=EjiSBsZb6CYrgX5zFnU0JfVgzROaXBLRTXIjPaa4/oCnscwgktlWzHBEiAO2BuOP8b UkgvfXiKF8/4dqI6Sa+4MPI5X2MoJTiwjCIiozU4e3/Lv9dGfa2FiG2Ee413lILeQsA3 J5FO7bgGP+/u4puPDQbrBuzuUu96hJGh5wJsXwpemogGdXWJQp+bu44OXRQmDqI+Y/Dd y0EJQdO97QAsphugTWPN49ph4Xbjsi1GpbkXiKNxphc6U9FzPAMwZp/ZCbzO4AmobvTf hYPeTPul+vySlUP+oXK62NkQ98xtTHvvYD92cpFICsJy0n+zA+bEsJrrR3Os1hxP3r1Y 5w2g== X-Gm-Message-State: AO0yUKWxCIuX3rC5rJKjTbHw294+bmVn3neOACiUJ/VR+ubLlfOqrCf8 NMjfIcteTxkmY4KGIEqdpeA= X-Received: by 2002:ac2:4c92:0:b0:4e9:d158:d56b with SMTP id d18-20020ac24c92000000b004e9d158d56bmr1940622lfl.62.1679482775745; Wed, 22 Mar 2023 03:59:35 -0700 (PDT) Received: from ?IPV6:2001:14ba:16f3:4a00::1? (dc75zzyyyyyyyyyyyyyyt-3.rev.dnainternet.fi. [2001:14ba:16f3:4a00::1]) by smtp.gmail.com with ESMTPSA id s1-20020a19ad41000000b004d023090504sm2543760lfd.84.2023.03.22.03.59.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 22 Mar 2023 03:59:35 -0700 (PDT) Message-ID: <8fe9fea1-b7b8-ee46-9534-de7e2b1726f9@gmail.com> Date: Wed, 22 Mar 2023 12:59:33 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Content-Language: en-US, en-GB To: Javier Martinez Canillas , Andy Shevchenko Cc: Matti Vaittinen , =?UTF-8?Q?Noralf_Tr=c3=b8nnes?= , Masahiro Yamada , Randy Dunlap , Shreeya Patel , Krzysztof Kozlowski , Jonathan Cameron , devicetree@vger.kernel.org, Zhigang Shi , Maxime Ripard , Heikki Krogerus , Lars-Peter Clausen , Paul Gazzillo , Maxime Ripard , =?UTF-8?Q?Ma=c3=adra_Canal?= , Rob Herring , Dmitry Osipenko , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, kunit-dev@googlegroups.com, Stephen Boyd , Emma Anholt , Liam Beguin , Greg Kroah-Hartman , Maarten Lankhorst , Thomas Zimmermann , Daniel Vetter , David Gow , "Rafael J. Wysocki" , Brendan Higgins , David Airlie , linux-kselftest@vger.kernel.org References: <87edphnkg1.fsf@minerva.mail-host-address-is-not-set> From: Matti Vaittinen Subject: Re: [PATCH v5 0/8] Support ROHM BU27034 ALS sensor In-Reply-To: <87edphnkg1.fsf@minerva.mail-host-address-is-not-set> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/22/23 12:34, Javier Martinez Canillas wrote: > Andy Shevchenko writes: > > Hello Andy, > >> On Wed, Mar 22, 2023 at 11:05:23AM +0200, Matti Vaittinen wrote: >> >>> Revision history: >>> v4 => v5: Mostly fixes to review comments from Andy and Jonathan. >>> - more accurate change-log in individual patches >> >>> - copy code from DRM test helper instead of moving it to simplify >>> merging >> >> 1) Why do you think this is a problem? >> 2) How would we avoid spreading more copies of the same code in the future? >> >> >> 1) Merge conflicts is not a bad thing. It shows that people tested their code >> in isolation and stabilized it before submitting to the upper maintainer. >> >> https://yarchive.net/comp/linux/git_merges_from_upstream.html >> >> 2) Spreading the same code when we _know_ this, should be very well justified. >> Merge conflict is an administrative point, and not a technical obstacle to >> avoid. I definitely agree. This is also why I did the renaming and not copying in the first version. In this version I did still add the subsequent patch 2/8 - which drops the duplicates from DRM tree. > I believe this was suggested by Maxime and the rationale is that by just > copying the helpers for now, that would make it easier to land instead of > requiring coordination between different subystems. This is correct. > Otherwise the IIO tree will need to provide an inmutable branch for the > DRM tree to merge and so on. Or, if we carry the patch 1/8 via self-test tree, then we get even more players here. Still, I am not opposing immutable branch because that would allow fast applying of the patch 2/8 as well. Longer that is delayed, more likely we will see more users of the DRM helpers and harder it gets to remove the duplicates later. > I agree with Maxime that a little bit of duplication (that can be cleaned > up by each subsystem at their own pace) is the path of least resistance. I'd say this depends. It probably is the path of least resistance for people maintaining the trees. It can also be the path of least resistance in general - but it depends on if there will be no new users for those DRM helpers while waiting the new APIs being merged in DRM tree. More users we see in DRM, more effort the clean-up requires. I have no strong opinion on this specific case. I'd just be happy to see the IIO tests getting in preferably sooner than later - although 'soon' and 'late' does also depend on other factors besides these helpers... Yours, -- Matti -- Matti Vaittinen Linux kernel developer at ROHM Semiconductors Oulu Finland ~~ When things go utterly wrong vim users can always type :help! ~~