Thread (25 messages) 25 messages, 6 authors, 2019-06-11

Re: [PATCH v6 09/10] usb: roles: add USB Type-B GPIO connector driver

From: Andy Shevchenko <hidden>
Date: 2019-06-05 08:46:09
Also in: linux-devicetree, linux-mediatek, linux-usb, lkml

On Wed, May 29, 2019 at 10:44 AM Chunfeng Yun [off-list ref] wrote:
Due to the requirement of usb-connector.txt binding, the old way
using extcon to support USB Dual-Role switch is now deprecated
when use Type-B connector.
This patch introduces a driver of Type-B connector which typically
uses an input GPIO to detect USB ID pin, and try to replace the
function provided by extcon-usb-gpio driver
+static SIMPLE_DEV_PM_OPS(usb_conn_pm_ops,
+                        usb_conn_suspend, usb_conn_resume);
+
+#define DEV_PMS_OPS (IS_ENABLED(CONFIG_PM_SLEEP) ? &usb_conn_pm_ops : NULL)
Why this macro is needed?

-- 
With Best Regards,
Andy Shevchenko

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help