Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2395581ybc; Wed, 13 Nov 2019 13:52:56 -0800 (PST) X-Google-Smtp-Source: APXvYqwaSm9C2XZkCycAAVCHQU83meJi9vexPISdFYFSqqtRtAJDlv0Ec/PQksf70HORZZHZe93s X-Received: by 2002:a50:f30c:: with SMTP id p12mr6115126edm.208.1573681976219; Wed, 13 Nov 2019 13:52:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573681976; cv=none; d=google.com; s=arc-20160816; b=rSUCWhBe/uqLc8Jk/91OBLWbaRcgCVwIa34pvfgB+BFin93gM7DUODea/ANZW17ksV cEKzzl2IvfnxEeGvS/wCZWtoBw9XDDf1n4vQBWzOnKaez9inad8frWstv3dPZ8q0ul2K t1+/BPI5U6hx/CELQ8cMJl/illsmqZPwPSBGZqDt7JolS9uRrn+yOk1E4s5kTNGerzdK +0Xr9cr/EyDarf543QfOkdkbK/f4oRzBOsG26bueBucuLn5gq9uY3MnbjZuq5pE/ouc8 w6Wrh12AE80JnG6YcVau/vf1qDzuFPyl8DSUTIQBuK1FWsiH2pkILpUPSKodvQdAJwvf Mmrw== 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=wIds1KHDkwujkLK0dtn159EtiDjahlN4unYIxNjoCQY=; b=QemrQ479sJmGCiWlMravHLDELTKv12uovh7sdEgdcmpv2ylD96wQxTRH+vOJtf2LVd h3uxyTNoIftP3QuW+76zBIJC9H/Wujib5+en2IR/ZLCRqOHbdB5JXXvfLfYMWf9FNQQS f4reHPZ8THVT+jjDrfCIycZ2yY9lC43LdtDkavVu8cE7QTa+HGleRggt+aMnsOPdzdyE 2ZsuFlTu7BMliLEhQcShvwtESrVMLUeMvpvX232DITkNe9V+sYF6TLWQr+mJ66NZ/JqR KJCuo3sBwD5gQ02lF8IH6CYNc/jjMVIsewfCtO0Ai0Bnz6D1ezGqGB/sC151uT5GWUfx m/Tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=II49rerY; 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 t4si2688125edc.171.2019.11.13.13.52.32; Wed, 13 Nov 2019 13:52:56 -0800 (PST) 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=II49rerY; 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 S1726521AbfKMVuf (ORCPT + 99 others); Wed, 13 Nov 2019 16:50:35 -0500 Received: from mail.kernel.org ([198.145.29.99]:42630 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726162AbfKMVuf (ORCPT ); Wed, 13 Nov 2019 16:50:35 -0500 Received: from localhost (unknown [61.58.47.46]) (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 DB1DA206EE; Wed, 13 Nov 2019 21:50:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573681834; bh=St/LYf+YIXh1Fk/nd47j4Mae7jBSVq3RCDMRZWLojnM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=II49rerY+4P2wsShUA9ZFFfVwfYio2I7BA3U1lTRANzohtZLruT3+Xm4x2Oq8oaIc qkFnN24iNYObvPWbkO7XCwHoLuSvWAL5wK3ELqVFH39G1Fiw0GR2D404R7fWz/L10r zTGDr/fvM6+9PN2Q6tpRozb5SSrqkQxyYfY0T3Hk= Date: Thu, 14 Nov 2019 05:50:31 +0800 From: Greg Kroah-Hartman To: Mark Salyzyn Cc: linux-kernel@vger.kernel.org, kernel-team@android.com, Tim Murray , Venkata Narendra Kumar Gutta , "Rafael J. Wysocki" , Luis Chamberlain Subject: Re: [PATCH] firmware_class: make firmware caching configurable Message-ID: <20191113215031.GA3944533@kroah.com> References: <20191113210124.59909-1-salyzyn@android.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191113210124.59909-1-salyzyn@android.com> User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 13, 2019 at 01:01:13PM -0800, Mark Salyzyn wrote: > Because firmware caching generates uevent messages that are sent over > a netlink socket, it can prevent suspend on many platforms. It's > also not always useful, so make it a configurable option. > > Signed-off-by: Mark Salyzyn > Cc: Tim Murray > Cc: Venkata Narendra Kumar Gutta > Acked-by: Luis Chamberlain > --- > drivers/base/Kconfig | 13 +++++++++++++ > drivers/base/firmware_loader/main.c | 6 +++--- > 2 files changed, 16 insertions(+), 3 deletions(-) > > diff --git a/drivers/base/Kconfig b/drivers/base/Kconfig > index 28b92e3cc570..36351c3a62b0 100644 > --- a/drivers/base/Kconfig > +++ b/drivers/base/Kconfig > @@ -89,6 +89,19 @@ config PREVENT_FIRMWARE_BUILD > > source "drivers/base/firmware_loader/Kconfig" > > +config FW_CACHE > + bool "Enable firmware caching during suspend" > + depends on PM_SLEEP > + default y > + help > + Because firmware caching generates uevent messages that are sent > + over a netlink socket, it can prevent suspend on many platforms. > + It is also not always useful, so on such platforms we have the > + option. > + > + If unsure, say Y. > + > + Shouldn't this entry go into drivers/base/firmware_loader/Kconfig instead and depend on FW_LOADER by putting it in the correct location in that file? Also, no need for two blank lines. And finally, 'default y' is only a good idea if your machine can not boot without the option. I don't think that's the case here, correct? thanks, greg k-h