[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Thu, 12 Dec 2019 14:56:56 +0000
From: Vitor Soares <Vitor.Soares@...opsys.com>
To: Greg KH <gregkh@...uxfoundation.org>
CC: "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"linux-i3c@...ts.infradead.org" <linux-i3c@...ts.infradead.org>,
Joao Pinto <Joao.Pinto@...opsys.com>,
"bbrezillon@...nel.org" <bbrezillon@...nel.org>,
"wsa@...-dreams.de" <wsa@...-dreams.de>,
"arnd@...db.de" <arnd@...db.de>,
"broonie@...nel.org" <broonie@...nel.org>
Subject: RE: [RFC 5/5] i3c: add i3cdev module to expose i3c dev in /dev
Hi Greg,
From: Greg KH <gregkh@...uxfoundation.org>
Date: Thu, Dec 12, 2019 at 14:44:59
> On Tue, Dec 10, 2019 at 04:37:33PM +0100, Vitor Soares wrote:
> > +static int __init i3cdev_init(void)
> > +{
> > + int res;
> > +
> > + pr_info("i3c /dev entries driver\n");
>
> Please remove debugging information, kernel code should be quiet unless
> something goes wrong.
I will remove it.
>
> > + /* Dynamically request unused major number */
> > + res = alloc_chrdev_region(&i3cdev_number, 0, N_I3C_MINORS, "i3c");
>
> Do you really need a whole major, or will a few minors work?
>
> thanks,
>
> greg k-h
I'm reserving one per device. What do you suggest?
Best regards,
Vitor Soares
Powered by blists - more mailing lists