public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Pali Rohár" <pali.rohar@gmail.com>
To: balbi@ti.com
Cc: "Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
	linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org,
	Pavel Machek <pavel@ucw.cz>, Sebastian Reichel <sre@kernel.org>,
	Aaro Koskinen <aaro.koskinen@iki.fi>,
	Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com>
Subject: Re: [PATCH] usb: gadget: nokia: Add mass storage driver to g_nokia
Date: Thu, 5 Feb 2015 13:45:43 +0100	[thread overview]
Message-ID: <201502051345.43204@pali> (raw)
In-Reply-To: <20150202191435.GT6150@saruman.tx.rr.com>

[-- Attachment #1: Type: Text/Plain, Size: 2504 bytes --]

On Monday 02 February 2015 20:14:35 Felipe Balbi wrote:
> On Mon, Feb 02, 2015 at 08:07:51PM +0100, Pali Rohár wrote:
> > On Monday 02 February 2015 20:01:11 Felipe Balbi wrote:
> > > Hi,
> > > 
> > > On Mon, Feb 02, 2015 at 07:58:59PM +0100, Pali Rohár wrote:
> > > > On Monday 02 February 2015 19:54:58 Felipe Balbi wrote:
> > > > > Hi,
> > > > > 
> > > > > On Sat, Jan 31, 2015 at 10:53:30AM +0100, Pali Rohár 
wrote:
> > > > > > This patch adds removable mass storage support to
> > > > > > g_nokia gadget (for N900). It means that at runtime
> > > > > > block device can be exported or unexported. So it
> > > > > > does not export anything by default and thus allows
> > > > > > to use MyDocs partition as before...
> > > > > > 
> > > > > > Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
> > > > > 
> > > > > thanks, but no thanks. Build your own using configfs.
> > > > 
> > > > But it needs some userspace interaction right?
> > > > Then its not possible for nfsboot.
> > > 
> > > oh, right... you're using nfsboot through g_nokia. Hmm,
> > > sounds like you need initramfs.
> > 
> > Also compiling usb gadgets as external .ko modules is
> > broken. So I cannot use configfs, when I compile g_nokia
> > even if I use initramfs...
> 
> yeah, there are people working on that and some patches
> already flying around for it. Meanwhile, you can make it
> built-in and use initramfs to add mass_storage through
> configfs to g_nokia, no issues.

Sorry but nfsboot is used without initramfs. I do not need to use 
any initramfs and I do not see reason for it because of kernel 
usb bugs...

My patch for mass storage mode in g_nokia.ko driver (which is 
used for Nokia N900 only) fix usage of both g_nokia functions and 
mass storage functions.

Because in current state on N900 this is easy and *working* 
solution (g_nokia static linked into zImage). So I do not see 
reason why not to include my patch into upstream. Driver g_nokia 
is N900 specific and all developers can benefit this patch, 
because they would be able to use *both* usb networking and mass 
storage mode *without* need to recompile kernel and restart n900 
device!

And please do not tell me that either usb network or mass storage 
support is deprecated or so and nobody should not use it! This is 
only way how to develop & debug n900 device without any other 
Nokia (TM) equipment which is not available for non Nokias...

-- 
Pali Rohár
pali.rohar@gmail.com

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

  reply	other threads:[~2015-02-05 12:45 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-31  9:53 [PATCH] usb: gadget: nokia: Add mass storage driver to g_nokia Pali Rohár
2015-02-02 10:56 ` Andrzej Pietrasiewicz
2015-02-02 18:54 ` Felipe Balbi
2015-02-02 18:58   ` Pali Rohár
2015-02-02 19:01     ` Felipe Balbi
2015-02-02 19:07       ` Pali Rohár
2015-02-02 19:14         ` Felipe Balbi
2015-02-05 12:45           ` Pali Rohár [this message]
2015-02-07 18:01           ` Ivaylo Dimitrov
2015-02-07 18:33             ` Ivaylo Dimitrov
2015-02-18 12:07               ` Pali Rohár
2015-02-18 12:07 ` Pali Rohár
2015-05-28  7:47 ` Pali Rohár
2015-05-28 14:27   ` Krzysztof Opasiak
2015-05-28 14:31     ` Pali Rohár
2015-05-28 14:51       ` Krzysztof Opasiak
2015-05-28 14:59         ` Pali Rohár
2015-05-28 16:34           ` Felipe Balbi
2015-05-28 21:40             ` Pali Rohár
2015-05-29 16:57               ` Felipe Balbi
2015-06-05 20:09                 ` Pali Rohár
2015-06-05 20:17                   ` Felipe Balbi
2015-06-06  8:04                     ` Pali Rohár
2015-06-08  3:43                       ` Felipe Balbi
2015-06-08  6:20                         ` Pali Rohár
2015-06-08 16:08                           ` Felipe Balbi
2015-07-06 11:59                             ` Pali Rohár
2015-07-06 17:40                               ` Felipe Balbi
2015-07-06 17:44                                 ` Felipe Balbi
2015-07-06 18:07                                   ` Pali Rohár
2015-07-06 18:10                                     ` Felipe Balbi
  -- strict thread matches above, loose matches on Subject: below --
2013-01-20  2:58 Pali Rohár
2013-01-20  9:25 ` Felipe Balbi
2013-01-20 10:17   ` Pali Rohár
2013-01-21  8:05     ` Felipe Balbi
2013-01-22 11:03       ` Pali Rohár
2013-01-22 16:17         ` Felipe Balbi
2013-01-22 21:46           ` Pali Rohár
2013-03-30 18:05       ` Pavel Machek

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=201502051345.43204@pali \
    --to=pali.rohar@gmail.com \
    --cc=aaro.koskinen@iki.fi \
    --cc=balbi@ti.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=ivo.g.dimitrov.75@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=pavel@ucw.cz \
    --cc=sre@kernel.org \
    /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