Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp24746ybi; Thu, 23 May 2019 22:50:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqzaNtucTtlODz2Yeorf6Aj/IHdwZ+aNTocmgXH3yRCfU1wP+l1Mc9ECeB0EymwYj/H2syXA X-Received: by 2002:a63:364f:: with SMTP id d76mr46462589pga.100.1558677042063; Thu, 23 May 2019 22:50:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558677042; cv=none; d=google.com; s=arc-20160816; b=vxnx+pQlD5j6+Bc8SJtaCE04MuZMu6yotSrXIw46Ui2AKl2bEAtEeC11adSNp66sdI ffMM+LzIHSNvPrkwabXuJaMF4FQ5a8WDt910Qa8roLOvRr1Nnw2llUNr3vHTTb5AwYoN GSfPAA54PO8HzmWNST6FH9ZEZQoxQG5CNkuW5bgqh4hQmG1KE45E+tnz2+eyQZvJALKm RvV9qR3NWjkVkVi23zy2rLhMEy7vhUv2RHsIZDhzkJgXxAGcYR1s3jAPvWW9y64Bm+7p mwIDW6PydSbn+EMRLhzHQNIqu7u4TfPy+klneaI9lyrSx1tvSlEpEJ6B1flCHG4xRqkp cKwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=YEzPdvFmtWDIqxAbxNgpKIkxNhN5UWCV+hM8Aqz5EVE=; b=aAboP6wk5Ygp9Etv1iGDnbFlLf2Ka7r8Mc2iQwzPSCKw/LnNBS0aUZ1ZFgnn4iByJ5 JWXfX910iSD6tfdvu9SBHHuFUv4/JUNmwH0EeLXSryHcBCYwGFuGBmFWsWgFZlAkL3AM vr3rwHdofgPHLLR6Atc8fAffUqrFohyQ2BaioWJRYSIjbCXP7c66V164gtRDdyKWHkvS grFiw1glRRE90YKQ9yTT80uElrbw4eN6LZqkrah+/QJKTpVVBRcTJqcbbliUCTNlPO0r MlozSyJmVB97IHn5biaI4yJSouRFH3bxQ+A+4nwGhY052cCcJ9GknT4ucNW8++hivfDs MGBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=BmoqDFbU; 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 cm24si2167406pjb.106.2019.05.23.22.50.22; Thu, 23 May 2019 22:50:42 -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; dkim=pass header.i=@kernel.org header.s=default header.b=BmoqDFbU; 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 S2388141AbfEXFso (ORCPT + 99 others); Fri, 24 May 2019 01:48:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:36842 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387535AbfEXFso (ORCPT ); Fri, 24 May 2019 01:48:44 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1C8822168B; Fri, 24 May 2019 05:48:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1558676922; bh=kniP8lflxSW1ANVxsn0GMckkxNtkCWcdW66EPGHbMf4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=BmoqDFbULhReo/Tswv/s2XraivvkocEHWYQtFwk85z8Bd6iwt6cEFUb5iM8YSUfXz 96/jVjz1HgBQgfSihTAFvrnxmvuvy+uyY5sklyZSUXYNdsUWBssHvOtcR6MDvwh9lM Ek7lQD9fk5PE5OEWKuqHpfE0y4KEflu+mjM/UQMw= Date: Fri, 24 May 2019 07:48:40 +0200 From: Greg Kroah-Hartman To: Saravana Kannan Cc: Rob Herring , Mark Rutland , "Rafael J. Wysocki" , Frank Rowand , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@android.com Subject: Re: [PATCH v1 5/5] driver core: Add sync_state driver/bus callback Message-ID: <20190524054840.GB31664@kroah.com> References: <20190524010117.225219-1-saravanak@google.com> <20190524010117.225219-6-saravanak@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190524010117.225219-6-saravanak@google.com> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 23, 2019 at 06:01:16PM -0700, Saravana Kannan wrote: > This sync_state driver/bus callback is called once all the consumers > of a supplier have probed successfully. > > This allows the supplier device's driver/bus to sync the supplier > device's state to the software state with the guarantee that all the > consumers are actively managing the resources provided by the supplier > device. > > To maintain backwards compatibility and ease transition from existing > frameworks and resource cleanup schemes, late_initcall_sync is the > earliest when the sync_state callback might be called. > > There is no upper bound on the time by which the sync_state callback > has to be called. This is because if a consumer device never probes, > the supplier has to maintain its resources in the state left by the > bootloader. For example, if the bootloader leaves the display > backlight at a fixed voltage and the backlight driver is never probed, > you don't want the backlight to ever be turned off after boot up. > > Signed-off-by: Saravana Kannan > --- > drivers/base/core.c | 39 +++++++++++++++++++++++++++++++++++++++ > drivers/of/platform.c | 9 +++++++++ > include/linux/device.h | 19 +++++++++++++++++++ > 3 files changed, 67 insertions(+) Also: Reviewed-by: Greg Kroah-Hartman thanks, greg k-h