On Thu, Sep 25, 2014 at 09:21:57AM +0200, Michael Prokop wrote:

> Is there a /sys/... entry which would make it obvious for i-t that
> phy-sun4i-usb exists/should be loaded?

Sorry, I do not know that. A possible approach could be parsing
some of the information in /proc/device-tree, as the module
initialization is triggered by the existence of certain
"compatible" properties in the device-tree.

>From drivers/phy/phy-sun4i-usb.c in the kernel sources:

  static const struct of_device_id sun4i_usb_phy_of_match[] = {
          { .compatible = "allwinner,sun4i-a10-usb-phy" },
          { .compatible = "allwinner,sun5i-a13-usb-phy" },
          { .compatible = "allwinner,sun6i-a31-usb-phy" },
          { .compatible = "allwinner,sun7i-a20-usb-phy" },
          { },
  };
  MODULE_DEVICE_TABLE(of, sun4i_usb_phy_of_match);

Something like grepping for the compatible strings in the result of
a "find /proc/device-tree/ -iname compatible" might work, but
I have not actually tested that yet.

Regards,
Karsten
-- 
Gem. Par. 28 Abs. 4 Bundesdatenschutzgesetz widerspreche ich der Nutzung
sowie der Weitergabe meiner personenbezogenen Daten für Zwecke der
Werbung sowie der Markt- oder Meinungsforschung.


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to