public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Lukasz Majewski <l.majewski@samsung.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 3/5] usb:gadget: USB Mass Storage - files from Linux kernel
Date: Fri, 07 Oct 2011 09:28:38 +0200	[thread overview]
Message-ID: <20111007092838.02c6a42f@lmajewski.digital.local> (raw)
In-Reply-To: <20111006221019.8A563140874A@gemini.denx.de>

Hi Wolfgang,

> Dear Lukasz Majewski,
> 
> In message <1310567392-29082-4-git-send-email-l.majewski@samsung.com>
> you wrote:
> > Two files from Linux kernel source tree have been ported
> > to u-boot (Linux Kernel v2.6.34):
> > 
> > File file_storage.c
> > commit 2ecdc82ef0b03e67ce5ecee79d0d108177a704df
> > Author: Christoph Hellwig <hch@lst.de>
> > Date:   Tue Jan 26 17:27:20 2010 +0100
> > 
> >     kill unused invalidate_inode_pages helper
> > 
> > File storage_common.c
> > commit d26a6aa08b9f12b44fb1ee65625e7480d3d5bb81
> > Author: Michal Nazarewicz <m.nazarewicz@samsung.com>
> > Date:   Mon Nov 9 14:15:23 2009 +0100
> > 
> >     USB: g_mass_storage: code cleaned up and comments updated
> > 
> > In order to work with u-boot, changed were made.
> > 
> > Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
> > Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
> > Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
> > Cc: Minkyu Kang <mk7.kang@samsung.com>
> > Cc: Remy Bohmer <linux@bohmer.net>
> > ---
> >  drivers/usb/gadget/file_storage.c   | 3536
> > +++++++++++++++++++++++++++++++++++
> > drivers/usb/gadget/storage_common.c |  765 ++++++++ 2 files
> > changed, 4301 insertions(+), 0 deletions(-) create mode 100644
> > drivers/usb/gadget/file_storage.c create mode 100644
> > drivers/usb/gadget/storage_common.c
> 
> Checkpatch says:
> 
> total: 184 errors, 27 warnings, 4301 lines checked
> 
> Please clean up and resubmit.  Thanks.
> 

I'd like to ask about rules for porting - moving files from Linux.

As you can see this file is directly taken from Linux kernel. This code
has been accepted to kernel mainline.

So shall I:
1. Submit this patch again as is and
2. Post a separate patch to remove "warnings and errors" with my sign
off?

or:

1. Mangle this patch with my correction (186 errors is a lot) and then
resubmit it with my name included at sign-off?
Then it won't be anymore a file taken directly from Linux kernel.
Moreover we will duplicate code, since two different patches with two
identical functionality will emerge.

I'm a bit confused now...

-- 
Best regards,

Lukasz Majewski

Samsung Poland R&D Center
Platform Group

  reply	other threads:[~2011-10-07  7:28 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-13 14:29 [U-Boot] [PATCH v2 0/5] usb:gadget USB Gadget support Lukasz Majewski
2011-07-13 14:29 ` [U-Boot] [PATCH v2 1/5] usb:gadget:s5p USB Device Controller (UDC) implementation Lukasz Majewski
2011-07-13 14:43   ` Vitaly Kuzmichev
2011-07-14  8:14   ` [U-Boot] [RESEND PATCH " Lukasz Majewski
2011-10-06 22:10   ` [U-Boot] [PATCH " Wolfgang Denk
2011-10-07  7:39     ` Lukasz Majewski
2011-10-09 19:43       ` Wolfgang Denk
2011-10-10 20:00         ` Scott Wood
2011-10-10 20:38           ` Wolfgang Denk
2011-10-10 20:55             ` Scott Wood
2011-10-10 21:54               ` Wolfgang Denk
2011-10-10 22:00                 ` Scott Wood
2011-07-13 14:29 ` [U-Boot] [PATCH v2 2/5] usb:gadget:s5p Enabling the USB Gadget framework at GONI Lukasz Majewski
2011-07-13 14:29 ` [U-Boot] [PATCH v2 3/5] usb:gadget: USB Mass Storage - files from Linux kernel Lukasz Majewski
2011-10-06 22:10   ` Wolfgang Denk
2011-10-07  7:28     ` Lukasz Majewski [this message]
2011-10-07  8:25       ` Wolfgang Denk
2011-07-13 14:29 ` [U-Boot] [PATCH v2 4/5] usb:gadget: USB Mass Storage Gadget support Lukasz Majewski
2011-07-13 14:29 ` [U-Boot] [PATCH v2 5/5] usb:gadget:s5p Support for USB Mass Storage Gadget on GONI Lukasz Majewski

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=20111007092838.02c6a42f@lmajewski.digital.local \
    --to=l.majewski@samsung.com \
    --cc=u-boot@lists.denx.de \
    /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