Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2774504pxb; Tue, 9 Mar 2021 10:28:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJzdHti5hX7U17rzKlaqziiAYcMYxkfcUbdtUXE4uxQrGNkNLVSnqQX3XvgObLnff0RmOscn X-Received: by 2002:aa7:ca02:: with SMTP id y2mr5897005eds.53.1615314514788; Tue, 09 Mar 2021 10:28:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615314514; cv=none; d=google.com; s=arc-20160816; b=H+L/Ubcpi9Zn+yA9D+rgRHzzjDnvF1uZOE4Ww6Y/+O8U+ZOk7D8MVPDzB8ZSDmY4cp jMmtDiC7ZzlDjBLrv9eyLj7/CwKhbaSESU4iSbVsSRptfG0iQ2EovFg+X+8hzGAU68lr JFU5h78OWG5vyEUVLMoVaY4rnazCgm8GOXitzXCrgxOzy9HjJa/8uXClRI5VVPWEGAia UoVUA7H13+CPAYm91+vjUTJwdKpgfCj8ftEwtUiNOOfQPTKiM3Elo7xod6ilnKnrS45q LXR6BvvQy8pmDREp6VqFLb1hNEQYKyRmeDOFKxLh6Fti5XlvWC+gV9L+wtY3BA5AQxvY mEpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:in-reply-to:subject :cc:to:from:user-agent:references:ironport-sdr:ironport-sdr; bh=ymhMpFXc809DbByryGNYZmDqNP9Lp7it5bPPczs4H50=; b=MJDnymPgar+TiNIMS4weniyoCgiyGXqQu/vJqKuIsNOn5ynea9W+8+lsifLAkcSFzf xCpyMuuXFZIKhtfDlbNl5BU5CMYNWjiDeA1DkwbaHSUSflXSS3pgv9vjRvBeGtSLVysa JNzUYF6+FBHiwQij8R223Chq3NMVPmE/qPIesLWPhBOhIcJ0UzJ+up4F9xTcxcs1C9xH DKszZ7zncOkEVfi+SKgzRh66RBNxL5YZg0jNXZw9JrppoyuAaKz22LYu9L0zTS7JLg4V UBkCs4DdgK+VO6hm6QElpkx2znGkXoLRs6iDHsmshQ/dWG2YTNM0OnyeojFPbCwOv/TG m1og== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x21si9500096edv.185.2021.03.09.10.28.12; Tue, 09 Mar 2021 10:28:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230111AbhCIS1O (ORCPT + 99 others); Tue, 9 Mar 2021 13:27:14 -0500 Received: from mga09.intel.com ([134.134.136.24]:34136 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229815AbhCIS04 (ORCPT ); Tue, 9 Mar 2021 13:26:56 -0500 IronPort-SDR: L4Bnj4u6DTGgMrLFSe6igXX55273ihzW+GGZuzw/jZ/+ss/iUxLyzEUE2PvfoEbR9C3eivm24L 7mUhyShrUgyw== X-IronPort-AV: E=McAfee;i="6000,8403,9917"; a="188399795" X-IronPort-AV: E=Sophos;i="5.81,236,1610438400"; d="scan'208";a="188399795" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Mar 2021 10:26:50 -0800 IronPort-SDR: DsIsB94LmBqxVFlg3gxJEokxZbihTfvRnqEL8y2qSbmpk1zDuUp9i4UumqBgGXw3M05AAQp1je +AI/3o0NEWng== X-IronPort-AV: E=Sophos;i="5.81,236,1610438400"; d="scan'208";a="409842966" Received: from gna-dev.igk.intel.com (HELO localhost) ([10.102.80.34]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Mar 2021 10:26:47 -0800 References: <20210216160525.5028-1-maciej.kwapulinski@linux.intel.com> <20210216160525.5028-2-maciej.kwapulinski@linux.intel.com> <85wnuvrnml.fsf@linux.intel.com> User-agent: mu4e 1.4.13; emacs 26.3 From: Maciej Kwapulinski To: Greg Kroah-Hartman Cc: Arnd Bergmann , Jonathan Corbet , Derek Kiernan , Dragan Cvetic , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Tomasz Jankowski , Savo Novakovic , Jianxun Zhang Subject: Re: [PATCH v1 01/12] gna: add driver module In-reply-to: Date: Tue, 09 Mar 2021 19:26:44 +0100 Message-ID: <85wnug2nff.fsf@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Greg Kroah-Hartman writes: > On Fri, Feb 26, 2021 at 01:59:14PM +0100, Maciej Kwapulinski wrote: >> >> Greg Kroah-Hartman writes: >> >> > On Tue, Feb 16, 2021 at 05:05:14PM +0100, Maciej Kwapulinski wrote: >> .... >> >> --- /dev/null >> >> +++ b/drivers/misc/gna/gna_driver.h >> >> @@ -0,0 +1,41 @@ >> >> +/* SPDX-License-Identifier: GPL-2.0-only */ >> >> +/* Copyright(c) 2017-2021 Intel Corporation */ >> >> + >> >> +#ifndef __GNA_DRIVER_H__ >> >> +#define __GNA_DRIVER_H__ >> >> + >> >> +#include >> >> +#include >> >> +#include >> >> + >> >> +#define GNA_DRV_NAME "gna" >> > >> > Way too generic, no one knows what "gna" is. >> > >> >> "intel gna" is much more verbose in search engines. >> As we do not (plan to) have more "gna" drivers, is the following ok?: >> >> intel-gna >> >> the change would imply the following: >> >> prompt$ lspci -s 00:00.3 -vvvv >> 00:00.3 System peripheral: Intel Corporation Device 3190 (rev 03) >> Subsystem: Intel Corporation Device 2072 >> .... >> Kernel driver in use: intel-gna >> Kernel modules: gna >> >> is it ok? > > Why not intel-gna as the kernel module as well? > >> also, how about the interface to library (it's part of one of next patches)?: >> prompt$ file /dev/gna0 >> /dev/gna0: character special (235/0) >> >> can "gna" stay intact here? > > Again, I have no idea what "gna" is, so you might want to pick something > more descriptive? > >> I'm pointing this out, because gna exists on the market for a while and >> changing the above may have some impact we'd like to avoid. > > If it exists but Linux does not support it, how would anyone know about > it? :) > > Please use real terms where possible. > > thanks, > > greg k-h summarizing gna name justification topic, is the intel_gna.ko driver's following layout within kernel code OK for You?: 1. driver/module name: prompt$ lspci -s 00:00.3 -vvvv 00:00.3 System peripheral: Intel Corporation Device 3190 (rev 03) .... Kernel driver in use: intel_gna Kernel modules: intel_gna 2. mv drivers/misc/gna/* drivers/misc/intel_gna/ 3. prompt$ file /dev/intel_gna0 /dev/intel_gna0: character special (10/120) # ..., /dev/intel_gna1, /dev/intel_gna2 for subsequent devices