All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marek Vasut <marek.vasut@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] usb: Do not compile USB_STORAGE with !BLK && !DM_USB
Date: Fri, 19 Oct 2018 14:48:10 +0200	[thread overview]
Message-ID: <f840cddc-c802-4b5f-f05c-c2eeaeb0f7af@gmail.com> (raw)
In-Reply-To: <4d5fc4de-6707-5708-5c9b-865720c323b6@suse.de>

On 10/19/2018 02:47 PM, Alexander Graf wrote:
> 
> 
> On 19.10.18 14:45, Marek Vasut wrote:
>> On 10/19/2018 02:43 PM, Alexander Graf wrote:
>>> The USB storage driver does not compile when CONFIG_BLK is set,
>>> but DM_USB is not set, as we're missing the DM device links for
>>> CONFIG_BLK enabled code paths.
>>>
>>> So far it looks like nobody fell into this trap, because no board
>>> enabled CONFIG_BLK and CONFIG_USB_STORAGE while not enabling
>>> CONFIG_DM_USB, but we should still reflect that dependency properly
>>> in Kconfig so that implicit enabling of CONFIG_USB_STORAGE works.
>>>
>>> Signed-off-by: Alexander Graf <agraf@suse.de>
>>
>> Can we fix it such that it'd compile ? :)
> 
> I'm not sure. It feels awkward to allow code to use DM enabled block
> functions, but not DM enabled USB functionality. I can definitely see
> why the code tripped over :).
> 
> Wasn't Simon planning to rip out non-DM enabled devices soon'ish anyways?

I dunno. Which devices have this problem ?

-- 
Best regards,
Marek Vasut

  reply	other threads:[~2018-10-19 12:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-19 12:43 [U-Boot] [PATCH] usb: Do not compile USB_STORAGE with !BLK && !DM_USB Alexander Graf
2018-10-19 12:45 ` Marek Vasut
2018-10-19 12:47   ` Alexander Graf
2018-10-19 12:48     ` Marek Vasut [this message]
2018-10-19 12:53       ` Alexander Graf

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=f840cddc-c802-4b5f-f05c-c2eeaeb0f7af@gmail.com \
    --to=marek.vasut@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.