linux-leds.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jacek Anaszewski <jacek.anaszewski@gmail.com>
To: Steven Haigh <netwiz@crc.id.au>,
	linux-leds@vger.kernel.org,
	Linus Walleij <linus.walleij@linaro.org>
Subject: Re: [PATCH v2] Add LED / GPIO support for the PC Engines APU2.
Date: Sun, 30 Oct 2016 13:06:23 +0100	[thread overview]
Message-ID: <a0b21db6-aa1b-bcda-ff33-94ce7b3a8c46@gmail.com> (raw)
In-Reply-To: <e8fbcb33-bf50-9118-8943-c3f3d0833da3@crc.id.au>

Hi Steven,

Thanks for the patches. Few initial notes:

- generally it is preferred to submit patches with "git send-email",
   which simplifies review, as the remarks can be added directly in the
   code, in a reply to the patch,
- if you want do add some overall description of the patch set then you
   can add --cover-letter switch which will generate template for this
   purpose.
- please also use scripts/checkpatch.pl before submission
- make sure that the patches are based on the master branch of
   git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git,
- always add on CC the maintainers of the affected kernel subsystems -
   this information can be found in the MAINTAINERS file
- in case of LED drivers cc also linux-kernel@vger.kernel.org,
- subscribe to the mailing list related to the subsystem the patches
   are dedicated to, and skim through some recent patches and reviews -
   it can allow for eliminating some common problems from your driver
   and reducing the number of review iterations.

Regarding the patches - gpio-nct5104d.c seems to be targeted for
GPIO subsystem - you should add Linus Walleij and
linux-gpio@vger.kernel.org on cc.

For leds-apu2.c - you shouldn't register gpio driver in the LED
subsystem but add the relevant dependency in the Kconfig. Nonetheless
I can't find gpio-apu2.c driver in the mainline kernel.

You should also use devm_led_classdev_register() for registering LED
class device. Please follow the design of the other LED class drivers
using platform_device_register_simple() for probing.

Best regards,
Jacek Anaszewski

On 10/29/2016 06:38 PM, Steven Haigh wrote:
> Patches attached.
>
> Changes:
> * Updated leds_apu driver. Included an older version in my previous email.
> * Added required nct5104d GPIO driver support.
>
> These are all against 4.4.28 right now - but should probably apply
> cleanly to any future builds with minimal (or nil) changes.
>
> Please include me in the reply as I'm not part of this list.
>

  reply	other threads:[~2016-10-30 12:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-29 16:38 [PATCH v2] Add LED / GPIO support for the PC Engines APU2 Steven Haigh
2016-10-30 12:06 ` Jacek Anaszewski [this message]
2016-10-30 13:43   ` Steven Haigh
2016-10-31 22:18     ` Jacek Anaszewski

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=a0b21db6-aa1b-bcda-ff33-94ce7b3a8c46@gmail.com \
    --to=jacek.anaszewski@gmail.com \
    --cc=linus.walleij@linaro.org \
    --cc=linux-leds@vger.kernel.org \
    --cc=netwiz@crc.id.au \
    /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).