Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2640583rwd; Mon, 22 May 2023 01:53:43 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5hFXRvYhzax+Ihv/r3udkkJuTjVHmCVq+AXwgF28T9M2bO0hm5XswSooYaguyNz4xjksZ0 X-Received: by 2002:a05:6a21:6811:b0:106:c9b7:c932 with SMTP id wr17-20020a056a21681100b00106c9b7c932mr4545111pzb.1.1684745623632; Mon, 22 May 2023 01:53:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684745623; cv=none; d=google.com; s=arc-20160816; b=lBZO6rgqmSiUYBfwkwOkOOA6qPS2FGftZd19p1b3+mhHf/BNX9NbFgG12DKlmixPez q4mDDKoIYipTqan1qCFHblWR1nn8XNKrPPFGPoDcJ4oYLL2bA+prQF7goXLg2Iv4L2Dj HnmpBhZrynQwIao+qy0feP5b8ir2y+h689f8JC/ACFY5kH0hYHe147GDagj/ZV2mlyGH hJhkIQgKsFNhaD4l5jJZE5wh33ewaBWZlrR3XM3Fh252kep1HvA0rWmHkJU0szrZRgSk vAYDjvzVviTR5wxKyPUg2vqg2EefbjH5IMDxmip6xj+MmVqmrdUyLewuWROSmhxy7lC2 W1lQ== 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:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=RRCMQPba22gphE+yEe+ARCBFhwsSZYsTb9sKXq+NJRM=; b=VH+83gjG9hFU6Oit6W3TqJIfBrOpdKs0OswFidRU4Fm8D2VxVpaZlC9nzgkM9sBAnf zhVeTseGpIivo4EGs1xlEILRQlzSGgeSwejwI7/KZOC8MAaWfQzVdjl/gx/3EvXWBbi+ 2Yrw155pGxO6D1NWvhZZmaQ9IWvuphVEW6XHM7CGTkxW7t/sH3UWzg+eapfQ0pd2z1sy uaFLP6xkcbEc8weeR1K5jPTnGuLCKo6JRF0Mc1bEZ3QFewmE4DN5/f+wLyPDOtlRWtj5 7yqDfYbEAUfqMDpyd3ucA66/xNWV/0zGmBKmXTqc2WLCFKmrJGJFal1fMz6qWajB4D9C 5zmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b="bb/7ytzX"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j186-20020a638bc3000000b005365cad903esi4516563pge.263.2023.05.22.01.53.28; Mon, 22 May 2023 01:53:43 -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=@rasmusvillemoes.dk header.s=google header.b="bb/7ytzX"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230186AbjEVIoS (ORCPT + 99 others); Mon, 22 May 2023 04:44:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229571AbjEVIoR (ORCPT ); Mon, 22 May 2023 04:44:17 -0400 Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 33E1FB6 for ; Mon, 22 May 2023 01:44:16 -0700 (PDT) Received: by mail-ed1-x531.google.com with SMTP id 4fb4d7f45d1cf-510d8b0169fso8085073a12.1 for ; Mon, 22 May 2023 01:44:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; t=1684745054; x=1687337054; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=RRCMQPba22gphE+yEe+ARCBFhwsSZYsTb9sKXq+NJRM=; b=bb/7ytzXxYkGjIUZxdrfHhlMdXTLgbYzgV1N3oWkJnByQMEOccwyCba6RmLgeMNgqo OEus+WqbwlfKjNQuLI09Are2Q1km1qtJq+VnVjc8ftLjfW9zCcjahAj//+RPTmKNRIRm u4kV8u+Iyj00/ezfPVZp2UIlDYGOjgf/9AFH8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684745054; x=1687337054; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=RRCMQPba22gphE+yEe+ARCBFhwsSZYsTb9sKXq+NJRM=; b=YF7N32QmDq7e0BBm0q9JPbDuUdR5/A997EbZEB8+aKvyrA3CLJRDVXszbaBw2LVb9P l8NxuGa99g+y42jyQNqYWXuZRxvGGq5RGA1Lmoh+OKBzDAOHrk+kbfX5M445tsr6m0UG X3X4j86vWkkQIDj/mDRnavePG77ZbFlX1JQK8TZUdEWjqPNu2WLNTM2wscMrjxR+r39C oeK7ZiyYlgLupQnHiFhnvDeciz1Ev3PjZ5TjmMnZ3dfabpTWM9qjXwoJ6D1svVAqfvBg oRzGHBkUVzjLdxRfO4SBCB15bWIpDetHZbd6gqyURhoq2H0S7L1T6vVwX++A6cLAz1UD STrA== X-Gm-Message-State: AC+VfDwxdwUpQf507wHuqr9N9Vjf2c/GL2AC6HLOMVIVIw8shW0QEcWK 3mytOi5cUcfhhar+IsJ6HeqolZDwzzxBpmh7+j8rRg== X-Received: by 2002:a05:6402:2ce:b0:50b:c4fb:770f with SMTP id b14-20020a05640202ce00b0050bc4fb770fmr7919446edx.34.1684745054601; Mon, 22 May 2023 01:44:14 -0700 (PDT) Received: from [172.16.11.116] ([81.216.59.226]) by smtp.gmail.com with ESMTPSA id v22-20020a50d096000000b0050e04125a46sm2840443edd.10.2023.05.22.01.44.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 22 May 2023 01:44:13 -0700 (PDT) Message-ID: <822d2741-32ff-fc73-28a5-25575ab3cc52@rasmusvillemoes.dk> Date: Mon, 22 May 2023 10:44:11 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH] iio: addac: ad74413: don't set DIN_SINK for functions other than digital input Content-Language: en-US, da To: Jonathan Cameron Cc: =?UTF-8?Q?Nuno_S=c3=a1?= , Lars-Peter Clausen , Michael Hennerich , Cosmin Tanislav , Jonathan Cameron , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230503105042.453755-1-linux@rasmusvillemoes.dk> <27fe41e402ea0d6ef42aa0ac80aa3d1488862cd8.camel@gmail.com> <6fcf4997-9d88-7e86-70f7-52f9d296bc6e@rasmusvillemoes.dk> <20230506191636.3cff4b24@jic23-huawei> From: Rasmus Villemoes In-Reply-To: <20230506191636.3cff4b24@jic23-huawei> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 06/05/2023 20.16, Jonathan Cameron wrote: > On Thu, 4 May 2023 12:08:53 +0200 > Rasmus Villemoes wrote: > >> On 04/05/2023 09.28, Nuno Sá wrote: >>> Can anyone have a working device by specifying that dt parameter >>> on a non digital channel (or expect something from having that parameter set)? >>> Or the only effect is to actually have some functions misbehaving? >> >> The data sheet doesn't say that the DIN_SINK should have any effect for >> other functions, so I'm pretty sure it's only the latter: some functions >> misbehave. >> >>> On the driver side, if it's never right to have >>> these settings together, then the patch is valid since if someone has this, his >>> configuration is broken anyways (maybe that's also a valid point for the >>> bindings)... >> >> Yes, I do believe that it's a broken description (whether or not the >> bindings specify that), and drivers don't need to go out of their way to >> validate or fixup such brokenness. But in this particular case, there's >> really no extra burden on the driver to not put garbage in DIN_SINK when >> a not-digital-input function has been chosen (the patch is a two-liner >> with 'git show -w'). > > If we can tighten the DT binding to rule out something that should not be > set than that would be good. Tightening bindings is fine - we don't mind > validation of bindings failing on peoples DTs as long as we didn't 'break' > them actually working. Well, I'm afraid I don't have any idea how to spell that constraint in the yaml-language (help appreciated). And I assume a dt binding update would be a separate patch anyway, so could you please consider applying this patch? Thanks, Rasmus