Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752310AbdH1JJt (ORCPT ); Mon, 28 Aug 2017 05:09:49 -0400 Received: from lb1-smtp-cloud7.xs4all.net ([194.109.24.24]:52755 "EHLO lb1-smtp-cloud7.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751262AbdH1JJr (ORCPT ); Mon, 28 Aug 2017 05:09:47 -0400 Subject: Re: [PATCH v4 3/7] media: open.rst: remove the minor number range To: Mauro Carvalho Chehab , Linux Doc Mailing List , Linux Media Mailing List References: <477281a419dc0a2208e967a7ad312ba79b8ee326.1503747774.git.mchehab@s-opensource.com> Cc: Mauro Carvalho Chehab , linux-kernel@vger.kernel.org, Jonathan Corbet , Hans Verkuil From: Hans Verkuil Message-ID: Date: Mon, 28 Aug 2017 11:09:44 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: <477281a419dc0a2208e967a7ad312ba79b8ee326.1503747774.git.mchehab@s-opensource.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfC4KvCNR2GLMmNKynepaRRjPpfaq7L3hklJy7PkWJR8Mv0uK0PhkPHwJ2OgR5N/bsg4hRMabXCmVf2l4i5nCcb9irLpgDu0Ds9RwN3NldXv45TGLx596 BZfb1H+1d++KJmYkBmZRFXsfOqUFTz6URTmTfXxaRTx03UjzhfwYNpHpw79aCqfvEFRgRd1mwfXhkg4prU8vGW4naoMYaBx8bCJAZltmaxYkZKsu7i+Z2dgq g6tWDpKd4d4L/mCe2rU01wS208fEtW1ZOzXGJYtav66Fjs0eZdi6w11DxYTfiIE+fViOC5O05QSqE/TK8+OZ3AEyirG+naFIm+SdH35Apd3G8aEk3DU5pP+d H2k0wwUoPg/wZVsfFxZ7x5tj9f79TkyECkRN3RAiJiuJGcix90g= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1744 Lines: 46 On 26/08/17 13:53, Mauro Carvalho Chehab wrote: > minor numbers use to range between 0 to 255, but that > was changed a long time ago. While it still applies when > CONFIG_VIDEO_FIXED_MINOR_RANGES, when the minor number is > dynamically allocated, this may not be true. In any case, > this is not relevant, as udev will take care of it. > > So, remove this useless misinformation. > > Signed-off-by: Mauro Carvalho Chehab Acked-by: Hans Verkuil > --- > Documentation/media/uapi/v4l/open.rst | 9 ++++----- > 1 file changed, 4 insertions(+), 5 deletions(-) > > diff --git a/Documentation/media/uapi/v4l/open.rst b/Documentation/media/uapi/v4l/open.rst > index fc0037091814..96ac972c1fa2 100644 > --- a/Documentation/media/uapi/v4l/open.rst > +++ b/Documentation/media/uapi/v4l/open.rst > @@ -19,11 +19,10 @@ helper functions and a common application interface specified in this > document. > > Each driver thus loaded registers one or more device nodes with major > -number 81 and a minor number between 0 and 255. Minor numbers are > -allocated dynamically unless the kernel is compiled with the kernel > -option CONFIG_VIDEO_FIXED_MINOR_RANGES. In that case minor numbers > -are allocated in ranges depending on the device node type (video, radio, > -etc.). > +number 81. Minor numbers are allocated dynamically unless the kernel > +is compiled with the kernel option CONFIG_VIDEO_FIXED_MINOR_RANGES. I wonder if we shouldn't remove this kernel option completely. Does it make any sense to keep holding on to this? Regards, Hans > +In that case minor numbers are allocated in ranges depending on the > +device node type. > > The existing V4L2 device node types are: > >