Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1482015 > unrolled thread

Re: [PATCH v4 03/22] usb: ulpi: Support device discovery via DT

Started byStephen Boyd <stephen.boyd@linaro.org>
First post2016-09-13 00:10 +0200
Last post2016-09-13 00:10 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH v4 03/22] usb: ulpi: Support device discovery via DT Stephen Boyd <stephen.boyd@linaro.org> - 2016-09-13 00:10 +0200

#1482015 — Re: [PATCH v4 03/22] usb: ulpi: Support device discovery via DT

FromStephen Boyd <stephen.boyd@linaro.org>
Date2016-09-13 00:10 +0200
SubjectRe: [PATCH v4 03/22] usb: ulpi: Support device discovery via DT
Message-ID<sgHAl-172-23@gated-at.bofh.it>
Quoting Stephen Boyd (2016-09-07 14:35:00)
> @@ -174,6 +219,21 @@ static int ulpi_register(struct device *dev, struct ulpi *ulpi)
>         ulpi->id.product = ulpi_read(ulpi, ULPI_PRODUCT_ID_LOW);
>         ulpi->id.product |= ulpi_read(ulpi, ULPI_PRODUCT_ID_HIGH) << 8;
>  
> +       /* Some ULPI devices don't have a vendor id so rely on OF match */
> +       if (ulpi->id.vendor == 0)
> +               goto err;
> +
> +       request_module("ulpi:v%04xp%04x", ulpi->id.vendor, ulpi->id.product);
> +
> +       return 0;
> +err:
> +       return of_device_request_module(&ulpi->dev);

This can't return the value of of_device_request_module() because that
returns an error if the module is builtin or if module loading is
disabled. I'll have to ignore the error here and just return success all
the time.

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web