Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp987965ybl; Thu, 12 Dec 2019 08:01:50 -0800 (PST) X-Google-Smtp-Source: APXvYqyPcjgzrWlFqMQ8czaeOKISiuiS3F8Vdg6as7fNsa9F5KbPNMuNmirKxQhPtzgxe3RQztji X-Received: by 2002:aca:c74e:: with SMTP id x75mr5590976oif.140.1576166509864; Thu, 12 Dec 2019 08:01:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576166509; cv=none; d=google.com; s=arc-20160816; b=HuUtHP+Xkn8T2qqkY+0geLiBe3KqzrT7H1VOfHmyfTxvYM5XO/TzIxnJltjoanMnD0 BSKvL3HV16CRUAmiVGOcrOBI5bTGWiQMPFf1AGeMjwA/jwJBtcAB5LmTlIo0+hN+++iF PppwJWbJ/v74QXO+NN3BqXVOcY6jPrJFvgu4wC7YAQMSXZnk9160mbc94v7z6vEUOAsR ctifRUjaNH9ow1EPkn+jRRfFCqvCoLClLshmogdg9mzb59JmkxLaquDwz1YD+M/cbExT +rGxTsfppps4wPdDAXmHTRl2IucBxCU/lbYtObchVSR01F+xjxnfkzKHc7XCtWajPh0I 2LjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=wPOiNZLFtDsC4iRr9sdq1ymU5fUC1b3GqIYucviE0lM=; b=DLaRotuHMXD8/23KZGotagO1Bb5zYIoOp2dC67jjEK/FyJ78NZgqqI1n+vLC4QCiCq IJIwowTYrc0cvt3O1O5jmYzV2HYNwdXTxcYIwExqZvEOmRHpA1zqsqa3uyqJDhOIxe+u +E3EPC52BpnKbgGUoGlesGGLtn1mVkECIoj6BQnc7c6erWZ3G3RkRN8j4dVwf9FnuF5+ ia3iNinN2/bUAIKhurTEXGG0pRjxSdFW+WvLP5K6Izo7jbIVCE+2MES+qCpJSEe04Gnq VgGFB2HKmhJcUpi/sf7eMroDYDxJeZ4Ozv/vXHK2OFzURjj3/QYxk0+RuOSF/p/BoCNS 4O4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=r57OQ5Q6; 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 a12si3368677oie.87.2019.12.12.08.01.29; Thu, 12 Dec 2019 08:01:49 -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; dkim=pass header.i=@kernel.org header.s=default header.b=r57OQ5Q6; 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 S1729563AbfLLQAs (ORCPT + 99 others); Thu, 12 Dec 2019 11:00:48 -0500 Received: from mail.kernel.org ([198.145.29.99]:48610 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729247AbfLLQAs (ORCPT ); Thu, 12 Dec 2019 11:00:48 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 42DC92073D; Thu, 12 Dec 2019 16:00:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1576166447; bh=zOhoZ96LZPHtESEGfmQk605Uix32gjBq5vRqbFWGo50=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=r57OQ5Q6oili066DWlG8wNJ7fCnYqAjMHu8NCCPkw5/HF22VkrDgo5MdRtXUeS6G+ jFzQ9AV0kI7c+ArFu7TsHFJIR4R/SEf5Eh9lpAGndlSSlEr8MR9rHNfNPu2T5SvfBq 1xCrraeRlQKZkHh1836t26NluQWN5Wy7Xcidf7i8= Date: Thu, 12 Dec 2019 17:00:45 +0100 From: Greg KH To: Vitor Soares Cc: "linux-kernel@vger.kernel.org" , "linux-i3c@lists.infradead.org" , Joao Pinto , "bbrezillon@kernel.org" , "wsa@the-dreams.de" , "arnd@arndb.de" , "broonie@kernel.org" Subject: Re: [RFC 5/5] i3c: add i3cdev module to expose i3c dev in /dev Message-ID: <20191212160045.GA1672362@kroah.com> References: <20191212144459.GB1668196@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 12, 2019 at 02:56:56PM +0000, Vitor Soares wrote: > Hi Greg, > > From: Greg KH > 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? How many devices do you have in a system?