From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 99BF7140E23 for ; Fri, 23 Aug 2024 09:33:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724405617; cv=none; b=CbrcXgjbDlTKl3xArK4MBP6zZ/T/jhB3tPrGEDinl6szrcaz6vtddp+tCqUgdSwZGko2yYp8Z/6McJti5scG0eDwXgDGG0vTyFX4+McEdG+UXzztZl55A8miuucO91ttBWxDqCdwAY7uuCil+kyKnUOuAKwGshgywghx1YjaBqs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724405617; c=relaxed/simple; bh=yXAQbDWUQZ6r+nEz8nE7n9kw07wLSRQo1x8APZyKjuA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=OdHqTPqTMqSgiICwS8W87swyV9J4qL0IT1hEUxLcJyKzjNzvWYwYqgB8SvJawo/FGpFC4j7F/fV7vqO33toMy2JZ6rKel6dk1xlYLL9b2cStSu+QZebth/z39AV7CG2di4Q0gxjfSEhGhsuAKKgKeyQuQEFHQPaiQtCPJyDpoDE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl; spf=none smtp.mailfrom=bgdev.pl; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b=1Ezp5jcP; arc=none smtp.client-ip=209.85.128.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bgdev.pl Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b="1Ezp5jcP" Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-4281faefea9so12729635e9.2 for ; Fri, 23 Aug 2024 02:33:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1724405613; x=1725010413; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=89Z7LwWjklZhnxkTO/oPThGX3SaFwawp/+SPFmQXVtw=; b=1Ezp5jcPno2CGVnXhvD2833EudSxNrcfMNVxiX3iDFLZwPeaQ//pHuxvMhqoyKc4CA 2DjZOF4Myb56uH4UqQpzpCUFi8oBKvMLZn3tba6stu5EA2WrbfoCYA7Plk+BBpvgzgVY i4vYvSPiea6Y92Tv+2jFY1HIFZkU/6Vz3Jwid1kJTsIxDd3AomX31t3JgxkFju4Fut2R MqRAPmbRRv/O11CG+PZHOjPmbP2hyXehadPz+yhwr01LIMaHTMnR/lpux0usH964Dhhs oI0t3cV3JqQbKlSXwevQwwNCETFc2X6gZU7F8no57bNQhMIRUuTwFh/v8heV3EtEnvry t3OQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724405613; x=1725010413; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=89Z7LwWjklZhnxkTO/oPThGX3SaFwawp/+SPFmQXVtw=; b=TNYgJwJjPUlYJ+E4T/bEiy82vyfaQvRNQp6OcfDMaD4Xnmm8TskljVVJuraig1sDIb 042X3gXBkj6FEAVTegwc7yvzzHgvaeD56jLDWrjTg4rAWDqoGEctRQnxfUmEIBIlVjvu h4RfgSh+PpgPQI69mX3CAKMTM1ZDht5WEniv+wkAs8hCEJT/njJ1KuFJaIXrOrs+rtoq DOs8OrpwjFkJ+xuZOlRTzMiOFlUrx9NpHjp1gmvgJa+OegGmFT36VqH0lGeBaQGG2rOl OPL7DnNFqomQFeQKaGQQ5V5kySRiEg29fu7yT/V0l9KB3lEM7nr0+YP9/DdUkyr/TIKl 4PYw== X-Forwarded-Encrypted: i=1; AJvYcCUWIMmWA2NZS2DpiHxFuD4i61Yf3pvLjiBMw8yNdkX90216W8bjffwcM0KpZI4AX275CG7h3nH8QoE2u4I=@vger.kernel.org X-Gm-Message-State: AOJu0Yzx37/zLXAo5J8jU/8PEqt7wRZy7TxHGFVm6jzP43w6QY7BTAxa dJSVLau2M4UbVE6pz32rUNIaEagcEq6GL5S2Y5Sv1HQWFFijC1Q7Gt9SrSLQtR8= X-Google-Smtp-Source: AGHT+IGkniwla9gjN4/yqKrzNjwnr52TiM77GyCtRWPf0X6VoILg5G2zYHffC2xwjmkIMJIIHH0Ucw== X-Received: by 2002:a05:600c:35c1:b0:426:627e:37af with SMTP id 5b1f17b1804b1-42acc8d3772mr11594065e9.3.1724405612352; Fri, 23 Aug 2024 02:33:32 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:dc:7e00:58fc:2464:50b0:90c5]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42abee86d5esm87612035e9.15.2024.08.23.02.33.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Aug 2024 02:33:32 -0700 (PDT) From: Bartosz Golaszewski To: Bjorn Helgaas , Krishna chaitanya chundru , Manivannan Sadhasivam Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH v3 0/2] PCI/pwrctl: fixes for v6.11 Date: Fri, 23 Aug 2024 11:33:21 +0200 Message-ID: <20240823093323.33450-1-brgl@bgdev.pl> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Bartosz Golaszewski Bjorn, Here's a respin of the PCI/pwrctl fixes that should go into v6.11. I eventually found a solution that doesn't require Krishna's topology change but Krishna: please make sure to update the code in drivers/pci/remove.c as well when rebasing your work once this gets upstream. v2 -> v3: - use the correct device for unregistering the platform pwrctl device in patch 1/2 - make patch 1/2 easier to read by using device_for_each_child() v1 -> v2: - use the scoped variant of for_each_child_of_node() to fix a memory leak in patch 1/2 Bartosz Golaszewski (2): PCI: don't rely on of_platform_depopulate() for reused OF-nodes PCI/pwrctl: put the bus rescan on a different thread drivers/pci/pwrctl/core.c | 26 +++++++++++++++++++++++--- drivers/pci/pwrctl/pci-pwrctl-pwrseq.c | 2 +- drivers/pci/remove.c | 18 +++++++++++++++++- include/linux/pci-pwrctl.h | 3 +++ 4 files changed, 44 insertions(+), 5 deletions(-) -- 2.43.0