mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Andreas Färber" <afaerber@suse.de>
To: Paul Gortmaker <paul.gortmaker@windriver.com>,
	Sven Van Asbroeck <thesven73@gmail.com>
Cc: svendev@arcx.com, robh+dt@kernel.org, linus.walleij@linaro.org,
	lee.jones@linaro.org, mark.rutland@arm.com, treding@nvidia.com,
	david@lechnology.com, noralf@tronnes.org, johan@kernel.org,
	monstr@monstr.eu, michal.vokac@ysoft.com, arnd@arndb.de,
	gregkh@linuxfoundation.org, john.garry@huawei.com,
	geert+renesas@glider.be, robin.murphy@arm.com,
	sebastien.bourdelin@savoirfairelinux.com, icenowy@aosc.io,
	stuyoder@gmail.com, maxime.ripard@bootlin.com,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v7 1/6] fieldbus_dev: add Fieldbus Device subsystem.
Date: Tue, 22 Jan 2019 18:12:31 +0100	[thread overview]
Message-ID: <2f4406b5-9970-211e-beef-a8b6ad60b99e@suse.de> (raw)
In-Reply-To: <20190122165658.GH26416@windriver.com>

Am 22.01.19 um 17:56 schrieb Paul Gortmaker:
> [[PATCH v7 1/6] fieldbus_dev: add Fieldbus Device subsystem.] On 22/01/2019 (Tue 10:21) Sven Van Asbroeck wrote:
> 
>> Fieldbus device (client) adapters allow data exchange with a PLC aka.
>> "Fieldbus Controller" over a fieldbus (Profinet, FLNet, etc.)
>>
>> They are typically used when a Linux device wants to expose itself
>> as an actuator, motor, console light, switch, etc. over the fieldbus.
>>
>> This framework is designed to provide a generic interface to Fieldbus
>> Devices from both the Linux Kernel and the userspace.
>>
>> Signed-off-by: Sven Van Asbroeck <TheSven73@googlemail.com>
> 
> [...]
> 
>> diff --git a/drivers/fieldbus/Kconfig b/drivers/fieldbus/Kconfig
>> new file mode 100644
>> index 000000000000..5c2bef950d04
>> --- /dev/null
>> +++ b/drivers/fieldbus/Kconfig
>> @@ -0,0 +1,19 @@
>> +menuconfig FIELDBUS_DEV
>> +	bool "Fieldbus Device Support"
> 
> OK, so the core support is NOT tristate, ie not modular,

Is that intentional though, and if so, why?

If possible, I would much rather see it changed to tristate and leave
all the metadata below.

> so I think...
> 
>> diff --git a/drivers/fieldbus/dev_core.c b/drivers/fieldbus/dev_core.c
>> new file mode 100644
>> index 000000000000..c816df3201bb
>> --- /dev/null
>> +++ b/drivers/fieldbus/dev_core.c
>> @@ -0,0 +1,348 @@
>> +// SPDX-License-Identifier: GPL-2.0
>> +/*
>> + * Fieldbus Device Driver Core
>> + *
>> + */
>> +
>> +#include <linux/fieldbus_dev.h>
>> +#include <linux/mutex.h>
>> +#include <linux/module.h>
> 
> ...you don't need module.h here
> 
>> +#include <linux/device.h>
>> +#include <linux/idr.h>
>> +#include <linux/fs.h>
>> +#include <linux/slab.h>
>> +#include <linux/poll.h>
>> +
> 
> [...]
> 
>> +
>> +static void __exit fieldbus_exit(void)
>> +{
>> +	unregister_chrdev_region(fieldbus_devt, MAX_FIELDBUSES);
>> +	class_unregister(&fieldbus_class);
>> +}
>> +
>> +subsys_initcall(fieldbus_init);
>> +module_exit(fieldbus_exit);
> 
> ...and the module_exit is never called, so fieldbus_exit is dead code
> and hence both should be removed.
> 
>> +
>> +MODULE_AUTHOR("Sven Van Asbroeck <TheSven73@googlemail.com>");
>> +MODULE_AUTHOR("Jonathan Stiles <jonathans@arcx.com>");
>> +MODULE_DESCRIPTION("Fieldbus Device Driver Core");
>> +MODULE_LICENSE("GPL v2");

Sven, as this code appears to be all by ArcX people, any chance you can
make it just GPL (SPDX GPL-2.0-or-later)? Only reason to have it v2-only
would be if this code was derived from v2-only code that can't be
relicensed anymore.

Thanks,
Andreas

-- 
SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Felix Imendörffer, Jane Smithard, Graham Norton
HRB 21284 (AG Nürnberg)

  reply	other threads:[~2019-01-22 17:12 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-22 15:21 [PATCH v7 0/6] Add Fieldbus subsystem + support HMS Profinet card Sven Van Asbroeck
2019-01-22 15:21 ` [PATCH v7 1/6] fieldbus_dev: add Fieldbus Device subsystem Sven Van Asbroeck
2019-01-22 16:56   ` Paul Gortmaker
2019-01-22 17:12     ` Andreas Färber [this message]
2019-01-22 18:52       ` Greg KH
2019-01-22 21:51         ` Paul Gortmaker
2019-01-24 18:07         ` Sven Van Asbroeck
2019-01-24 18:25           ` Greg KH
2019-03-01 13:35           ` Pavel Machek
2019-03-01 13:34         ` Pavel Machek
2019-03-01 14:24           ` Greg KH
2019-01-22 15:21 ` [PATCH v7 2/6] anybus-s: support HMS Anybus-S bus Sven Van Asbroeck
2019-01-22 15:21 ` [PATCH v7 3/6] anybus-s: support the Arcx anybus controller Sven Van Asbroeck
2019-01-22 15:21 ` [PATCH v7 4/6] dt-bindings: anybus-controller: document devicetree binding Sven Van Asbroeck
2019-01-22 15:21 ` [PATCH v7 5/6] dt-bindings: Add vendor prefix for arcx / Archronix Sven Van Asbroeck
2019-01-22 15:21 ` [PATCH v7 6/6] fieldbus_dev: support HMS Profinet IRT industrial controller Sven Van Asbroeck

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2f4406b5-9970-211e-beef-a8b6ad60b99e@suse.de \
    --to=afaerber@suse.de \
    --cc=arnd@arndb.de \
    --cc=david@lechnology.com \
    --cc=geert+renesas@glider.be \
    --cc=gregkh@linuxfoundation.org \
    --cc=icenowy@aosc.io \
    --cc=johan@kernel.org \
    --cc=john.garry@huawei.com \
    --cc=lee.jones@linaro.org \
    --cc=linus.walleij@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=maxime.ripard@bootlin.com \
    --cc=michal.vokac@ysoft.com \
    --cc=monstr@monstr.eu \
    --cc=noralf@tronnes.org \
    --cc=paul.gortmaker@windriver.com \
    --cc=robh+dt@kernel.org \
    --cc=robin.murphy@arm.com \
    --cc=sebastien.bourdelin@savoirfairelinux.com \
    --cc=stuyoder@gmail.com \
    --cc=svendev@arcx.com \
    --cc=thesven73@gmail.com \
    --cc=treding@nvidia.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®