Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751395AbdGRElz (ORCPT ); Tue, 18 Jul 2017 00:41:55 -0400 Received: from mail-co1nam03on0045.outbound.protection.outlook.com ([104.47.40.45]:33365 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750931AbdGRElv (ORCPT ); Tue, 18 Jul 2017 00:41:51 -0400 Authentication-Results: spf=softfail (sender IP is 192.88.158.2) smtp.mailfrom=gmail.com; lists.infradead.org; dkim=none (message not signed) header.d=none;lists.infradead.org; dmarc=fail action=none header.from=gmail.com; Date: Tue, 18 Jul 2017 12:41:11 +0800 From: Peter Chen To: Stephen Boyd CC: Peter Chen , , Greg Kroah-Hartman , , , Rob Clark , Rob Herring , , Andy Gross , Peter Rosin , Subject: Re: [PATCH v2 2/3] usb: chipidea: Hook into mux framework to toggle usb switch Message-ID: <20170718044111.GA13320@b29397-desktop> References: <20170714214005.14967-1-stephen.boyd@linaro.org> <20170714214005.14967-3-stephen.boyd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20170714214005.14967-3-stephen.boyd@linaro.org> User-Agent: Mutt/1.5.24 (2015-08-30) X-EOPAttributedMessage: 0 X-Matching-Connectors: 131448265087952637;(91ab9b29-cfa4-454e-5278-08d120cd25b8);() X-Forefront-Antispam-Report: CIP:192.88.158.2;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(336005)(39850400002)(39380400002)(39400400002)(39410400002)(39840400002)(39860400002)(39450400003)(2980300002)(189002)(199003)(24454002)(9170700003)(189998001)(105596002)(86362001)(498600001)(106466001)(53936002)(55016002)(33656002)(54906002)(966005)(76176999)(6306002)(9686003)(50986999)(87572001)(83322999)(54356999)(2906002)(38730400002)(110136004)(97756001)(6246003)(69596002)(50466002)(47776003)(8936002)(73972006)(626005)(305945005)(81442002)(104016004)(356003)(33716001)(76482006)(81166006)(5660300001)(8676002)(73392002)(229853002)(39060400002)(46406003)(82202002)(6260500002)(83506001)(77096006)(2950100002)(1076002)(23726003)(7416002)(6916009)(4326008)(6666003)(1720100001)(4001350100001)(8656003)(18370500001);DIR:OUT;SFP:1101;SCL:1;SRVR:DM2PR0301MB0607;H:az84smr01.freescale.net;FPR:;SPF:SoftFail;MLV:ovrnspm;MX:1;A:1;PTR:InfoDomainNonexistent;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BY2FFO11OLC013;1:RnY/Slq4HPtKiDnYNvKu/KOZlHHMAfLGY8Se6jIr0r7hno8Rke7VIs9M6s3sL0+Y9sxThUURwQFNZJVEnO+XYZ7ueCfv6jA6BmjcFbx/KxRx2t9iy4YHOB+arhM6NQ0G2t2xsqlLjl4fUV2rwqCB+8VuKARkABvYbNu8oreq9gAFCP1efSkPyiYu9Ihj354vH8E90w8X46x57OYIG9ZGIYIPb+Fmy/TAoy3waUsWm4yr8ttPcEF90jMSF+y0WuQLTXjxoU4NP6t4Tje7/Zpaw25yh/q1a/ZEt9pXxdW4Jl+1sWGmmkMiqxzMoRZ/57OTautLnQ3t+RUVf20kTs5Ay/mZf2nDdbjz5Kh0nOlZKyBqAhM60m0ajLY7WcVnTkBgS+bJUmdwaUyMGzMk5/Z5PX4eWhWk/9P1dYpGzS8f8JkIXeDdgaZJEFNHyjl37+o+7oBrb9TOVN37AtUf+G32SK568Pp4SddYR9AH4Qb5BKDeibPxTHJOaQHCf+sVqxhDTGj/3M8HPljmXfD9hsUHVuLNZx2hVnC5bdXk0CZZhsewRJEzqeauFdqy3Nt1b3GPnVHMmbGuoLd0W0QfO8UmhnOzCuxRyyZ7Vqp2gl+wPpHFBoAoQFyWX1elHqPaH4EE97gm7tHXWm6yac5OpXukar7n511HJwGKAU42YAe/E5q8g76oRU+A4DvErFKFZzRDlQlv6RDDPhGKUoz+iMprrKkUo9QDEpo6gb9FWuTb2JPlwT6uTMOyw5H1lZEP1PYPNAOYJ02vH5+7jOTZDdDMzEUHZ3OGmjJfhVFm7GzPgCKwTp5EuOD7eKQISQ5LWfcfpXRYgKgQWt82YYNVvX1m51/wjYxpf36NY3NnyWIhwM5IJCjZbQ6rg4rLlOW2hFXN7Sm0YBunFAhu+87OkzpaJQ== X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 192763b9-37a1-4ed1-3ab8-08d4cd974d4a X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(2017052603031)(201703131430075)(201703131517081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:DM2PR0301MB0607; X-Microsoft-Exchange-Diagnostics: 1;DM2PR0301MB0607;3:/974jO5W5AkJFOvXChyHZeVOVawdZIa/z97MBjuC26IzV22Q15RuwUqu4Ao6c3qVDKYwLbj15uNF0IO0x55X9GKjSl5LsItrDaDba8jWys5dEgPlJj3w0bhxDZ5zxls3oJN4TcgKQSCrIZQrQv3rqgjSHzIPxaIBY2xBwwacnSUvLTkcP6MMoo0kxbD6+fjcOqlGw33xpScFQniH7YNPB2DBelL1uL0/hiP+1c32fCbOn+4xbZWeOqmN2GtL+UgMga9MTMAmGVQt7xAd4KC/1aAmOGPyF6mGLa27Ft9CEvJk4Y+Gc4Zz5hlt6yfl2sJnLakJM8Ia3NF9zCMH73w5pyllrKSHSt5aogmmuzB0QqXPlnqPdTjtJNZLVt9YM9AZGr3dXPx/GKjfw8zh3Uuc6PWWWGYSP1E4p5z4BxnPKVYfhD3aJQ91OgVaSbZK+qPBhH4/u3nuN+Pcyud1yvCml2XRPLRmYfR22JbxwT2KvHPsC9SWroIkQF1ZYdU1JmuGBkRjECWsqG8aT194QYnrk4twSKyuYhE4BXTRfIM+367Q8TiIqtVR/JeNxQj3klychyAuxI/5HCDT91YAZYXP7tx9Ee434UMPfnBNwPExBeWe2UnlKk6SRhw83zHTIfHBWw7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+9/3j28AR5vjbWCX40P914YEPAZu5DhLYVZg5X9Cvlxy+EDofoJlxYDpT6z7Wo74qdnoHN5Q1XLiCDBl31UTx1tQCZ2qkBcn7426E/VWimE8NN4UAZhLNLXN7gknyXVWwHIfdwAoCOOwXxMJGddhJ9kpw4= X-Microsoft-Exchange-Diagnostics: 1;DM2PR0301MB0607;31:ldvk4OBz96zuYVT2yW7Pl7ETzKMdC/HEHIiXBvu73uWk1pm6jCfyKa79IZ8CPBISsPHnaJbJHDfNhaGh5yoKO1Im6lRtLqnZe91QZbkask3Xoo6IYVOtuvcztOlwrxIK7IQNY2+wqQCiE9SmUOeHttjs/QiUs7xxTx7LQkDeJcGM5jz8HJojV0Q+gTsuYey9/RnVDayvK7u9/sJYc5ijzsbsyEzThNqvWvWtLGPaVfxvuzlOU1Y/Fy8Hszlx67bTG/3yWAUAvwXXvudQwETg1Pr4oqnwu4ox0ACO+6/dEK3KNJaslxHhQQ/R+66RVvKVr4lhPyq7f6iHPxESgD7MJ5xV2JJUJwzbxU5ooD06wyVWis0v25b0Vqbj+qBjWfcvfyoEbs3EAuPRTMjNq0uSE1HtQ8F60fbuCPSDhvHkZdTsk3rXY5HmtYZIT6fGZO0z8ZI8GcuSNqUmbVh9C7lwobXL9rIRVXbA0ucJXgCSnECA8Kh8uCaZurGnKirLDfCWgbmALXdMJaUxw8Tt3YVt+LYNY3B+cHKmqqOADW46OoZY72pG473guF+uqXFlcPXCatvUF/9oN2/P5HmcYU8WDjU+0LjAPqZGp1Ff6STl+Fo9DQ4UftFlf20LLVkgJ+JY52B/81R+Ts1ww+BctBzfCqR/HwJBLmKQr+2hvwiVcEwm8As5XaAAxUWEVqcrErUwBJ2zeeKoFI2m/GiHZFTixA== X-Exchange-Antispam-Report-Test: UriScan:(258649278758335); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(601004)(2401047)(13018025)(5005006)(13016025)(8121501046)(3002001)(100000703101)(100105400095)(10201501046)(93006095)(93001095)(6055026)(6096035)(20161123563025)(20161123561025)(201703131430075)(201703131433075)(201703131441075)(201703131448075)(201703161259150)(20161123556025)(20161123559100)(20161123565025)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:DM2PR0301MB0607;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:DM2PR0301MB0607; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;DM2PR0301MB0607;4:T8U2QQwQVNz3Ss2tjWl6na0efFyN4LJaUXtPbjZJ?= =?us-ascii?Q?61eL6D39qfqq1jurm6+yfRw9IXVRPRB+Nc/96Jr48Wd0ERslWCmNdW5Q7oB6?= =?us-ascii?Q?bFg7WGTZ/NGgWKsAcRAhvNwh0bRFNyCUTXPhBZTjeF1B24vZCyrX+YQZrr9p?= =?us-ascii?Q?3ZuKyprOx3hy9xT3rlRC/8jHZCU0K20Ruw4oKC3O5aj1m1KHuE2Vh73xhzYv?= =?us-ascii?Q?BGFrs9JUPn7OzNNqkWi76NWEaDfI64GeweQi5cyEQ8rKkn9FbOboaot0m03N?= =?us-ascii?Q?b7lW5PYtTURKbiF9fMA+M0YvucoOEIg+KDtNUyIvjEwHiPsYsw5YUbwzp5Wn?= =?us-ascii?Q?GJ1nEwGWAubRsxkZ2sk9b4lGx1msfJQhVwzXigkL7VfeDLtwdytuxPdQOsU3?= =?us-ascii?Q?MzFdmlzD7PThaZyFpJE6vLFqDGZ8OeSJ/JUDZC5VGp0S+DPfMn9kscBOeXnR?= =?us-ascii?Q?6LoPQ5cQ+EGusq/IrArfF3xpdQIqfP+/QQ91XZm+j27epMAu2htn21GqYK1X?= =?us-ascii?Q?RLD5go5L04f+L8EzQGlU/9EPxYmtfwO7UuiUA2yQW1qtOsG2XkA+h6C72U2p?= =?us-ascii?Q?xDsC8ZgvREvHcyS+hVT0e3yJRYcXWurQmTOVUt6J7Uoc5HBqeZuLrSF5DK4k?= =?us-ascii?Q?qfeY3L6CNq1pyI7kmgGeUYTZXSUGLFtqB4essJ4mf3fELdPyOymH8Dp1t4XX?= =?us-ascii?Q?Y3EIAupBAHVmK7kcCclezncwYECKWWRNA3c4yaaGcV/PxT3epw8wQwR7upU+?= =?us-ascii?Q?IZuyUJGJYC942Pjm+/jGEuuGTHZBO86bfmZypxVj+Sh5l5onG2+S1LtZJtXO?= =?us-ascii?Q?ui01VmcYNjX5Ah5lz7LyHfRUZzuqqBaB+HDQCsCbJPCymB9KU22AS3xszNb9?= =?us-ascii?Q?Pqq4xh1nkNFjxolqcLUAZ7lEtA4uI/bmVoR/12u8QhVZGn+bvo18q81/gzvB?= =?us-ascii?Q?PW1MJB2TrkFAbMzm3zHFt0WGH8q3QSqSiVYqaZtTIsfNyyvuF9vmiWnBu3Jp?= =?us-ascii?Q?i/JwP2V+eRabvtM8QlVRRpUeKKn9fjiDocp93qK2WHloQ2YOORAirWAgWi5E?= =?us-ascii?Q?UK+M+imcE06JBOSwItZ3jcjkYq4ov70yTjVoS8kT/7ySQDwg9ypuJ0LidGVo?= =?us-ascii?Q?DEeWQfeMVZdUMAZZLCFjGFzXBLqsqkBsy/THae6zxz7e0obeuiFHRJU7w6bX?= =?us-ascii?Q?ZdiNbJxsS1cCk2q4NOTcn5GT64xhMe+jf8bg3q8itzxXxFY/o2GzMNgnGM85?= =?us-ascii?Q?Kj/m+UfY3UbplCWmWD2IsvxZy9t+kiu8g+x/Zh0e?= X-Forefront-PRVS: 037291602B X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;DM2PR0301MB0607;23:vNE2elC9EQ/hCu146/hEVcdi9bnGyuvA2g0YFBV?= =?us-ascii?Q?CF+GMe4O4jpLFnCixdHRvJvxrRWLP061xvEllmp2NvJNPZJ5uTcATawK5NNv?= =?us-ascii?Q?RS2EpWKZSoDZC4nplxET+p8C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FvO91xUrrOGTlcjK2Gs3H1LaSwLDySNHWX0G34kPwQhDPo355+hMwC0CwAJ?= =?us-ascii?Q?yZLr3TFqnr/L/wMdAv310Buy/Jhba7VJfveXBtCPGDS7nHoxcDvH6EunY+O1?= =?us-ascii?Q?/UVab/hDyThfyfxI5KZSQRxVfbNMgtCi+XEEm4M2CE7ZEHNWNc1p620ca2LQ?= =?us-ascii?Q?ERwf32mi6Fo2dObBfyyfcWPQ2Wec3h4NyQEOVfLZDfcM2U6U2K7ndkxJdWRJ?= =?us-ascii?Q?jgHmS6FmddoeqGO97J5kyELDGurWnCRIh7y3FCLzRAyMhUXT+3/4TbyR2plP?= =?us-ascii?Q?xn33Uaz3NmzyBAJ1erZFeRvQy29WRGRj9mGb1buLBdgXhw2eSFW4tqxVltWi?= =?us-ascii?Q?/NBgO91kB7loLWoRs4cDr5+WiOXrSlbSwNi6AfLdhXFMc3kICjKeP1HH+bUN?= =?us-ascii?Q?/qHHwGfyi2uN2NXv3nGiPwyZktfn4JGqMNJA/mOIFLGGKpJPloWdGdafV9tk?= =?us-ascii?Q?8KggyYYYZjluhKWxGVgRGumYFQCVY8gXooqslBZ9Y4RFLTJItI9VIn+6yl+2?= =?us-ascii?Q?t5PXAKaFk+KC8vFqw7ckCw8OJrLukC9KdQg4Y3Z+2af0jcxykdNY5aTCL91m?= =?us-ascii?Q?r9mID7tuq25q7TuLjgdJMrBuRe5LJyhutzCKXABoonfdBjjJ+9KHrS+FSozJ?= =?us-ascii?Q?yS3joaM4GfceGOGkpek4twpd26w=3D=3D?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;DM2PR0301MB0607;6:Y9mZDRf/FGtMgxo4pNu1ptGn1E3C8GQfBZAx2NWR?= =?us-ascii?Q?fklDRG5pOVNDwjzAnfejFwMjhDH1733ODq0fkmm9Sd2QSSR9NFV3q3Y44oc3?= =?us-ascii?Q?ToeilC+32DJdCyvzwUDuQxH2DM6kE7WyWy7MzJewVK6ZcPZX1HDVoggil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KYgRPW9EvVcpWc1rWWcCazANT5de8MRcrfnvchNFiG9ZMARZsU0sWYwhuKb0JAw2aFrcXdJmCX/9VPEBjXtYoMIYdjr/6Iz931RjPzWo8+L0kFOaB05xl2K6r7bhS6y4u5zZUqu9TkhaaQcwLxpoSwoBJ0xjqEr6n7c0hKnnlkPNVkypfpKBq8h/P24TKmyCLoDi5LDSxvirWYSp6u165bCQ15FYCIt5+h9jlFDI4BH9t8RHMhPhdTaHyX6pmrDAbgFs284XPBEhjSaXbViLo9iyMFeuYUG5PKcVJZDdx5h35ODpcL2glAm8uiVEOygD2PqIWtCggysgiseXDiBtAcr8qIIgWjTs2eDZn/JSA2e99G4K+RkNzYAdIHElf2RYmCURRTJkzGzgfufmeCjczntcrg7GFeIQpRj4RxN/L89kcVRGzk6hIazbbdIW6hEBP5XGYR4dS7C3eXJqhW39mBR3Ze9Zv/92KP9D8I= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jul 2017 04:41:48.5144 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e;Ip=[192.88.158.2];Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR0301MB0607 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2783 Lines: 103 On Fri, Jul 14, 2017 at 02:40:04PM -0700, Stephen Boyd wrote: > > @@ -175,6 +176,10 @@ static int host_start(struct ci_hdrc *ci) > if (ci_otg_is_fsm_mode(ci)) { > otg->host = &hcd->self; > hcd->self.otg_port = 1; > + } else { > + ret = mux_control_select(ci->platdata->usb_switch, 1); It is better to use MACRO for 1 and 0. > + if (ret) > + goto disable_reg; > } > } > > @@ -195,6 +200,8 @@ static void host_stop(struct ci_hdrc *ci) > struct usb_hcd *hcd = ci->hcd; > > if (hcd) { > + if (!ci_otg_is_fsm_mode(ci)) > + mux_control_deselect(ci->platdata->usb_switch); > if (ci->platdata->notify_event) > ci->platdata->notify_event(ci, > CI_HDRC_CONTROLLER_STOPPED_EVENT); > diff --git a/drivers/usb/chipidea/udc.c b/drivers/usb/chipidea/udc.c > index d68b125796f9..deb18099e168 100644 > --- a/drivers/usb/chipidea/udc.c > +++ b/drivers/usb/chipidea/udc.c > @@ -22,6 +22,7 @@ > #include > #include > #include > +#include > > #include "ci.h" > #include "udc.h" > @@ -1964,16 +1965,26 @@ void ci_hdrc_gadget_destroy(struct ci_hdrc *ci) > > static int udc_id_switch_for_device(struct ci_hdrc *ci) > { > + int ret = 0; > + > if (ci->is_otg) > /* Clear and enable BSV irq */ > hw_write_otgsc(ci, OTGSC_BSVIS | OTGSC_BSVIE, > OTGSC_BSVIS | OTGSC_BSVIE); > > - return 0; > + if (!ci_otg_is_fsm_mode(ci)) > + ret = mux_control_select(ci->platdata->usb_switch, 0); > + > + if (ci->is_otg && ret) > + hw_write_otgsc(ci, OTGSC_BSVIE | OTGSC_BSVIS, OTGSC_BSVIS); Should use !ret? Peter > + > + return ret; > } > > static void udc_id_switch_for_host(struct ci_hdrc *ci) > { > + mux_control_deselect(ci->platdata->usb_switch); > + > /* > * host doesn't care B_SESSION_VALID event > * so clear and disbale BSV irq > diff --git a/include/linux/usb/chipidea.h b/include/linux/usb/chipidea.h > index c5fdfcf99828..3b27e333de1d 100644 > --- a/include/linux/usb/chipidea.h > +++ b/include/linux/usb/chipidea.h > @@ -9,6 +9,7 @@ > #include > > struct ci_hdrc; > +struct mux_control; > > /** > * struct ci_hdrc_cable - structure for external connector cable state tracking > @@ -74,6 +75,7 @@ struct ci_hdrc_platform_data { > /* VBUS and ID signal state tracking, using extcon framework */ > struct ci_hdrc_cable vbus_extcon; > struct ci_hdrc_cable id_extcon; > + struct mux_control *usb_switch; > u32 phy_clkgate_delay_us; > }; > > -- > 2.10.0.297.gf6727b0 > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel -- Best Regards, Peter Chen