From: Lee Jones <lee.jones@linaro.org>
To: AceLan Kao <chia-lin.kao@canonical.com>
Cc: Shihlun Lin <shihlun.lin@advantech.com.tw>,
Mauro Carvalho Chehab <mchehab+huawei@kernel.org>,
"David S . Miller" <davem@davemloft.net>,
Rob Herring <robh@kernel.org>,
"Linux-Kernel@Vger. Kernel. Org" <linux-kernel@vger.kernel.org>,
devicetree@vger.kernel.org,
Campion Kang <campion.kang@advantech.com.tw>
Subject: Re: [PATCH v3 5/6] mfd: ahc1ec0-hwmon: Add sub-device hwmon for Advantech embedded controller
Date: Tue, 3 Nov 2020 08:43:38 +0000 [thread overview]
Message-ID: <20201103084338.GI4488@dell> (raw)
In-Reply-To: <20201103084053.GH4488@dell>
On Tue, 03 Nov 2020, Lee Jones wrote:
> On Tue, 03 Nov 2020, AceLan Kao wrote:
>
> > Hi Lee,
> >
> > One question for you.
> >
> > Lee Jones <lee.jones@linaro.org> 於 2020年10月29日 週四 下午9:14寫道:
> > >
> > > On Thu, 29 Oct 2020, Shihlun Lin wrote:
> > >
> > > > This is one of sub-device driver for Advantech embedded controller
> > > > AHC1EC0. This driver provides sysfs ABI for Advantech related
> > > > applications to monitor the system status.
> > > >
> > > > Signed-off-by: Shihlun Lin <shihlun.lin@advantech.com.tw>
> > > > Reported-by: kernel test robot <lkp@intel.com>
> > >
> > > LKP reported that your driver needed upstreaming?
> > >
> > > I'm confused!
> > >
> > > > ---
> > > > drivers/mfd/Kconfig | 8 +
> > > > drivers/mfd/Makefile | 1 +
> > > > drivers/mfd/ahc1ec0-hwmon.c | 1514 +++++++++++++++++++++++++++++++++++
> > >
> > > This obviously belongs in drivers/hwmon.
> > >
> > > > 3 files changed, 1523 insertions(+)
> > > > create mode 100644 drivers/mfd/ahc1ec0-hwmon.c
> > > >
> > > > diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig
> > > > index 965bcafbe5b2..52ca49b211fc 100644
> > > > --- a/drivers/mfd/Kconfig
> > > > +++ b/drivers/mfd/Kconfig
> > > > @@ -2175,5 +2175,13 @@ config MFD_AHC1EC0
> > > > provides expose functions for sub-devices to read/write the value
> > > > to embedded controller.
> > > >
> > > > +config MFD_AHC1EC0_HWMON
> > > > + tristate "Advantech EC Hareware Monitor Function"
> > > > + depends on MFD_AHC1EC0
> > > > + help
> > > > + This is sub-device for Advantech embedded controller AHC1EC0. This
> > > > + driver provides the sysfs attribues for applications to monitor
> > > > + the system status.
> > > > +
> > > > endmenu
> > > > endif
> > > > diff --git a/drivers/mfd/Makefile b/drivers/mfd/Makefile
> > > > index 80a9a2bdc3ba..eb645db817b5 100644
> > > > --- a/drivers/mfd/Makefile
> > > > +++ b/drivers/mfd/Makefile
> > > > @@ -269,3 +269,4 @@ obj-$(CONFIG_MFD_SIMPLE_MFD_I2C) += simple-mfd-i2c.o
> > > > obj-$(CONFIG_MFD_INTEL_M10_BMC) += intel-m10-bmc.o
> > > >
> > > > obj-$(CONFIG_MFD_AHC1EC0) += ahc1ec0.o
> > > > +obj-$(CONFIG_MFD_AHC1EC0_HWMON) += ahc1ec0-hwmon.o
> > > > diff --git a/drivers/mfd/ahc1ec0-hwmon.c b/drivers/mfd/ahc1ec0-hwmon.c
> > > > new file mode 100644
> > > > index 000000000000..3e493b040b4a
> > > > --- /dev/null
> > > > +++ b/drivers/mfd/ahc1ec0-hwmon.c
> > > > @@ -0,0 +1,1514 @@
> > > > +// SPDX-License-Identifier: GPL-2.0-only
> > > > +/*****************************************************************************
> > > > + * Copyright (c) 2018, Advantech Automation Corp.
> > >
> > > You can't just lift a whole driver from downstream code and send it to
> > > the mailing list as-is.
> > Could you elaborate more about which part should be fixed, and how it
> > should look like?
>
> Frankly, no.
>
> I would expect a contributor of a several thousand line patch-set to
> at least read the documentation and adhere to it prior to anyone
> conducting a full review. Simply plucking a very old driver set from
> a BSP kernel and dumping it on the upstream mailing list is not the
> way to gain the right kind of attention.
>
> At the very least (this is not an exhaustive list);
>
> - all of the copyrights need to be up-to-date
> - the drivers need to be located in their correct subsystems
> - any internal references/comment headers need to be removed
> - licences should be compatible with upstreaming
> - hacks removed
> - builds without errors or warnings
> - checkpatch.pl passed
> - submission should tick all of the boxes in SubmittingPatches
> - removal of changelogs/versions
> - this is the first version as far as the kernel is concerned
Also spell-check. Literally the 2nd line:
config MFD_AHC1EC0_HWMON
tristate "Advantech EC Hareware Monitor Function"
I don't know what Hareware is, but is sounds fast! ;)
> > > > + * THIS IS AN UNPUBLISHED WORK CONTAINING CONFIDENTIAL AND PROPRIETARY
> > > > + * INFORMATION WHICH IS THE PROPERTY OF ADVANTECH AUTOMATION CORP.
> > > > + *
> > > > + * ANY DISCLOSURE, USE, OR REPRODUCTION, WITHOUT WRITTEN AUTHORIZATION FROM
> > > > + * ADVANTECH AUTOMATION CORP., IS STRICTLY PROHIBITED.
> > > > + *****************************************************************************
> > >
> > > This warning is in contradiction to the licence you are proposing.
> > >
>
--
Lee Jones [李琼斯]
Senior Technical Lead - Developer Services
Linaro.org │ Open source software for Arm SoCs
Follow Linaro: Facebook | Twitter | Blog
next prev parent reply other threads:[~2020-11-03 8:43 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-29 10:06 [PATCH v3 1/6] MAINTAINERS: Add Advantech embedded controller entry Shihlun Lin
2020-10-29 10:06 ` [PATCH v3 2/6] mfd: ahc1ec0: Add Advantech EC include file used by dt-bindings Shihlun Lin
2020-10-29 10:06 ` [PATCH v3 3/6] dt-bindings: mfd: ahc1ec0.yaml: Add Advantech Embedded Controll - AHC1EC0 Shihlun Lin
2020-10-29 10:06 ` [PATCH v3 4/6] mfd: ahc1ec0: Add support for Advantech embedded controller Shihlun Lin
2020-10-29 10:06 ` [PATCH v3 5/6] mfd: ahc1ec0-hwmon: Add sub-device hwmon " Shihlun Lin
2020-10-29 13:14 ` Lee Jones
[not found] ` <1e5710f4214b4e8b84f761a260d9dd5b@taipei09.ADVANTECH.CORP>
2020-11-02 10:14 ` Lee Jones
2020-11-03 3:31 ` AceLan Kao
2020-11-03 8:40 ` Lee Jones
2020-11-03 8:43 ` Lee Jones [this message]
2020-11-02 7:47 ` [PATCH v3 6/6] mfd: ahc1ec0-wdt: Add sub-device watchdog " Shihlun Lin
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=20201103084338.GI4488@dell \
--to=lee.jones@linaro.org \
--cc=campion.kang@advantech.com.tw \
--cc=chia-lin.kao@canonical.com \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mchehab+huawei@kernel.org \
--cc=robh@kernel.org \
--cc=shihlun.lin@advantech.com.tw \
/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;
as well as URLs for NNTP newsgroup(s).