Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1225890imm; Tue, 3 Jul 2018 07:37:41 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJxQ+xRG8ry+U5M57+rFhFNcBCk2ZjshjPfJF+Mg5E0G6RgB6NcycJcQ7qUj75FzCa2GG6u X-Received: by 2002:a63:6157:: with SMTP id v84-v6mr25348919pgb.390.1530628661750; Tue, 03 Jul 2018 07:37:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530628661; cv=none; d=google.com; s=arc-20160816; b=CvedHBMhmn6+sCe7UjtuXfi5PhJNDNe9U3fk+FaVF43x5fYAWY5Fbc1wg8lN7JY3lv OIZDsE6Tr1ujZ0SGvFFCIQKWl0wsKBZjHRiimOVBxrkCreMt3vdKRXCbcvjatNyBgRR6 9lKZK7KwLjBIYQmb0WPnWi92lguc0KuvT4lKPZMwN0uWWOl9rtmutgEDvmRsLm5E0d90 /t0nAfcSUiTq0MQb9ylzKkvzJFcQJNeT75SC8B8UNKFqc54dnYpkYi6VqKuizsjezDqd pOFvQofC4fNR01WCVRqKFWB2HPlxIJtTkr7XlDYirUHCxlfykuiJmPYb175krfJU4pdR 3IDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=BaBmyZVrRM72hxJAlOYs6aY3n3DPf3Y6ffynvC7hCU8=; b=W2mXGELccSl9PSQqKKcH+RYP1zTBSMv94ZimVLR4en86ITiHnWOopB0Wg0nxH19YKO FlSqM6xlxbqq0Z0Q6PzHcM6RmeVxKB4U+9QSKwRoOqFA3/dJkQKhx+GblNi2fpmK6WDI iU09J3gI8SC1RKiptXV1z/ctSDPW6uyDxnIYQ88Vy8BKsa/owqyv7vVa/yRZgBjJMFHn +gBdlueuzusmwlE+9JI/hFUBrXtGZjWodKnuQnqU5AAJMCIboMjEInUx+UhE2sfV4hCC UZZyLK0aCnPSWq5WKxcudwjU4TE4T2Ovb8xkfwEQZlPIF28x3F6gUJE08enRu32cv5BY G0OA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q23-v6si1229818pll.42.2018.07.03.07.37.27; Tue, 03 Jul 2018 07:37:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932343AbeGCOgb (ORCPT + 99 others); Tue, 3 Jul 2018 10:36:31 -0400 Received: from cloudserver094114.home.pl ([79.96.170.134]:53905 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932133AbeGCOg3 (ORCPT ); Tue, 3 Jul 2018 10:36:29 -0400 Received: from 79.184.254.38.ipv4.supernova.orange.pl (79.184.254.38) (HELO aspire.rjw.lan) by serwer1319399.home.pl (79.96.170.134) with SMTP (IdeaSmtpServer 0.83) id fc4af4bd844ffdc7; Tue, 3 Jul 2018 16:36:28 +0200 From: "Rafael J. Wysocki" To: Pingfan Liu Cc: linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Grygorii Strashko , Christoph Hellwig , Bjorn Helgaas , Dave Young , linux-pci@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCHv3 0/4] drivers/base: bugfix for supplier<-consumer ordering in device_kset Date: Tue, 03 Jul 2018 16:35:05 +0200 Message-ID: <4685360.VNmeYLh0dQ@aspire.rjw.lan> In-Reply-To: <1530600642-25090-1-git-send-email-kernelfans@gmail.com> References: <1530600642-25090-1-git-send-email-kernelfans@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tuesday, July 3, 2018 8:50:38 AM CEST Pingfan Liu wrote: > commit 52cdbdd49853 ("driver core: correct device's shutdown order") > places an assumption of supplier<-consumer order on the process of probe. > But it turns out to break down the parent <- child order in some scene. > E.g in pci, a bridge is enabled by pci core, and behind it, the devices > have been probed. Then comes the bridge's module, which enables extra > feature(such as hotplug) on this bridge. So what *exactly* does happen in that case?