Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp552536ybl; Fri, 10 Jan 2020 03:01:51 -0800 (PST) X-Google-Smtp-Source: APXvYqxAXNV/1bfU69iSrRZi5EnKRiwD4Wbt4nVC2psX6QcPQ9s+ykkl1iEhuY324q85dhIi1Jt5 X-Received: by 2002:a9d:2dca:: with SMTP id g68mr1866114otb.150.1578654111136; Fri, 10 Jan 2020 03:01:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578654111; cv=none; d=google.com; s=arc-20160816; b=OwgiZ3Y7nHIX6IHeXvLN8lOkz6q72BDzzaqKfuaGAoHD58pAAv0qS5tgFrZklcykqt EUOksDsRzNBbxLIyCzMpAVt8z3Qsm6lgmT0MCXU1SsFQQCtOpDMh0iOfdoDlLcSPiy7C oy/z9XwIGMXIBpCfhIa0AY2VS/VdqpZV8CAy95IElqPKc/hj/hR9kIWYFUY8uGWQOIOX pNjLe5HSJk2oq7aNEKpEF7uKZQJBNbmiQZlKh3tfCzaNVa53bu9rWHIsZzHu9ttcemO6 TbnJZ4igFuxa5G9pWvHaXOn/gNLg9tzBqNviGTtwFJ7o8pCsOyRleNfrAAZOT0ODBYLC hNoQ== 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; bh=aeA5Vkokwz+19IYEjQX9Qy+WKWFgVA17zAu2invCFk4=; b=PjyW+G5Kqd9qhd1TY+e5VjM0w4TvhuBSnvixgquN2yUJPpY3ZbouJEUFfQyVOh/tBe pwtpGUuIH3Ec6rmo1GN+/yJH7gAUpRptx1lKm3K6C8i6sX1i4npMEvhRVnhuw+4yXwRn Xc49JGdh1PHpykuDYgb+sQwkOPkWz0NAhgyNbynydt3C8IlnHflGp75wqGRep2k7tcBH D7yHzch/VJaY6UAoU2iOk3+m+RvNUH0EO30Dd5D2bkYj6ukmETGy2/0Yp7T9aiuN4zk4 gjD/VDU5hebH09KtZhopJaoiL5+rDSixGJ3IQYGzBTJQLSp80W502g355JqY+tVb/3rF /tUw== 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 f194si900423oig.243.2020.01.10.03.01.38; Fri, 10 Jan 2020 03:01:51 -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 S1727646AbgAJLAg (ORCPT + 99 others); Fri, 10 Jan 2020 06:00:36 -0500 Received: from jabberwock.ucw.cz ([46.255.230.98]:48576 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727537AbgAJLAf (ORCPT ); Fri, 10 Jan 2020 06:00:35 -0500 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id EF8B91C25B1; Fri, 10 Jan 2020 12:00:33 +0100 (CET) Date: Fri, 10 Jan 2020 12:00:33 +0100 From: Pavel Machek To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Marcel Holtmann , Sasha Levin Subject: Re: [PATCH 4.19 118/219] rfkill: allocate static minor Message-ID: <20200110110033.GA11563@amd> References: <20191229162508.458551679@linuxfoundation.org> <20191229162526.353368525@linuxfoundation.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="tThc/1wpZn/ma/RB" Content-Disposition: inline In-Reply-To: <20191229162526.353368525@linuxfoundation.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --tThc/1wpZn/ma/RB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun 2019-12-29 18:18:40, Greg Kroah-Hartman wrote: > From: Marcel Holtmann >=20 > [ Upstream commit 8670b2b8b029a6650d133486be9d2ace146fd29a ] >=20 > udev has a feature of creating /dev/ device-nodes if it finds > a devnode: modalias. This allows for auto-loading of modules that > provide the node. This requires to use a statically allocated minor > number for misc character devices. >=20 > However, rfkill uses dynamic minor numbers and prevents auto-loading > of the module. So allocate the next static misc minor number and use > it for rfkill. Is this good idea for stable? I don't see this major/minor allocated in devices.txt in mainline. Should something like this be added? Signed-off-by: Pavel Machek diff --git a/Documentation/admin-guide/devices.txt b/Documentation/admin-gu= ide/devices.txt index 1c5d2281efc9..aa888a350df8 100644 --- a/Documentation/admin-guide/devices.txt +++ b/Documentation/admin-guide/devices.txt @@ -375,8 +375,9 @@ 239 =3D /dev/uhid User-space I/O driver support for HID subsystem 240 =3D /dev/userio Serio driver testing device 241 =3D /dev/vhost-vsock Host kernel driver for virtio vsock + 242 =3D /dev/rfkill Turning off radio transmissions (rfkill) =20 - 242-254 Reserved for local use + 243-254 Reserved for local use 255 Reserved for MISC_DYNAMIC_MINOR =20 11 char Raw keyboard device (Linux/SPARC only) --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --tThc/1wpZn/ma/RB Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAl4YWVEACgkQMOfwapXb+vKgbwCfaxl2Th8eHRr/0sPSWcX1vNAW BisAnRRhvoGsuElHI0g8boMeSvbzTo7F =66Dr -----END PGP SIGNATURE----- --tThc/1wpZn/ma/RB--