Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp845135pxb; Wed, 13 Jan 2021 18:08:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJzZNXVjDbK8gFVZ3u0Th3HddkZ8lVZzMCuO74Bn7yfgsgTAtxb0oC9VoXgSYj/RYXNuQrG7 X-Received: by 2002:a17:906:bc9b:: with SMTP id lv27mr3487126ejb.505.1610590099359; Wed, 13 Jan 2021 18:08:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610590099; cv=none; d=google.com; s=arc-20160816; b=Mm5X4SqNSmfnxzmXT8ViGa3JQ1diBFZvY2QSjx1+slWsAj94FZXV3KxsV5rwZku2Y4 MDnoqhb7yV2IvJNINvxdCHBJbBf+jXoAhbnmnnNr4EfJrtBV0SN+/Exzaxw3CHF3azWH 6sYeVRp52fRNMbIKpAfnqOM1HZgmA+VQXmmBallEbR3MJKOvwNQ3j++vifrFpy6qcjPU EcbK2v5NtfBvrbuKGHGlFisBmq/yce2xeiZwtgb00Y1++OkeyD+SCZ5VJt7alF+ieWOE BVSAm5ZCyqO9h4bcoV/J6dw9vnCjYRbvBaEMyFTuB5ToiYkLqkfhCEcmtbUet0kZVSC5 9s5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date; bh=pKo4sS+3G+2nJTwTkKzfmIaty86Qgp2KS5NDZdXBK3M=; b=GheJfa/xnUHVNF6jxkq4vysskwFT9v3VxK4trPsYNpA6eKXxk3PWuppJzVPU/5YXCi XbgA6y1yQyCk5VZSAv8vjd7dl90fkNXBn8RktT0oNNY2VDj6CE4yTkLRIO6Pebd+/Il8 SqPQaz5tXoTPqaQvmfdLfiAGpVLesUHnokM6RRUnyF41EJ/cQUv0fzOsa1R8p7zIeuEQ M98Qv7srmLtBlpGXY7M77+l09vb2JQbKYvRLajNeDvIwczMEnxBuSnTRzr3cZ81At9H3 uVdSf+ji+2FLB1013cW/0EXVQJKExxAxLZmQk/NRCCOZzBaUPRTuUdM1rsyRAw/yQ02Z 5Upg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id zh12si1690997ejb.148.2021.01.13.18.07.56; Wed, 13 Jan 2021 18:08:19 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730176AbhANCHK (ORCPT + 99 others); Wed, 13 Jan 2021 21:07:10 -0500 Received: from relmlor1.renesas.com ([210.160.252.171]:4240 "EHLO relmlie5.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729776AbhANCHJ (ORCPT ); Wed, 13 Jan 2021 21:07:09 -0500 Date: 14 Jan 2021 11:06:17 +0900 X-IronPort-AV: E=Sophos;i="5.79,345,1602514800"; d="scan'208";a="68941282" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie5.idc.renesas.com with ESMTP; 14 Jan 2021 11:06:17 +0900 Received: from mercury.renesas.com (unknown [10.166.252.133]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 82B884011439; Thu, 14 Jan 2021 11:06:17 +0900 (JST) Message-ID: <87czy8p9cg.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto To: Rob Herring Cc: Frank Rowand , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] of: property: add port base loop In-Reply-To: References: <87pn29pc5w.wl-kuninori.morimoto.gx@renesas.com> User-Agent: Wanderlust/2.15.9 Emacs/26.3 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob Thank you for your feedback > > In such case, people want to have port base loop > > instead of endpoints base loop. > > This patch adds such functions/macros. > > I'm a bit hesitant on these too. A driver should generally know what > each port # is (since the binding has to define them), and it should > just request the port (or its connection) it wants. At least that was > the premise behind of_graph_get_remote_node() and the cleanups (mostly > DRM drivers) I did to use it. I'd rather see things move in that > direction. I'm working for ALSA SoC now. To use ALSA SoC sound, it needs at least 3 drivers. The purpose of "Card" here is for glueing SoC and Codec. SoC <-> Card <-> Codec If board/platform needs special handling, user needs to create specific Card driver. In such case, it needs to know detail of each ports. But many cases, we want to use generic Card driver. Because it is generic, it don't know how many ports are used, and endpoint base loop is not enough for it. This is my motivation for this patch. > In any case, this needs a user before merging. OK. I will repost it again as part of above patch-set. Thank you for your help !! Best regards --- Kuninori Morimoto