Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4616164pxb; Tue, 2 Nov 2021 12:46:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzsrbXz/1bPffquCL4k773BXatTB7GTTvQpsJKaoQYRsNh/O8+4UTLY00NNu9EVCTV7LXn3 X-Received: by 2002:a5d:83c7:: with SMTP id u7mr26885223ior.80.1635882389105; Tue, 02 Nov 2021 12:46:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635882389; cv=none; d=google.com; s=arc-20160816; b=nLZTqNN4LFaVnWv020aSB0HoxUQ2gMj+meOhk8X0WHrsD0ykpPwj6h5BSqT1AWjZ2A 50Zy+/wkX4neh94NdM6Ex3mix2XjPcBXr9AZspuhAhksP2IYWCQMH940QpMXknvlu0CM jH95jEiMnSCQhBMB59nx9CwFaXiOneRapSpMqSMPXzRweqxkzqG7XACguLiuabCwRTLl wpg/ppZO+nYKTAQe4vnLujkYzygf7wsdAievllX1iuZwzRzCyBCiVM+uRod1bVm4r/eG ipRh0l9vyxCdFox9RUJFVfkb9YklagyiIAECpHo59OpGadt3oo+yzrtzMYXCtpnp29zn F/dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=wf+If0x65Yy+o0SSEO3jAsZ2Konv0lsU7aUjVHqEeo4=; b=zJSveoTdEepoWq11D6uVlQDuJwBXuQQJMeN8pD0laxasXoTVbF6Zt26bsDNAwJbIHO 0t2VZ2jf7Cz1czrrdxfQA7837tY80kM+mJ5vO4cAOiwEg0GZAXHCq5WLEnXKUHkGTB1j Y5AsFOSlbXGxG5fAfnbY9x+v8Krq04ID589WzNqoUzDp0nWfzQTDB74G1vwfTQm19ICh N5Ig1lP2izqfsoa9gQzU7uP35pVckGkZzPGhvAXdDYxiwiVuDkPwddTeJE817UrtxLgt tFvr7pK/LZtivk6PuPtKlqFvLxRvc1cYBRh3338iPJ94T7Q8GkeQrCp88UZWVexA4Qbz 0vsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=vjaS8vm6; 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=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w11si5864380iov.94.2021.11.02.12.46.14; Tue, 02 Nov 2021 12:46:29 -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; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=vjaS8vm6; 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=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230366AbhKBTrV (ORCPT + 99 others); Tue, 2 Nov 2021 15:47:21 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:10664 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229684AbhKBTrS (ORCPT ); Tue, 2 Nov 2021 15:47:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1635882284; x=1667418284; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=wf+If0x65Yy+o0SSEO3jAsZ2Konv0lsU7aUjVHqEeo4=; b=vjaS8vm675Il9AuGTIVgdSUGRVUsjEQvD8cQ0xIr86WlkFOw2nu4PkPE TZuiy5KNFLF5T6MaDF9c8ukf29XpP5kXHqWPJRMleazDuzEP1iltBe7Jm ocH/Oj2+tkNTRYO+5Y7MIXW7bdLcxbT8icpE08aaKvkOvrWRPSaXfEme6 Q=; Received: from ironmsg07-lv.qualcomm.com ([10.47.202.151]) by alexa-out.qualcomm.com with ESMTP; 02 Nov 2021 12:44:43 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg07-lv.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Nov 2021 12:44:43 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.922.7; Tue, 2 Nov 2021 12:44:42 -0700 Received: from [10.110.22.220] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.922.7; Tue, 2 Nov 2021 12:44:41 -0700 Subject: Re: [RFC PATCH] software node: Skip duplicated software_node sysfs To: Andy Shevchenko CC: "Rafael J. Wysocki" , Andy Shevchenko , Heikki Krogerus , Greg Kroah-Hartman , Laurentiu Tudor , "linux-acpi@vger.kernel.org" , "linux-kernel@vger.kernel.org" References: <20211101200346.16466-1-quic_qiancai@quicinc.com> From: Qian Cai Message-ID: Date: Tue, 2 Nov 2021 15:44:40 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/1/21 7:51 PM, Andy Shevchenko wrote: > No, it’s not so easy. What you are doing is a papering over the real issue > which is the limitation of the firmware nodes to two. What we need is to > drop the link from struct fwnode_handle, move it to upper layer and modify > all fwnode ops to be used over the list of fwnode:s. Andy, this is my first time touching fwnode/swnode. After reading the source code for a few hours, I still don't understand the hint here. Specifically, what does the "the link" refer to?