Received: by 2002:a05:6a10:8395:0:0:0:0 with SMTP id n21csp601386pxh; Tue, 9 Nov 2021 16:00:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJwrQzLRoetUrD+l5px0GTrj7cvkpIpMHa0v2E/xoxlrRVfUZubzEtyvi+YDyTvnU8QtlHPj X-Received: by 2002:a05:6e02:1c0e:: with SMTP id l14mr8208554ilh.8.1636502431721; Tue, 09 Nov 2021 16:00:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636502431; cv=none; d=google.com; s=arc-20160816; b=ta05sD+Zely12Kkx3Sgxxs16VOl0i2FuqE97O+qQd5BSKqmXUqu6CHusxNT151tqVo +2wWSGUopfrsRN8XQw2XunaTbGcZ1+O7OrLjYOoD3BkJXvI6KWUbkcHi6WHsdc2l3Ttw bN3kNcTnstUPNU56OFxIw5T2E6ZgPvBZQhbRYlxUI8JDrToTs9PO/8GGk4JTt2Pp7EEC W9phe/gJK22CqPWtXsrwty6SoGL029v1cgVznelxQ1KgBcsyFz/ZDoygs7m7675J2Qbw b0Du2OLjgyQCh1L7owBjQtPio5DekeML98NeLaXphzmQ+TmE+4VmYrab/5hxNuPXpfCt zpXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=LhDgqmajfz71vOYSGsDh9gMUO7ALBdgAMuleFHkhVRE=; b=pWXSmKhkoamOl5DfXaaB1LmOj1sya7gR5UVVhAVX/EcmcjqWwsA53yvpzlCQu4kqOD Q5RVN2XF7oYq9uYXF0IxQO3W32SVku0fFdDPO4UW2rvYZnGYX4v2WXK1R2lPnfTlLsNQ XljckZiU3cIW68eg3nPae56MCtRdwjaxwgBKA9cDnZ5MAfiOnwyfxJCKSG2peOrJx9cJ i/3n8Pi2YU+Lk7seKhZ1MzlMyj6te4vdkxERHoiNyeP7JR3nk+wGH/Ul/zRlLiGsIzAd ucpArWJjqCt4hYCzNVnGrji4kPMhTujrfp9gcfShYEAm2sq7Ana9jfkMmhVyRSppk9RE rJ6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=TeIK4K0J; 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 i15si29102244ion.80.2021.11.09.16.00.19; Tue, 09 Nov 2021 16:00:31 -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; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=TeIK4K0J; 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 S235750AbhKIP0n (ORCPT + 97 others); Tue, 9 Nov 2021 10:26:43 -0500 Received: from alexa-out-sd-02.qualcomm.com ([199.106.114.39]:19319 "EHLO alexa-out-sd-02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234526AbhKIP0n (ORCPT ); Tue, 9 Nov 2021 10:26:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1636471437; x=1668007437; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=LhDgqmajfz71vOYSGsDh9gMUO7ALBdgAMuleFHkhVRE=; b=TeIK4K0JTNorUsiwPwZwoAGRBmLiCwdqXarvIL6/lsKSeslP7i+DSAm5 FOpobIxpW3HemsPqXFd6M7MefewILap3b5pE8Y30QDoDGN810AjLwO9nR ygfAIzZEDO5j876yfLrrtkX+kXNI2C4Z/+KDv0G2y2Y4wsBI57byusRwT Q=; Received: from unknown (HELO ironmsg-SD-alpha.qualcomm.com) ([10.53.140.30]) by alexa-out-sd-02.qualcomm.com with ESMTP; 09 Nov 2021 07:23:57 -0800 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg-SD-alpha.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Nov 2021 07:23:56 -0800 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, 9 Nov 2021 07:23:56 -0800 Received: from qian-HP-Z2-SFF-G5-Workstation (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, 9 Nov 2021 07:23:55 -0800 Date: Tue, 9 Nov 2021 10:23:52 -0500 From: Qian Cai To: Andy Shevchenko CC: "Rafael J. Wysocki" , Heikki Krogerus , Greg Kroah-Hartman , Laurentiu Tudor , "linux-acpi@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Felipe Balbi , , Lorenzo Pieralisi , Subject: Re: [RFC PATCH] software node: Skip duplicated software_node sysfs Message-ID: References: <20211101200346.16466-1-quic_qiancai@quicinc.com> <52df4a97-1132-d594-0180-132d0ca714d5@quicinc.com> <1269258d-db4c-3922-776b-f11e6a1e338e@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 08, 2021 at 11:43:54PM -0500, Qian Cai wrote: > Then, which functions do you suggest to replace with > fwnode_create_software_node()? In dwc3_host_init(), > > int dwc3_host_init(struct dwc3 *dwc) > { > ... > xhci = platform_device_alloc("xhci-hcd", PLATFORM_DEVID_AUTO); > ... > ret = platform_device_add(xhci); > > I am wondering if that we could solve the problem by avoiding > "xhci-hcd" string here which would unfortunately clash with > xhci_plat_init() as mentioned before: Okay, I suppose that name has to be "xhci-hcd" to match the dirver name. Otherwise, the below path did not run to create "xhci-hcd" either. I noticed that the regression was discussed a few months ago and leave it as is. https://lore.kernel.org/lkml/e9bc1397-99b7-a57e-4860-80d146848e2c@nxp.com/ Alternatively, we might revert the commit 434b73e61cc6 ("iommu/arm-smmu-v3: Use device properties for pasid-num-bits") started to use device_add_properties() in iort_named_component_init() which probably does not look pretty either. I can't think of any other ways to avoid refactoring at the moment. > > sysfs_create_link > software_node_notify > device_create_managed_software_node > iort_named_component_init > iort_iommu_configure_id > acpi_dma_configure_id > platform_dma_configure > really_probe.part.0 > really_probe > __driver_probe_device > driver_probe_device > __driver_attach > bus_for_each_dev > driver_attach > bus_add_driver > driver_register > __platform_driver_register > xhci_plat_init > do_one_initcall > kernel_init_freeable > kernel_init > ret_from_fork