Received: by 10.223.185.116 with SMTP id b49csp1422036wrg; Fri, 23 Feb 2018 18:51:35 -0800 (PST) X-Google-Smtp-Source: AH8x226QvcQEtPwrH+iU3Wb0T+/E+kHRxzVnLVV7CR4M79pcU/nfXKM0jH8NMCNLwVDGSLax8eJA X-Received: by 2002:a17:902:d204:: with SMTP id t4-v6mr3660194ply.377.1519440695664; Fri, 23 Feb 2018 18:51:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519440695; cv=none; d=google.com; s=arc-20160816; b=NFcfUGvqF8/H2XIUSjo6gEjdrXV9id4dfkIL96Ey/VT5I6sDvF/QvtxtBOxpZiQhdA eh0hqtl+7DVk3FYtiNQJOsyEZxRKBWp4EzBFVSoY5vkuIEwDZ+Tmpjp/NP2JHIp06lL0 fvR/2phi+5vogmz/kF6NCCDc/IjmYw0KKeK36yyJ0ZlR68CSFdjm//jQn50dCSMKAJGw n7MnC9/pJBwIxi/svURTEzYSvgk66mTRh7GX2CuyH57tzx3JV409XtBHPVP2m0HgLJNi 2krZs+QjdkS0PiYYpRo6DtQX4P+fAZa1UftDvRa84h+afWPsW5xdUznz2AtjnoUfHXnQ uBxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dmarc-filter:arc-authentication-results; bh=EL4ci2kizKwP/ycgMj3/XuX7yyqhDaVbIO8XbS1KiqI=; b=IG0nCtfvlaCNwN2P3h7Au1bAbVfj40bE4F4r18Q/H80JiKkPfGQW7/T56q+iMn/NSU LlwYsD4IqWn5TBuFPzJfNwNBufDPK2nc0jmvlXiRDiiAMUuR21YEtC6pw8BxNq0csPzn qx2KwqFrsWZc8vRj+k4+U4XwT0/eL2C/dcGi9OB7nUMkkGj7WmMFuTAvDTSyWxzIflSk zOpD3VBaVOCns+LuhSeGhMZKxxzxEtiTTlrT2SMpENRzDXAq+rdKkIS7iCzHRgR39+Ob vPhCxMBhpmcLCSR/L8HEdMiz7slMJDEZQeNrq+/dTc7CLToD4lvBXkedSeEfUAdwHo/p tw2Q== 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 w31-v6si2748621pla.315.2018.02.23.18.51.20; Fri, 23 Feb 2018 18:51:35 -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; 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 S1752816AbeBXCqS (ORCPT + 99 others); Fri, 23 Feb 2018 21:46:18 -0500 Received: from mail.kernel.org ([198.145.29.99]:48398 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752733AbeBXCqQ (ORCPT ); Fri, 23 Feb 2018 21:46:16 -0500 Received: from garbanzo.do-not-panic.com (c-73-15-241-2.hsd1.ca.comcast.net [73.15.241.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 88D7921717; Sat, 24 Feb 2018 02:46:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 88D7921717 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=mcgrof@kernel.org From: "Luis R. Rodriguez" To: gregkh@linuxfoundation.org Cc: akpm@linux-foundation.org, keescook@chromium.org, shuah@kernel.org, mfuzzey@parkeon.com, zohar@linux.vnet.ibm.com, dhowells@redhat.com, pali.rohar@gmail.com, tiwai@suse.de, arend.vanspriel@broadcom.com, zajec5@gmail.com, nbroeking@me.com, markivx@codeaurora.org, stephen.boyd@linaro.org, broonie@kernel.org, dmitry.torokhov@gmail.com, dwmw2@infradead.org, torvalds@linux-foundation.org, Abhay_Salunke@dell.com, bjorn.andersson@linaro.org, jewalt@lgsinnovations.com, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, "Luis R. Rodriguez" Subject: [PATCH v2 00/11] firmware: cleanup for v4.17 Date: Fri, 23 Feb 2018 18:46:02 -0800 Message-Id: <20180224024613.24078-1-mcgrof@kernel.org> X-Mailer: git-send-email 2.13.2 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Greg, this v2 series addresses some corner case build issues. One was spotted late by 0-day after I used Linus' tree for build tests rather than linux-next, and another I found on my own. 0-day covers more ground with testing if you use Linus' tree. The one cought by 0-day was in that in the case when the firmware loader is modular (actually rare these days) the new sysctl table for the configuration of the fallback interface needs to be built in as well, as otherwise the proc sysctl interface can't access the configuration. The other build issue was a misplaced "static" on a fallback call. 0-day now gives its blessings for both, on linux-next and on Linus' tree. Questions, feedback, rants all equally welcomed. Luis Luis R. Rodriguez (11): test_firmware: enable custom fallback testing on limited kernel configs test_firmware: replace syfs fallback check with kconfig_has helper firmware: enable to split firmware_class into separate target files firmware: simplify CONFIG_FW_LOADER_USER_HELPER_FALLBACK further firmware: use helpers for setting up a temporary cache timeout firmware: move loading timeout under struct firmware_fallback_config firmware: split firmware fallback functionality into its own file firmware: enable run time change of forcing fallback loader firmware: enable to force disable the fallback mechanism at run time test_firmware: add a library for shared helpers test_firmware: test three firmware kernel configs using a proc knob drivers/base/Makefile | 5 +- drivers/base/firmware_fallback.c | 667 ++++++++++++++++++ drivers/base/firmware_fallback.h | 67 ++ drivers/base/firmware_fallback_table.c | 55 ++ .../base/{firmware_class.c => firmware_loader.c} | 765 +-------------------- drivers/base/firmware_loader.h | 115 ++++ kernel/sysctl.c | 11 + tools/testing/selftests/firmware/Makefile | 2 +- tools/testing/selftests/firmware/config | 4 + tools/testing/selftests/firmware/fw_fallback.sh | 39 +- tools/testing/selftests/firmware/fw_filesystem.sh | 61 +- tools/testing/selftests/firmware/fw_lib.sh | 173 +++++ tools/testing/selftests/firmware/fw_run_tests.sh | 67 ++ 13 files changed, 1193 insertions(+), 838 deletions(-) create mode 100644 drivers/base/firmware_fallback.c create mode 100644 drivers/base/firmware_fallback.h create mode 100644 drivers/base/firmware_fallback_table.c rename drivers/base/{firmware_class.c => firmware_loader.c} (61%) create mode 100644 drivers/base/firmware_loader.h create mode 100755 tools/testing/selftests/firmware/fw_lib.sh create mode 100755 tools/testing/selftests/firmware/fw_run_tests.sh -- 2.16.2