Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp5884087pxb; Tue, 16 Feb 2021 09:51:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJyPTnp9txL98QgtJcHytOgooMwFxefLmvO5tjIJLhJDPX6GnTb6gG6Yj03eI5+cO04JQ9F3 X-Received: by 2002:a17:907:20a8:: with SMTP id pw8mr22033983ejb.9.1613497878031; Tue, 16 Feb 2021 09:51:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613497878; cv=none; d=google.com; s=arc-20160816; b=STxQRMYi4PUW+sBHQnw7gJpZZdDdEe7pKz4Nfof03f10/WhuHtL36UnxTBFz+pjq6m I7532eMccwJ+7TEl58H2IV+dSIvDP2JzPQcwJIUH8wxRsb+U77RW11ZBXwDWwsG9pryu pstY8beKZHD4MnDRxe8GfIcWJhEiR534egeXCT8+zs1vs5dmdGpuhL4zKCvlPAK0neh5 4AT9am5GyauvWldtJrY/cjHIxK4q4x0PXyh0t+NhmvtF5okIrnqnNvk6PXQALF+PUb9Q 4h/adGm6t9dEpdTzvpxbpy3jm0vJGnb1/AeFUvNXsj3pq+aQrWZxLwAmNiXjZOMwJVhr usoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=+LZVYDAAhGgSZe8icLLN1fHz4NSFmCjtQ3EVdj5JWFU=; b=mEs1hsgf9PGVigirL6u8unG+5U9sVGfClyIenbvCjG1gjOwSmNVkApEKH7cQ3v2sTz di8qjrabKXahrDEkG55Z7Gl5WX57Q0Z2J+JlxyByXegvUGV4AXtwxeUsocMVQgv+0+d9 fEiz6421KjbQzy1m/Xu/rMjrx0EYsN3KY1H2kUQn5bk6GfobtRc4oZr+selJKWzNt8xu ZqofwVKP5HmcxkMzDVn5o72xCELWsCfZNxOQ9O2kXRH+G5WHoa8CkWxWUqW1J2u2JNUT n+WyNTGUARmUuJ2qZXxUKsMa6QomssPH87mEV/tL1+sGtRESEFA5iHngye0Aqe8y97fn YLLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=QSxI3viB; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id va15si14248957ejb.13.2021.02.16.09.50.54; Tue, 16 Feb 2021 09:51:18 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=QSxI3viB; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230516AbhBPRsK (ORCPT + 99 others); Tue, 16 Feb 2021 12:48:10 -0500 Received: from mail.kernel.org ([198.145.29.99]:37090 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231322AbhBPRr1 (ORCPT ); Tue, 16 Feb 2021 12:47:27 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2B80364E04; Tue, 16 Feb 2021 17:46:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1613497606; bh=cyWmo2IWHz6XqlAutw5VL0hTTQ/Ovvrs0LDQkd9uUmI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=QSxI3viB0aH5Ccqfh5i+x+/nu+dfBHFZoK1THv+wMqsEZFVe0Jp83ooMfBsZyNLwX +pWHY4kn/l2QwaKoI2yAYIZBiAV6jlm4Qy5QaAzLbs/NAXqgEEx+o81mE5Hy7rRnNx v166mEDPC+oP+3blR7/P5nCyfHJEZMTlYCcnZUks= Date: Tue, 16 Feb 2021 18:46:44 +0100 From: Greg Kroah-Hartman To: Maciej Kwapulinski 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 Message-ID: References: <20210216160525.5028-1-maciej.kwapulinski@linux.intel.com> <20210216160525.5028-2-maciej.kwapulinski@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210216160525.5028-2-maciej.kwapulinski@linux.intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 16, 2021 at 05:05:14PM +0100, Maciej Kwapulinski wrote: > --- /dev/null > +++ b/drivers/misc/gna/gna_driver.c > @@ -0,0 +1,65 @@ > +// SPDX-License-Identifier: GPL-2.0-only > +// Copyright(c) 2017-2021 Intel Corporation > + > +#define pr_fmt(fmt) KBUILD_MODNAME " " fmt You are a driver, you should never need a pr_* call, so this should not be needed. You should always just use dev_* instead. > --- /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. > +#define GNA_DRV_VER "1.2.0" As Andy said, this means nothing within the kernel (or really, outside the kernel either), so please drop. > + > +#define GNA_MAX_DEVICES 16 Why 16? And if that's all, then just use the misc device api, that saves you so much overhead and mess and you don't have to worry about sysfs and classes or anything like that at all. thanks, greg k-h