Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp1317521pxv; Fri, 23 Jul 2021 05:36:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxYibqyfYPSBR66ddLoHwrLY45hn9cKKhyq9ydcWIxzOnPbJn9ysNUy4RJFwCtVmiu2lQJd X-Received: by 2002:a92:d083:: with SMTP id h3mr3467265ilh.157.1627043762742; Fri, 23 Jul 2021 05:36:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627043762; cv=none; d=google.com; s=arc-20160816; b=V7eqoB1XlkDuQuye2Ph0vH/PNI/0L8bVbR1bQNMNTA/2cz36DmfnyiDqUDxLYkZpqt gT0uYHbYGBai1zt6btRNRcwJuruPcd17dScto4PD698uCKe273tTWpUX6LsyOk+VsZUn IcYZh7vE//C/AOc39dTceJVw5itRnN/6D95ojOvm1cyaj74ghuzQ+fU8Wj5DZlS36Iwf VelymU6xydUN+76hZQ0QIuB3YSqRaQbcrrzL6reYfAry5CU1BDkHcDAcaFWagWnt1dDH a4Y/Tjme/47k3sXGVh++fR5gWE0v6FvoP5jiYDS07GLMHsT94sm4aLRbGgckcMeBuww0 2uTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=RV4WO9cbpWfEhWkk7D/YF8o/ayylvo0LKQ1vNXvsilM=; b=INl8Rt2wqJDSxG3VQamtLFpRoOHbO/K1LhVqSG/pX5RX0K1m4+fd2PmbTrY9U7pSpl ee5yyS13EfcBIBewYLFOjlKHRFrejtNwsiPqYw8IW/9CjJ0cJoSn6TBCJsibWgZbjt7G Tv5ixWO3ibKxIb5TCkgWYnQAbVS1EPep9k/tEOh/QI6Iq7f8EtvW1mCmXadOyDDK0FjS pvV7DSU0k/SiXjEs/5kQ8NwuKzH1jmHoiuZd0uYAuUkKVdabPviO0lJID3/IV7gRS2P1 gD8vQePmgvLKrFvSLyxZ8pa4b1Ij1JOh/87cIBDQuzkQvmxHmIS0DHISyU2oZMVgltOy zjnQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w17si30491228iot.47.2021.07.23.05.35.51; Fri, 23 Jul 2021 05:36:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234774AbhGWLx1 (ORCPT + 99 others); Fri, 23 Jul 2021 07:53:27 -0400 Received: from mga04.intel.com ([192.55.52.120]:60302 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234977AbhGWLxV (ORCPT ); Fri, 23 Jul 2021 07:53:21 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10053"; a="209978281" X-IronPort-AV: E=Sophos;i="5.84,264,1620716400"; d="scan'208";a="209978281" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jul 2021 05:33:42 -0700 X-IronPort-AV: E=Sophos;i="5.84,264,1620716400"; d="scan'208";a="471498282" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jul 2021 05:33:40 -0700 Received: from andy by smile with local (Exim 4.94.2) (envelope-from ) id 1m6uMw-00HMP6-Cz; Fri, 23 Jul 2021 15:33:34 +0300 Date: Fri, 23 Jul 2021 15:33:34 +0300 From: Andy Shevchenko To: Daniel Scally Cc: linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org, rafael@kernel.org, laurent.pinchart@ideasonboard.com Subject: Re: [PATCH 0/2] Check for endpoints in fwnode->secondary more sensibly Message-ID: References: <20210722201929.3585671-1-djrscally@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210722201929.3585671-1-djrscally@gmail.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 22, 2021 at 09:19:27PM +0100, Daniel Scally wrote: > Hello all > > A while ago I patched fwnode_graph_get_endpoint_by_id() to check for endpoints > against fwnode->secondary if none was found against the primary. It's actually > better to do this in fwnode_graph_get_next_endpoint() instead, since that > function is called by fwnode_graph_get_endpoint_by_id() and also directly called > in a bunch of other places (primarily sensor drivers checking that they have > endpoints connected during probe). This small series just adds the equivalent > functionality to fwnode_graph_get_next_endpoint() and reverts the earlier > commit. Makes sense to me (one nit-pick to patch 1, though). Reviewed-by: Andy Shevchenko > Daniel Scally (2): > device property: Check fwnode->secondary in > fwnode_graph_get_next_endpoint() > Revert "media: device property: Call fwnode_graph_get_endpoint_by_id() > for fwnode->secondary" > > drivers/base/property.c | 30 +++++++++++++++++++++--------- > 1 file changed, 21 insertions(+), 9 deletions(-) > > -- > 2.25.1 > -- With Best Regards, Andy Shevchenko