Received: by 10.192.165.148 with SMTP id m20csp4614438imm; Tue, 8 May 2018 11:14:19 -0700 (PDT) X-Google-Smtp-Source: AB8JxZro2+npzCW3ilvR9nZqL7mUm1+5rq2a2jfFtEbvc2bl1PJjejz/6KDpWY/5ixtHHnrIkFnA X-Received: by 10.98.14.83 with SMTP id w80mr16768952pfi.236.1525803259315; Tue, 08 May 2018 11:14:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525803259; cv=none; d=google.com; s=arc-20160816; b=mPfc7y+8R9EIgLxQpRqTbwG9kKWImplvD10cSGE+mRZWqvXM6bAt0z3uktqhE1Dv8p pKX0trcTdvqg0iMxOnYOTqFPSTbu4rYIGlpTT5BH0feXGeL0gmNspAe5/ou6M/AaR6kl B01UfQ99KIjF/rWcwUpDecj9FLeD63DV+DO2uQTkkB6Cm2oSntfh9IcoDf64YhkCeoJF 3n5EAUAxPEh6b/FX3U9qZfI4lO+6nGkpGrrzitVjg33cHem/1PTTHB9KCacxoARu9kH+ W7QHsn4jErzCRDZ9UOCyioD9vD9J//MegnjqOgci4R1ld28lMBwV9hIiKuTh8hO5BjZs AGIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=GjIFnNJrzX4gy6IfvXuffxkWPt88/LNyc9+qTJk+b08=; b=qeBnW67h4QXfAoAP0ZIQhMXWd8L5y+KKu2tPuiXeL5kBKHc6/1iOusHvTwxWrwMqY9 bc6F3nfdSB5R+I3f+3PRoKoxKKgLish+/Jhx48eLUzbr3uWeOeQMmH0lepgdRrRiw6Ca FrjJw5ZbIsuRn6H5x+n7mmN672gzvIakgiSHT+wYGXoyR0MRW3Or/IZYRz3xSICQcKZ7 OJ6I9wPIU3inRYNB3KptfrD5rRxbhl8wPeJyPzpW/FMK0hXhFlcsp8jZ9L1GjnSnQ7Wk NxjGkb9ohWPQY/zb1uPUULY6mm6jxM1FyHPD4tns09yK5V0HLF871muVHL9OTRISQnM/ VCVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=cLJck5I0; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r5-v6si24712985plo.414.2018.05.08.11.14.04; Tue, 08 May 2018 11:14:19 -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=cLJck5I0; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933407AbeEHSNR (ORCPT + 99 others); Tue, 8 May 2018 14:13:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:41460 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933328AbeEHSNN (ORCPT ); Tue, 8 May 2018 14:13:13 -0400 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 CB4CD2183C; Tue, 8 May 2018 18:13:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1525803192; bh=VVQHSMLEgOO9vG+OOrJYt7RiuktztmoKMGDyPGv62Eg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cLJck5I0EZwXtE5nSYDttYEtyv3pljxSyfOOn9STzw5znJZYYrv+pKBt/Plc3gXEq Dz1AUSTjRB46PN8Bni+jk3lZOfRE4z0j0pRUOeeeObo7i/wIC0vRHDy6fis7ltL3zp Xe0qXf3kmmyE6Bqq7net1ah+DPmIAFDa6B0jVSV0= From: "Luis R. Rodriguez" To: gregkh@linuxfoundation.org Cc: akpm@linux-foundation.org, keescook@chromium.org, josh@joshtriplett.org, maco@android.com, andy.gross@linaro.org, david.brown@linaro.org, bjorn.andersson@linaro.org, teg@jklm.no, wagi@monom.org, hdegoede@redhat.com, andresx7@gmail.com, zohar@linux.vnet.ibm.com, kubakici@wp.pl, shuah@kernel.org, mfuzzey@parkeon.com, dhowells@redhat.com, pali.rohar@gmail.com, tiwai@suse.de, kvalo@codeaurora.org, arend.vanspriel@broadcom.com, zajec5@gmail.com, nbroeking@me.com, markivx@codeaurora.org, broonie@kernel.org, dmitry.torokhov@gmail.com, dwmw2@infradead.org, torvalds@linux-foundation.org, Abhay_Salunke@dell.com, jewalt@lgsinnovations.com, oneukum@suse.com, cantabile.desu@gmail.com, ast@fb.com, hare@suse.com, jejb@linux.vnet.ibm.com, martin.petersen@oracle.com, khc@pm.waw.pl, davem@davemloft.net, arve@android.com, tkjos@android.com, corbet@lwn.net, mchehab+samsung@kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-scsi@vger.kernel.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, "Luis R. Rodriguez" Subject: [PATCH v6 13/13] Documentation: clarify firmware_class provenance and why we can't rename the module Date: Tue, 8 May 2018 11:12:47 -0700 Message-Id: <20180508181247.19431-14-mcgrof@kernel.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180508181247.19431-1-mcgrof@kernel.org> References: <20180508181247.19431-1-mcgrof@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Clarify the provenance of the firmware loader firmware_class module name and why we cannot rename the module in the future. Signed-off-by: Luis R. Rodriguez --- .../driver-api/firmware/fallback-mechanisms.rst | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Documentation/driver-api/firmware/fallback-mechanisms.rst b/Documentation/driver-api/firmware/fallback-mechanisms.rst index a39323ef7d29..a8047be4a96e 100644 --- a/Documentation/driver-api/firmware/fallback-mechanisms.rst +++ b/Documentation/driver-api/firmware/fallback-mechanisms.rst @@ -72,9 +72,12 @@ the firmware requested, and establishes it in the device hierarchy by associating the device used to make the request as the device's parent. The sysfs directory's file attributes are defined and controlled through the new device's class (firmware_class) and group (fw_dev_attr_groups). -This is actually where the original firmware_class.c file name comes from, -as originally the only firmware loading mechanism available was the -mechanism we now use as a fallback mechanism. +This is actually where the original firmware_class module name came from, +given that originally the only firmware loading mechanism available was the +mechanism we now use as a fallback mechanism, which which registers a +struct class firmware_class. Because the attributes exposed are part of the +module name, the module name firmware_class cannot be renamed in the future, to +ensure backward compatibilty with old userspace. To load firmware using the sysfs interface we expose a loading indicator, and a file upload firmware into: -- 2.17.0