Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1142972rwb; Fri, 23 Sep 2022 08:42:58 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6jL9u47orq5Lde8GKP10PqBVyOk4o+x+MBclXrUt2pZWhULIxaeOzrCh3NTk0sW2gAL2yT X-Received: by 2002:a63:ff55:0:b0:438:fa5d:af36 with SMTP id s21-20020a63ff55000000b00438fa5daf36mr8112472pgk.533.1663947778248; Fri, 23 Sep 2022 08:42:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663947778; cv=none; d=google.com; s=arc-20160816; b=sjqtMdsH9T1fWi/xOn5pMjH235SRbTZ6c5ZaVIfW5VZRjNypQWheQzzIUZjYLdVgYV s9LoZOXUbXeDpbRUw9q+Lf6mLeIJAl6URpOd+cF+Q+0d1C7t6CqVT72UfI4FNDe8M8ni 94/cSFvx/8QgnCWFq9siJVNO1RvrptJ58kusa4IgmAxOyAOLO0/0UM/c4AhBvP0MaiML Q8CoU5ALkKwsz7HMlxupqhKl8pUqSgtvsO/hNmwF7c/duC4X80bj3pfq2X5saPJdoCO+ 5xrjP38V9Z6NoZZzj16UC/ddKcSCvRhYVXry7l8jD1wVPnfC4hrDvV5+y7Lz3N9l4rxy vQxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:dlp-filter:cms-type :content-transfer-encoding:mime-version:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature:dkim-filter; bh=njEDpC5oeJPSNhSYmRD3X20OTsya0gdbEZd6SkCmRhw=; b=qoMEwDPQxuVbQBLfJJe86+E8PbFh/GChMkvv3zUP2Sdp97geDov479FplKuNmhWd5y vlFwjCrE/wC1dlcxjw0KJc7Rn1/v/o1X4EBtWw74xuzW9D3fquSQv5mszoPl+TdvPdbr Aoq/3g6tLVf1t9qcgJ7aPOuaokYQZEMlCuXFud9K8pTh4YFma+Bvjultg7LRwCoaLG6I cIIu9HnYJN8y6l0B+FviNoh/4XsVNWEx0Q6wrMxaZ56C51geMYEMyqPCy5W8hCZgoMUP 4OnFNGqcDsDiWPfr21dDiJ3NF4MEdBxZPRazbse5FborjeD2NUBwcNuerEfpWt0winsP prtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=uJPfFpAB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ix7-20020a170902f80700b00174cfdbe39bsi3041616plb.89.2022.09.23.08.42.46; Fri, 23 Sep 2022 08:42:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=uJPfFpAB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232216AbiIWPJq (ORCPT + 99 others); Fri, 23 Sep 2022 11:09:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231835AbiIWPJn (ORCPT ); Fri, 23 Sep 2022 11:09:43 -0400 Received: from mailout4.samsung.com (mailout4.samsung.com [203.254.224.34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5DD7A1704E for ; Fri, 23 Sep 2022 08:09:38 -0700 (PDT) Received: from epcas1p1.samsung.com (unknown [182.195.41.45]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20220923150935epoutp0489aff483db1444ec7db654804967c12b~Xhd3Vscs01108311083epoutp04D for ; Fri, 23 Sep 2022 15:09:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20220923150935epoutp0489aff483db1444ec7db654804967c12b~Xhd3Vscs01108311083epoutp04D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1663945775; bh=njEDpC5oeJPSNhSYmRD3X20OTsya0gdbEZd6SkCmRhw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=uJPfFpABAk7bmBkYXfyptGpLMG20TcvFAPdYiUybsUdvuSBN2t742M1HTydtbNFK6 C/4RFK7KzpmPvOFjJUqafKFLTwojXXErquX72Ksa99hc8YzaH1SmJiZtJIkvP4P2Q9 aykFRD8qY/DcA7vU7OfuknGq1bId5tDKNDD9ZlOs= Received: from epsnrtp1.localdomain (unknown [182.195.42.162]) by epcas1p4.samsung.com (KnoxPortal) with ESMTP id 20220923150934epcas1p45e25c0a20a62821e1d61b90921f684cd~Xhd2p94c-3133331333epcas1p4i; Fri, 23 Sep 2022 15:09:34 +0000 (GMT) Received: from epsmges1p2.samsung.com (unknown [182.195.38.232]) by epsnrtp1.localdomain (Postfix) with ESMTP id 4MYwY92pV2z4x9Ps; Fri, 23 Sep 2022 15:09:33 +0000 (GMT) Received: from epcas1p4.samsung.com ( [182.195.41.48]) by epsmges1p2.samsung.com (Symantec Messaging Gateway) with SMTP id FD.EE.51827.D2CCD236; Sat, 24 Sep 2022 00:09:33 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas1p2.samsung.com (KnoxPortal) with ESMTPA id 20220923150932epcas1p260522873fcf003b821a0d88211e7fec2~Xhd1DxUPn0139301393epcas1p2O; Fri, 23 Sep 2022 15:09:32 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20220923150932epsmtrp256a0228c003e923fecf04979080ba55e~Xhd1C-2Ak1039410394epsmtrp2f; Fri, 23 Sep 2022 15:09:32 +0000 (GMT) X-AuditID: b6c32a36-17bfa7000000ca73-09-632dcc2dbc64 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id 8C.66.18644.C2CCD236; Sat, 24 Sep 2022 00:09:32 +0900 (KST) Received: from jiho-chu04.tn.corp.samsungelectronics.net (unknown [10.113.112.236]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20220923150932epsmtip20a8a5da2fe887c335cf636f1c3cd3cc2~Xhd0yniwQ1911719117epsmtip2U; Fri, 23 Sep 2022 15:09:32 +0000 (GMT) Date: Sat, 24 Sep 2022 00:09:32 +0900 From: Jiho Chu To: "Arnd Bergmann" Cc: "Greg Kroah-Hartman" , ogabbay@kernel.org, "Krzysztof Kozlowski" , "Mark Brown" , linux-kernel@vger.kernel.org, yelini.jeong@samsung.com, myungjoo.ham@samsung.com Subject: Re: [PATCH v2 01/13] trinity: Add base driver Message-Id: <20220924000932.689c44f37abecb153175ed8b@samsung.com> In-Reply-To: <51275e33-c791-4593-84d1-eedad27d7fd6@www.fastmail.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprFJsWRmVeSWpSXmKPExsWy7bCmga7uGd1kgzubBC3+TjrGbjH14RM2 i+bF69ks3nfvZrbY+3oru8XlXXPYLG43rmCz2NfzkdHi+bTrLA6cHr9/TWL02LSqk83jzrU9 bB77565h9+jbsorR4/MmuQC2qGybjNTElNQihdS85PyUzLx0WyXv4HjneFMzA0NdQ0sLcyWF vMTcVFslF58AXbfMHKCrlBTKEnNKgUIBicXFSvp2NkX5pSWpChn5xSW2SqkFKTkFpgV6xYm5 xaV56Xp5qSV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M2 i+bF69ks3nfvZrbY+3oru8XlXXPYLG43rmCz2NfzkdHi+bTrLA6cHr9/TWL02LSqk83jzrU9 bB77565h9+jbsorR4/MmuQC2KC6blNSczLLUIn27BK6MT8+b2AoWcFT0nVjI1sC4ma2LkZND QsBE4u+VJuYuRi4OIYEdjBJPVnyASkhIbLq3HCjBAWQLSxw+XAxR08Yk0dX6gwWkhkVAVaL7 7X5WEJsNyJ45Yw07iC0ioCzx68ckVpAGZoE/jBLvO54ygSSEBcwkJkydCVbEK+AocalzAdgg TgEXia+zuxghNrxlkrg3/QYzxBUWEnd7VrCCXMErICjxd4cwSJhZQEvi4a9bLBC2vMT2t3OY JzAKzkKomoWkahaSqgWMzKsYJVMLinPTc4sNC4zyUsv1ihNzi0vz0vWS83M3MYJjREtrB+Oe VR/0DjEycTAeYpTgYFYS4Z19RzNZiDclsbIqtSg/vqg0J7X4EKM0B4uSOO+FrpPxQgLpiSWp 2ampBalFMFkmDk6pBqaAxbUvlqpbHJ21RFK87Xv2w6PmUyraXl09qdfh8XuddvHvN3+btsoa cy6Wboj4WZKS7cFvUzUlgn/n7BN1Sh5cxx+qWaUvqpzYvPH/52Mdnzqnun6ee6j70qxvGkdm Suj47PcNuntX5cl8liTWSq+Ua4eeqUkkF0d+lpoQ1fBYmEvQQP3DVhmmrZlOJieYX2de+rXA L2t2qO+P41Lrzv3KPF6nZf7gt3t5qearU67Zx3Z+WJTg8cPDSCNiT41Mbdw2LtHoSeKPOw8X 3TVMCv9yb0V+7rENBoct5uaf3z3bo+dg78NW99cXKnRjhJcWewrq8t3RqIxIjb3ykYX/Q6lz wr/alWuP/p635pHfbB0lluKMREMt5qLiRACva9QdAAMAAA== X-CMS-MailID: 20220923150932epcas1p260522873fcf003b821a0d88211e7fec2 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: SVC_REQ_APPROVE CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20220917072357epcas1p17b277154f0d020435417450fa0337906 References: <20220917072356.2255620-1-jiho.chu@samsung.com> <20220917072356.2255620-2-jiho.chu@samsung.com> <20220917234918.8b94d2690b8533bd47cf64e0@samsung.com> <51275e33-c791-4593-84d1-eedad27d7fd6@www.fastmail.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 22 Sep 2022 15:56:51 +0200 "Arnd Bergmann" wrote: > On Sat, Sep 17, 2022, at 4:49 PM, Jiho Chu wrote: > > On Sat, 17 Sep 2022 09:41:13 +0200 > > "Arnd Bergmann" wrote: > >> > >> If you have the need to manage multiple devices here, maybe use > >> a dynamic major number and have the chardev code allocate the > >> minor numbers, instead of using multiple misc devices and > >> doing that yourself. > >> > > > > I'm little confusing. It means that managing own char devices is proper, > > not using misc device? But, it's still under misc dir. > > There is no strict connection between miscdevices and drivers/misc. > > The former is for drivers that tend to have only one instance > in a system, while the latter is for drivers that do not have > a separate subsystem. > > Arnd > Thanks for the clarification. Allocating a dynamic major could be better for trinity, which could have multiple instances. I'll rewrite code for it in next revision. Best regards, Jiho chu