Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1314282lqe; Mon, 8 Apr 2024 05:46:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWMFKR4mMbd+uMsg66j7aHuCuGb75h20AQzqLt9m85zkK91sEz61LyReOtaV0TqcxsDCjpAC6bfvhTwMFNzYBFLvwo8/2IlYzi4c4EgSw== X-Google-Smtp-Source: AGHT+IG3c9S1s3s/7B9+lI+LLI6XYszs5tCs0URSCDs+0QUSaVe5tRZg6QXAyybWB+0Egt0hBN6q X-Received: by 2002:a17:902:cf0f:b0:1e4:55d8:e753 with SMTP id i15-20020a170902cf0f00b001e455d8e753mr1267593plg.10.1712580370947; Mon, 08 Apr 2024 05:46:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712580370; cv=pass; d=google.com; s=arc-20160816; b=mwCvJfKc54DZpxkL6XlpxjF4SvKjYHmzOqWS5UYpauvoWlMLu18KDuGL/T3z4/qnhG gjaCQnmb2tregcYJuRlxALs9x+MZmYurTbxLAdjrFqu+eSHkfycUfhEZeU9IJh0czn/J YXZlpMu1F91tiKw9zaG9i1pzrZno7yPO/5QAbou8FaSVbWWOrZrzybUK3xY+NqESrX5+ r0/o0Y8aybiEaoFJJNUweRaM7VLhhnEcnOlMMMmvpZBYy89hKrk8c8YdgK6849x3iIlb GKdiGvylWbTcgDtPJMtQTHE3F7cU2F4gUxcnjTc1YWMMpV2RDhLJNoQgFP4Ms4ki1hku KfoQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:organization:references :in-reply-to:message-id:subject:cc:to:from:date:dkim-signature; bh=EGb9QvvQMCEnKLy7lBueRK3Kn722zA1+bA5mCoVE8rc=; fh=8yhYQAHQf5xja27UK+ArXC/td5ZocihAg9D1CxQBszQ=; b=iNkF4KprVH5INJ8HlcZytYOvJzWCHh3/oS0M4YNcTW/Tu1kG6QTl7CpAA5AiBBkesa F+aZ+GcA+Am6PmpCRqWbL46BgNVxZCI0+xqvUFLBTyIHEZNKVfaKS8S6Wn3/ogvdVGkq Ed5CLKxkxu6Y8tNdJq63ty04/F2njqgKiuGC/Np+cJVm1e0xaAUQgqrN/lfjrWUdtGA3 seku8U9AoqmaCFwYtGdvoKxFdgOQ6XQsLRT2Ge/LNjusSn86OYJankV6Sw7B2Iv7JSwe vDggKdYBGMf3i3/mP38eMz78NU6Vdh5P9IDOccSFXbt/vVIzKHFU9Xn0rC7W57hCm77Z 4BGA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=P39HssVx; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-135348-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135348-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id ju14-20020a170903428e00b001e2a41d265esi6055016plb.324.2024.04.08.05.46.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 05:46:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-135348-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=P39HssVx; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-135348-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135348-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 572D2283D73 for ; Mon, 8 Apr 2024 12:45:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BD64D7C090; Mon, 8 Apr 2024 12:43:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="P39HssVx" Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5776C7BAF7; Mon, 8 Apr 2024 12:43:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712580221; cv=none; b=fVDxnpo4DOHywN2cgif/mkinq+8VGyAERYHplLr4tswAdW8oQu78rKWsH2RJzxvx6bOk73ovStqHv/2axqQtT1ygZEym3YJendHRoyquV4pLBwJURB7XKrvpGQ+S2kBOvlzpEJeHWrJRhbCUniKTimE86+DVooDkrFRrrRvUbxo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712580221; c=relaxed/simple; bh=EHeLp8BG4YmTJLnNGQoteg6h/bg34plAh2da3ELzups=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=IyVBOjsObLAHZY5VCuZIEXwXaRZbMaae0sDJ6L2CN2ghg+4/FlzmeaIUhvG+UoGcfPT0p4VXrPSCRBHMLjFAHJIYC23O2VA2mAFIghXTTDZ5xh46BtQB4IlErAZG/lg7+NAEahCaHBieBKkWUDooUNsCImmvyGxkJTa1YYGTxwM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=P39HssVx; arc=none smtp.client-ip=217.70.183.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 3D7FE1BF20A; Mon, 8 Apr 2024 12:43:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1712580217; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=EGb9QvvQMCEnKLy7lBueRK3Kn722zA1+bA5mCoVE8rc=; b=P39HssVxYttUmscR0T1RCbh+Ar5Zyp6gJsubxF/YeXwhBAOewcWkqNvdfiixNBpB3RAXEf aDgp7/CyW/dlEdtQIcERESZbyIPT91AEsoRNCS7CLdAbHVjTTpDRFQwMX8N/sdZEibqisa yRfe7jHJ+YXRpfujhylFClFi0Otsiir1CMhIC43a6WBn+eF0Jh3VkmWHR2J6xlUymaLac1 Yp1jC8akzBD/l3MO4WQ85R4RQgdmlsS1/qHvZ4uKxEQ+RERtX9JI5lqyVte5fxD/wGZNyQ N1vA0A8Jw+mPRwvXTayIpPZpOkJ5aNK7QTaXzIUbv9fZ72IwV2D/Pf8gHY5XLg== Date: Mon, 8 Apr 2024 14:43:35 +0200 From: Herve Codina To: Greg Kroah-Hartman , "Rafael J. Wysocki" , Bjorn Helgaas , Lizhi Hou , Rob Herring Cc: Max Zhen , Sonal Santan , Stefano Stabellini , Jonathan Cameron , Krzysztof =?UTF-8?B?V2lsY3p5xYRza2k=?= , linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, Allan Nielsen , Horatiu Vultur , Steen Hegelund , Thomas Petazzoni Subject: Re: [PATCH v3 0/2] Attach DT nodes to existing PCI devices Message-ID: <20240408144335.5e9b6a2b@bootlin.com> In-Reply-To: <20240325153919.199337-1-herve.codina@bootlin.com> References: <20240325153919.199337-1-herve.codina@bootlin.com> Organization: Bootlin X-Mailer: Claws Mail 4.2.0 (GTK 3.24.41; x86_64-redhat-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-GND-Sasl: herve.codina@bootlin.com Hi, On Mon, 25 Mar 2024 16:39:13 +0100 Herve Codina wrote: > Hi, > > The commit 407d1a51921e ("PCI: Create device tree node for bridge") > creates of_node for PCI devices. > > During the insertion handling of these new DT nodes done by of_platform, > new devices (struct device) are created. For each PCI devices a struct > device is already present (created and handled by the PCI core). > > Creating a new device from a DT node leads to some kind of wrong struct > device duplication to represent the exact same PCI device. > > This patch series first introduces device_{add,remove}_of_node() in > order to add or remove a newly created of_node to an already existing > device. Then it fixes the DT node creation for PCI devices to add or > remove the created node to the existing PCI device without any new > device creation. > > Compared to the previous iteration: > https://lore.kernel.org/all/20231130165700.685764-1-herve.codina@bootlin.com/ > this v3 series rewrap commit log. > > The potential issue related to the sysfs of_node symlink added after the > sysfs PCI device is visible from user-space (raised during the v2 > review) is maybe not a problem according to Bjorn: > https://lore.kernel.org/all/20240319165430.GA1233494@bhelgaas/ > > IMHO, the discussions started with Rob around the interrupt-controller > during the v2 review are out of the issue this specific series tries to > fix. Some modifications are needed for the interrupt-controller topic > but should be done in a specific series. > > Best regards, > Hervé > I have received no feedback on this v3 series. I know maintainers are busy but I would like to be sure that this series was not simply missed. Best regards, Hervé