From: Ryan Mallon <rmallon@gmail.com>
To: Frank Haverkamp <haver@linux.vnet.ibm.com>, linux-kernel@vger.kernel.org
Cc: arnd@arndb.de, gregkh@linuxfoundation.org,
cody@linux.vnet.ibm.com, schwidefsky@de.ibm.com,
utz.bacher@de.ibm.com, mmarek@suse.cz, jsvogt@de.ibm.com,
MIJUNG@de.ibm.com, cascardo@linux.vnet.ibm.com, michael@ibmra.de
Subject: Re: [PATCH 2/9] GenWQE: Remove option to select name
Date: Tue, 05 Nov 2013 08:55:27 +1100 [thread overview]
Message-ID: <527817CF.7020304@gmail.com> (raw)
In-Reply-To: <1383584889-21594-3-git-send-email-haver@linux.vnet.ibm.com>
On 05/11/13 04:08, Frank Haverkamp wrote:
> Selecting interface names via configuration option is obsolete.
Don't do this. You are adding completely new code, so there is no reason
to post a patch full of code that is known to be incorrect, followed by
a set of patches fixing things. Just post the correct code to start
with. This makes the git history cleaner, and makes the code easier to
review.
You can use tools like git interactive rebase to split your work into
multiple patches. It should be quite easy for this because you mostly
just want to break down things to the file level, so even:
git reset --soft <your-first-commit>
and then manually staging and commiting things from there would probably
be enough. You can use git add --interactive to stage individual file
hunks if you want to break things down further.
~Ryan
>
> Signed-off-by: Frank Haverkamp <haver@linux.vnet.ibm.com>
> ---
> drivers/misc/genwqe/Kconfig | 14 ++------------
> include/linux/genwqe/genwqe_card.h | 6 +-----
> 2 files changed, 3 insertions(+), 17 deletions(-)
>
> diff --git a/drivers/misc/genwqe/Kconfig b/drivers/misc/genwqe/Kconfig
> index bbf137d..6069d8c 100644
> --- a/drivers/misc/genwqe/Kconfig
> +++ b/drivers/misc/genwqe/Kconfig
> @@ -9,15 +9,5 @@ menuconfig GENWQE
> default n
> help
> Enables PCIe card driver for IBM GenWQE accelerators.
> - The user-space interface is described in
> - include/linux/genwqe/genwqe_card.h.
> -
> -if GENWQE
> -
> -config GENWQE_DEVNAME
> - string "Name for sysfs and device nodes"
> - default "genwqe"
> - help
> - Select alternate name for sysfs and device nodes.
> -
> -endif
> + The user-space interface is described in
> + include/linux/genwqe/genwqe_card.h.
> diff --git a/include/linux/genwqe/genwqe_card.h b/include/linux/genwqe/genwqe_card.h
> index 2c33db1..ffed142 100644
> --- a/include/linux/genwqe/genwqe_card.h
> +++ b/include/linux/genwqe/genwqe_card.h
> @@ -41,11 +41,7 @@
> #endif
>
> /* Basename of sysfs, debugfs and /dev interfaces */
> -#if defined(CONFIG_GENWQE_DEVNAME)
> -# define GENWQE_DEVNAME CONFIG_GENWQE_DEVNAME
> -#else
> -# define GENWQE_DEVNAME "genwqe"
> -#endif
> +#define GENWQE_DEVNAME "genwqe"
>
> #define GENWQE_TYPE_ALTERA_230 0x00 /* GenWQE4 Stratix-IV-230 */
> #define GENWQE_TYPE_ALTERA_530 0x01 /* GenWQE4 Stratix-IV-530 */
>
next prev parent reply other threads:[~2013-11-04 21:55 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-04 17:08 [PATCH 0/9] Generic WorkQueue Engine (GenWQE) device driver (v5) Frank Haverkamp
2013-11-04 17:08 ` [PATCH 1/9] Generic WorkQueue Engine (GenWQE) device driver (v4) Frank Haverkamp
2013-11-04 22:12 ` Greg KH
2013-11-05 7:21 ` Frank Haverkamp
2013-11-04 17:08 ` [PATCH 2/9] GenWQE: Remove option to select name Frank Haverkamp
2013-11-04 21:55 ` Ryan Mallon [this message]
2013-11-05 9:00 ` Frank Haverkamp
2013-11-04 17:08 ` [PATCH 3/9] GenWQE: Remove obsolete constants Frank Haverkamp
2013-11-04 17:08 ` [PATCH 4/9] GenWQE: Rework comments Frank Haverkamp
2013-11-04 17:08 ` [PATCH 5/9] GenWQE: Move comments Frank Haverkamp
2013-11-04 17:08 ` [PATCH 6/9] GenWQE: Remove/rework module parameters Frank Haverkamp
2013-11-04 17:08 ` [PATCH 7/9] GenWQE: Start using sysfs attribute groups Frank Haverkamp
2013-11-04 17:08 ` [PATCH 8/9] GenWQE: Simplify sysfs buffer printouts Frank Haverkamp
2013-11-04 17:08 ` [PATCH 9/9] GenWQE: Increment driver internal version number Frank Haverkamp
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=527817CF.7020304@gmail.com \
--to=rmallon@gmail.com \
--cc=MIJUNG@de.ibm.com \
--cc=arnd@arndb.de \
--cc=cascardo@linux.vnet.ibm.com \
--cc=cody@linux.vnet.ibm.com \
--cc=gregkh@linuxfoundation.org \
--cc=haver@linux.vnet.ibm.com \
--cc=jsvogt@de.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=michael@ibmra.de \
--cc=mmarek@suse.cz \
--cc=schwidefsky@de.ibm.com \
--cc=utz.bacher@de.ibm.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