From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4889BC433E0 for ; Wed, 24 Jun 2020 15:53:20 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 13D8E206F7 for ; Wed, 24 Jun 2020 15:53:19 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="SXaQokfy"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="oFBN12aB" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 13D8E206F7 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:Message-ID:From: References:To:Subject:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=jVznMf4IV5fq6rIzS2G8PdaQybUr4SxLGwzFPkiPq6Q=; b=SXaQokfyfYFPTGI/Q6ZjpstQ9 QALnfvuJU0MU3Q9VFD66eZWj/N3QCYXhWj99VEQ53Zy+ihw+/pF1LxUssXh2NSvkJjGFBKaq2MLv4 DlM7kigQGVW2+VDfEdIyFP66uhQbggu/oRlyfZUZlQAtOSyUQBdT7gQkc2G0jy0rNfN/w7tOEPLzb EM6LprmFjld1BSh2u0Uye1azGIG/OGHti8zhgexdCmVRD7sBGn9lYio+tuDz5s4ArMUuU5rw+A9W5 6ypL8XdItSCfQuBrvX0cd/n/ehBXrNMkxWXt8kwv05GWHywIB/KhbLG//3SNiQdlIhi7ZE55g75jX 3CwH40nkg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jo7gb-0001tO-Eh; Wed, 24 Jun 2020 15:51:41 +0000 Received: from mail-qt1-x841.google.com ([2607:f8b0:4864:20::841]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jo7gX-0001q7-5i for linux-arm-kernel@lists.infradead.org; Wed, 24 Jun 2020 15:51:38 +0000 Received: by mail-qt1-x841.google.com with SMTP id g13so2047801qtv.8 for ; Wed, 24 Jun 2020 08:51:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=OCTRPctFFpx+aJELBCUccAzQ7DxE/nJNw3rXnEquQLM=; b=oFBN12aBhFMNm20MuO5zZdopwr4turKFOKrM2v9T/yy/tIjWIqwNmv9lhfJ7GEo1nJ 3JhvlgHrTy6opzdGbl0JEJjwOfGSj6MB15M7ASOJ8eLdH9dTMQ6T0IecnVoPoLCxNw6F 47wJdrzDzY62KMrt9DuAE+vrfnfHXh9aG0vOuMqNvW/bsYhFH27yshh8OZ5qXgkHSDU+ e0jcliItYSTHk4yTlfXACT8Gm2F6DkzWpIKgMiGBWuVrEFbJ9QxY35173+gzBD9O11H3 wawthk3A4yMRakY/o7nv3iqLB3RSPFZGL9txRkPlwW8wbgV0wMxwwEmDoBxyDMm/7Olo W5Lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=OCTRPctFFpx+aJELBCUccAzQ7DxE/nJNw3rXnEquQLM=; b=qYveJXAMSnJRA3I/XO5Vw9wuvvX6bxLPkJn9RqaSVJX2e/mW0VRDfVYg97BQ+o/ux6 gl0e2HCeLuMAE7rrKbaEaj/qk+d+SJ/pUIZ6w8wMO8JCS3WnnM6psWH6w4mpehWuTOE2 urbnEk2WqkaLaGCOzi7MXW6W9mwojKHmoiNlgJwtBQlewfo1HOaGIUkts5d/6PdbbMPD 0RopK54bSU9yJGvlvBbA4sqHmjiIaxmrdhXVjlxapgfF92UceJX+dVoguQF5Z/em8J8s Ajq2V2dnPFb8bqxa2temBGuoWJeQif+q5gFcZWBkkzF/8wxeYistO5YnI0m1j/bqxsvy Kk2Q== X-Gm-Message-State: AOAM530EEF3qdbXjzTmzsUxh8qCftIv2Ho9XHMyxFBgawJUdsJzslBSK Y91L9q23iTYBA+32lbsVoEU= X-Google-Smtp-Source: ABdhPJy1e1vJJM+J98uJc4itRbEG5EBXp0uiQVb9aNso0GWU8UqdxCPUrbhjAJk/YUX7fswV7L2vvA== X-Received: by 2002:ac8:19cb:: with SMTP id s11mr27364417qtk.105.1593013895675; Wed, 24 Jun 2020 08:51:35 -0700 (PDT) Received: from [192.168.1.46] (c-73-88-245-53.hsd1.tn.comcast.net. [73.88.245.53]) by smtp.gmail.com with ESMTPSA id q47sm4143309qta.16.2020.06.24.08.51.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 24 Jun 2020 08:51:34 -0700 (PDT) Subject: Re: [PATCH v2 1/3] mfd: core: Make a best effort attempt to match devices with the correct of_nodes To: Lee Jones References: <20200622085009.GP954398@dell> <20200622151054.GW954398@dell> <037c0fd2-df35-5981-7ef2-c6199841650d@gmail.com> <20200622191133.GY954398@dell> <20200623064723.GZ954398@dell> <83f2be78-1548-fa2b-199a-2391b2eceb47@gmail.com> <20200623195905.GB954398@dell> <6684101d-1013-2964-c247-394f9b12a194@gmail.com> <20200624074631.GE954398@dell> From: Frank Rowand Message-ID: Date: Wed, 24 Jun 2020 10:51:33 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <20200624074631.GE954398@dell> Content-Language: en-US X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, gregkh@linuxfoundation.org, broonie@kernel.org, michael@walle.cc, linux-kernel@vger.kernel.org, andy.shevchenko@gmail.com, robh+dt@kernel.org, linux-arm-kernel@lists.infradead.org, andriy.shevchenko@linux.intel.com, robin.murphy@arm.com, linus.walleij@linaro.org, linux@roeck-us.net Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 2020-06-24 02:46, Lee Jones wrote: > On Tue, 23 Jun 2020, Frank Rowand wrote: > >> On 2020-06-23 14:59, Lee Jones wrote: < big snip > Thanks for the replies in the above portion. >>>> But yes or no to my solution #2 (with some slight changes to >>>> make it better (more gracious handling of the detected error) as >>>> discussed elsewhere in the email thread)? >>> >>> Please see "[0]" above! >>> >>> AFAICT your solution #2 involves bombing out *all* devices if there is >>> a duplicate compatible with no 'reg' property value. This is a) >>> over-kill and b) not an error, as I mentioned: >> >> As I mentioned above, I set you up to have this misunderstanding by >> a mistake in one of my earlier emails. So now that I have pointed >> out what I meant here by "more gracious handling of the detected >> error", what do you think of my amended solution #2? > > Explained above, but the LT;DR is that it's not correct. I don't agree with you, I think my solution is better. Even if I prefer my solution, I find your solution to be good enough. So I am dropping my specific objection to returning -EAGAIN from mfd_match_of_node_to_dev() when the node has previously been allocated to a device. > >>>>> It also suffers with false positives. >>> >> >> Sorry for the very long response, but it seemed we were operating >> under some different understandings and I hope I have clarified some >> things. > > Likewise. :) > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel