Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp733780pxb; Mon, 8 Nov 2021 22:25:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJw6Ho+thSYfWH2xHX1XOZ6OJ1sfpgl2eytYAverLHGH4OPJRzJOvB+HHQ6FfssrXZ8dxUQV X-Received: by 2002:a05:6402:10cd:: with SMTP id p13mr6818178edu.111.1636439139330; Mon, 08 Nov 2021 22:25:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636439139; cv=none; d=google.com; s=arc-20160816; b=xJCG51LDjrVZa7+nyLd4t4tsdVYkUrJBQN6qzEBW3nxjBrb5ofHkhG7RdwAA7wm8Ea 2MryFgYNe+mbZwUSNJERIpum+sjjLItzEWh6AWUj062gNIPhoOhXGfsgEW53x0kinwY9 a3jwykLKmNU0nw81gMcaE4IPdZ/OJgYdbGIF0W6h9afO3bQzkU3d4Cpp1VG5ygaeK/wv fi1tu3oRuyS9bpuktR/xyqlQRykj5PToUV+KFx1IkFrSRSwihsHvGfXPGNXJ4FHcHljD 7NiGpXK5EHgbnKjG54Fzu00Zy8R4+a3MS9bxVMkMoq/UhJowocmg5kX9yH3EvwOThksq T8Kg== 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; bh=lzVxjpwAxTNe2TEKzKAiwEFiBi7nYAra651uyu9v/IM=; b=bi0H8MO8qOWGijUO5v5HhBF4DXNmXTlfOCRMGL60Q2wWfTrSH4ujJY3OlPgLD+iD3B o+oZF7QoshJ4EE9egPoGeovIIty8vEM4kGkyPFiuEczRxGUXrcC3V3VA5IFPypSbsxEL VftnPQUhBrD4GgRz5COZDBscQwUmaLtuLz2+RNzf80LomVxXDNJ3qJwot1ri1ra+jYkm WjPyKodhLFUFdLoIbWUFap0s0GHhRCdHYcAoIvI3c+zTOF7dsKmV49scRkbIIa/2LrNf wb6uTty7VFN23aXaGbfh7oWTVi34qYj3cxb3Fas9YeIYy3k7RIpGkI3jLPK51vPuCWZF ktpQ== 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 dz15si43106696edb.615.2021.11.08.22.25.12; Mon, 08 Nov 2021 22:25:39 -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 S241079AbhKIADG (ORCPT + 99 others); Mon, 8 Nov 2021 19:03:06 -0500 Received: from mail-lj1-f181.google.com ([209.85.208.181]:45756 "EHLO mail-lj1-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229697AbhKIADD (ORCPT ); Mon, 8 Nov 2021 19:03:03 -0500 Received: by mail-lj1-f181.google.com with SMTP id s24so32704687lji.12; Mon, 08 Nov 2021 16:00:18 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=lzVxjpwAxTNe2TEKzKAiwEFiBi7nYAra651uyu9v/IM=; b=OgVPZfzN3nIxfqW/1pQ7RiJCx1+6kUOQhGhGX4+BHGWc4QCnkRhoBGWtxVNoEDu+LF 9gJrcLxRlVpsSWHPrx9i6D80tgyQND13RNokVIdCKysAhh1jLMyOy+T/E9WKvuTmzxYq U7Ti++kMG4Gt3jA/PejUyQPXfnmjHuGEhr14oOJo6Fz/Uun4rkUAREZicW+sKgR8h4yq s0005D7TsUl1hNuBSxBqBuQpO8zEPhNsHSJY25cI3SVzvmd5kqlzyMl+kVsryYZAMgI9 tgN0x1V9C0507ypNm+qKGFMeOsknbKqbBlse+i6EUvdhUdeF5J1vTyyNjTxzQJf4k15u mNuQ== X-Gm-Message-State: AOAM533DxBNIIGY1AwsVQaQ0MTHvYeBPqXxTjVGP21jxN8lUjiPCES/d Re05xgAW4Ro7RYGgi7x6ZHw= X-Received: by 2002:a05:651c:1595:: with SMTP id h21mr3027880ljq.77.1636416017400; Mon, 08 Nov 2021 16:00:17 -0800 (PST) Received: from rocinante ([95.155.85.46]) by smtp.gmail.com with ESMTPSA id t5sm312522lfd.80.2021.11.08.16.00.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Nov 2021 16:00:16 -0800 (PST) Date: Tue, 9 Nov 2021 01:00:15 +0100 From: Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= To: Robert =?utf-8?B?xZp3acSZY2tp?= Cc: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= , Bjorn Helgaas , linux-i2c@vger.kernel.org, Bjorn Helgaas , linux-pci@vger.kernel.org, "Rafael J. Wysocki" , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] pci: Don't call resume callback for nearly bound devices Message-ID: References: <20211108185823.GA1101310@bhelgaas> <20211108212226.253mwl4wp7xjckqz@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello! [...] > > I didn't test this patch, @Robert, maybe you can do this? > > > > Best regards > > Uwe > > > > drivers/pci/pci-driver.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/pci/pci-driver.c b/drivers/pci/pci-driver.c > > index 1d98c974381c..202533654012 100644 > > --- a/drivers/pci/pci-driver.c > > +++ b/drivers/pci/pci-driver.c > > @@ -1299,7 +1299,7 @@ static int pci_pm_runtime_resume(struct device *dev) > > */ > > pci_restore_standard_config(pci_dev); > > > > - if (!to_pci_driver(dev->driver)) > > + if (!device_is_bound(dev)) > > return 0; > > > > pci_fixup_device(pci_fixup_resume_early, pci_dev); > > Yes, that fixes it. Thanks for the patch. Thank you Uwe for the patch and Robert for testing! Krzysztof