Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752610AbdGSCGK (ORCPT ); Tue, 18 Jul 2017 22:06:10 -0400 Received: from mail-sn1nam01on0084.outbound.protection.outlook.com ([104.47.32.84]:5664 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751906AbdGSCGG (ORCPT ); Tue, 18 Jul 2017 22:06:06 -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: Wed, 19 Jul 2017 10:05:26 +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: <20170719020526.GB26218@b29397-desktop> References: <20170714214005.14967-1-stephen.boyd@linaro.org> <20170714214005.14967-3-stephen.boyd@linaro.org> <20170718044111.GA13320@b29397-desktop> <150042882207.23422.15172007883605080758@sboyd-linaro> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <150042882207.23422.15172007883605080758@sboyd-linaro> User-Agent: Mutt/1.5.24 (2015-08-30) X-EOPAttributedMessage: 0 X-Matching-Connectors: 131449035639789564;(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)(39860400002)(39410400002)(39450400003)(39840400002)(39380400002)(39850400002)(39400400002)(2980300002)(189002)(199003)(24454002)(377424004)(9170700003)(105596002)(106466001)(76482006)(73392002)(23726003)(4326008)(498600001)(8676002)(5660300001)(55016002)(86362001)(33716001)(7416002)(53936002)(356003)(54906002)(6246003)(83506001)(33656002)(305945005)(626005)(189998001)(50466002)(46406003)(9686003)(6916009)(2950100002)(1076002)(97756001)(39060400002)(38730400002)(6666003)(6260500002)(82202002)(8936002)(93886004)(81166006)(2906002)(110136004)(4001350100001)(81442002)(69596002)(77096006)(73972006)(8656003)(83322999)(50986999)(229853002)(76176999)(54356999)(104016004)(47776003)(87572001)(18370500001);DIR:OUT;SFP:1101;SCL:1;SRVR:BN6PR03MB2786;H:az84smr01.freescale.net;FPR:;SPF:SoftFail;MLV:ovrnspm;MX:1;A:1;PTR:InfoDomainNonexistent;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BN1BFFO11OLC001;1:ayiCZo0ajCn0Ky40LzCAxbgDjpk6SsnrWTmqjEfumLC5HfPQQ4QYpFYHpMGUMztz1bQZ+93gb2NaMmUVLPuRXfytSNM3vAYiM4cHHegOU1QJoJCOpoyKnu88LkQneK5MYP9dUv2wTdtbiBgLqbcrB3tptA/HRHytv2+Dd4Y8gnviTlCY3HaGyqnxTcomTnLJMNcHjzmidj2Iepf6zeH9h8KZgOVYkR50maOhgZJ/nLYan1UvGUKYdZgn//utnFC70l1gbJ7T2+8ErB/Src+1K7x0PMqnCumMTEC60nMxvdX3Hezi0aTJ7YUBokvzN7EBM43CBSUpVlwq+DfKI1/8l8hLg0VlAe+nROF5LQBV87597wKpxlV7vvBGAVJuEgqnbFwT0//Zs98HflfKw/xlSEMiFGqKeibg9bdn1Fx4yWE3ONFgqsJvP674T4vPcO+XCZa4Z+dmJ3IfIbnsb2v+pmZq5qvyAbzPsPJJpjW/TzBaNyFjRTR9+QyuGTPmg4VQysS0zoWxI/LsjpbDd+tgmgPLKUYsW4PHCuxYAQuns0IeguIUO02HnOYV341DllYh6SW2KvQfMV6hr5SYQJW4TVUFpUmXqNL6dT2DTMyr8cFrmZfiPS/RzwWP8Un9PP6DVqhgaRRHzcf/MwxrbS+AQqIGdUbJaGR3/hA627w6aQSFAAbkYmT/ObRacg8CkQY0i4PPA8lDprKbisgEwWWMoxmn7ESPF8MIXF4XrSAUfkZOVdZf2uqs3p4PbVJ22LiMm5R9P2lY2POLI0TowZ6nzNgPLj7A/zlGGpgqUAA1MhOGMmoVnk+2EviX37Yz73Se4tpve2gbjzvA8h/BkqqsxP+OwbEUHMwuAab/Uj61wItlq/zX9uNfhviNXuq/1NwWd9MA2hweaMLnG/RsjhnVMg== X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ded0192b-e9a0-4596-8d0c-08d4ce4ab5c4 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:BN6PR03MB2786; X-Microsoft-Exchange-Diagnostics: 1;BN6PR03MB2786;3:tRYeIww54NBwsze0SYlhds63zIAzgD5zkfUDMQhYgGCbXB6WgX17tN6tefFi1BZUFUCrUqB5zcY6tkqhA7e3dfgnWxER7i6NBdw+T36eWLlQ2Xgu93cYi0pQM7/r8XO0kpCI8fP2/eqLrEYzdIbPmicuT3WQcGbMf4iTitRxxa44uvz6+yLG4N69vH9cTMj6FivXZOETL+NkGdvCw2tnzetYUWYf8hqF7WzHixz42YpQ/SZp3UMK7SpixoxdGLSuHgHntserovTA9ryOA5oog1TQlgODX+CZgXFXbjkSYH7+BHCGeV9u+yNxP1iZiz2WyXOfrvxjv8dOyxniKXHGUjSsZufhC3L1pyZ+7phXi+tsudhiAr+YlkLvLFgMdfD++IF+8UdQAM588uk3kfhUcrGL6Y5nPMD79/r61qOAVHhAk/Sg1C/33u7qpHwL3a7hhma3RQATV3QNMoPDGG9gK5mWOvtgl8PzSIZybwrT4Vu2827dnd1j2XvQV6zdJSOeuP1EchFrBOL1hCbB0sJBPu4i4ePQhdnFVVaHO3AFMRXV4hdoXFl5E0aVEr2XYIZJiOy8UvHYY2HKfXZubVDgv9hRcJ+RUKMaZ+a95Iao4UDkk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hm5dMZxqvTdVZI0e5PKaUnsW1e5tMSCsjiBUshdtJ+c2JyqCi1jE4In205fGgw0ZQ2sUKVpKxhjuwGgHg8XdzS0VVuRW9g+okrmkVpvlT4NUnELllZg9ueN8WLyc5fdG00YdJMQ/b6ukcSxCtOXEFb+30ensBWHBc5rukSEIb+GAqW6JELgd+0NEVf19IUaRSznys0ofPAVyFqArEiiOChM= X-Microsoft-Exchange-Diagnostics: 1;BN6PR03MB2786;31:ezIphWDOwWoZ8VfHUw1WliBbG0T0F6GwKcZkBOYOE2VRgrk2T1Ni/nILBzOgUWdjEChr5q1QMV88GUhfUxEY4Qnz3+T/rwZzftZqdVHR6NGei8sSErAb9x1nvizHnfJwljyn+SEWle5RXZOwOmZh7sujUS4+0SUx4VB0WGLDvuc5U0gMvozWfKDLkY6qHcznxPTfNwGJAI2I9SDWQdvtfM/2cgEvZpp3I3faZHTcrH0ZNWOnbdj4LWfden21p7XUt9cvT8nAn25MfJ7Meaopb93kr/1W9YKfLArqoMs5DIPQ7vY8AymXboKHIGmln20KV3WAWCpgorylU941EBxhZBGGNMEwSCM9ZTWxRykwj/uS0hg3KzW8oiQVHhUCA3bfoJAbBVKsCJSNd1jWgoLS5RNN3Rfau5WKDc+GxNsjc6r+XePRxW+qzBrkAx0ZgFfdxt1NgzsmrYNi1AFomqXL6GLFhSHYj4xC67zhfxSw4ymF+0q8KiJiehkAPUi2DE+co92osCOBq04qZiYHs7zI8m7lfM0yQb11hecDGNgGtyNcpzJJCpI1F0F9SziLkpu9rwjcDwY16MVp8vQOGbQPdbgKuPpRG+ZE8VCXc8293TbOdTRlWTYGnWXOlXNrVztJaNLb8hdagiqrZB8PALRmejoIc4YxHg8iHYXagtUSjQ4rlNqVKt00JKxLjtOpb3lbuGIH8UH7p8gz79ojVnig0Wkfd2Qh8h2lGSzZsXX4EZ4= X-Exchange-Antispam-Report-Test: UriScan:(236129657087228); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(601004)(2401047)(5005006)(13016025)(8121501046)(13018025)(2017060910075)(100000703101)(100105400095)(93006095)(93001095)(10201501046)(3002001)(6055026)(6096035)(20161123563025)(20161123561025)(201703131430075)(201703131433075)(201703131448075)(201703161259150)(201703151042153)(20161123556025)(20161123559100)(20161123565025)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:BN6PR03MB2786;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:BN6PR03MB2786; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BN6PR03MB2786;4:zJBiZ4QWL5heFd2knlI/esyRt1SdJSoEKKgrN3hvhi?= =?us-ascii?Q?i0cGMfadM8Jpje6csm9bK1MaFcicrQlgno0/CsBnkbq/KOQWo8PDKk0WMK8I?= =?us-ascii?Q?WV1Yw4HjbOyTZOEk9wxhWgMyMJynwbuzes7g7VgXvN2lFBOH3EwHzinZTHWu?= =?us-ascii?Q?FS1c5sZGOsuSsjHnhWt4WKSx8J5JLpduYpfPWv9sH49CmhIkNRNR5rwJMZHr?= =?us-ascii?Q?oPvsCGAftd9O1AGxuAnvg+cJunhPWmniBCotSnI8rbnJXsboPDiIdGQZL62C?= =?us-ascii?Q?EkeIIGj2njdHtzCPvOflEpbMg+nKSN70MEPdemmPtkIrNxx8EUJYtaMd5NGB?= =?us-ascii?Q?4ngBlCab3+Rr1pZIf3Ie1IzcvakH8kpgXqXWEefZ/+nJlOFMAUrSPSrDU4VP?= =?us-ascii?Q?VrXLIl1T1vscv1m76XwuNqfPWa9+OQSOpJ5JGPtDLLhJrLiH6xC/sHG7szmP?= =?us-ascii?Q?hVKY/aoo9bjeVAe0FTLuD7JHnIcsXk5zBsM7eSA7d6lNcU71s7viSo/xKrTB?= =?us-ascii?Q?TePV1yIuf6ncUAjahd2dxh4zelubBcDkPJpQ1V8n2oiFGxrpBL2TaWE+6zom?= =?us-ascii?Q?olexB0zFYYdznbevENn0mY0kBMuNP8hCS2V1U2MqUUwtx6T3kab2WVlCXNFq?= =?us-ascii?Q?sj0PTemNra1Ny90Sut3+dC8nfvy+aL/kXRIg9QbKqgiYozGmSGBSnx4PgaKx?= =?us-ascii?Q?wJlDAAeIuJZkkM890nF3ZqfmLyZp0QdZry33S+58j0hWnb92wOFXegmtqRat?= =?us-ascii?Q?AefXUKjqY1+QOkcfK1y38lIcPxRUm5W/XSS7gkzOr+lCwneG6hWb0gUoz0/I?= =?us-ascii?Q?hfW/UgrB7sorR7SACt6kK4NYyqRh1GylqBlaZ8prgR2cOnSqjdObpsjenxIx?= =?us-ascii?Q?HMTvHIoezn99hwU/RVQqq7I+OEEdbCILu+DHVqqEp0RaAcnrr5spdTAAV7gG?= =?us-ascii?Q?hX4UnnO/ibWe4b5LPOCnF+0hHXybr2FTMMKYv/FgtsTAPl4O7Y1ln/cFLb0g?= =?us-ascii?Q?tRKnzWpAi6DdczJFdL2x0GfAjdpsMnnzpRAFzVtTtAKCWd0KQEovIvUUcJOn?= =?us-ascii?Q?5+Pem6S8/iNWaJe9qtVAp7E8vXohH1WFlNBxbsSwYVSoUlkAS+dFDeaGsHIN?= =?us-ascii?Q?BvhGoyorl1RRtGd3B7ZEHdPjw8z0Q6aexWyTw50YzhQd4K8ACmTpbN0okNww?= =?us-ascii?Q?dO3U2fxn6NFZPfeSszPq2aOxk43CqIWGCVUQ4ERCrdz+fZ8VXoQtifaGup1r?= =?us-ascii?Q?7nDjNINzDxkaBXJQMJyw93MXvGZOZL0n1TCCNzi2210wt597l5ZiO3fPp6dg?= =?us-ascii?Q?=3D=3D?= X-Forefront-PRVS: 0373D94D15 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BN6PR03MB2786;23:oUHXBz267elePygw0THSi+QjmMIGDDGeLIrl0P6pH?= =?us-ascii?Q?bFHLz8I2k+r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CbTANv?= =?us-ascii?Q?AtWKHz5O9Y/v9qpUzYVy6ZoVrFtpGINn4IMD3DeENijGdGyItilRQqaH3gjP?= =?us-ascii?Q?pHPjqRt1tV3GlGoaq5ryROY/6XJ5pjhzB+we+2F5nlKZBx4fYZudn46WKzWS?= =?us-ascii?Q?9uJo+j880548gnfbA8Fva6vEgKC17ItwiuVMMRyCXLVuEs5zoXanL/TjgiJ2?= =?us-ascii?Q?/f7jGAh37TkpoXOwhmLkZKsk68ZX31/7mQWTMjOP/C6pyUB8cCz62QyMiP6Z?= =?us-ascii?Q?kOQNfcY+QOy275oMqLMh1c14eaN1Vc/uZP7g/o1Nk+s+gwFr2uMsZWEEs/IT?= =?us-ascii?Q?gp7m0jAPrp8Wccbaphujox3yEnnRP5o7EIafWZGG7wCAoYwPncW/YlFfWBQN?= =?us-ascii?Q?sGROIxr6YrHApenjvaHtJ3o0gpT92LIPWPwsIl9ARnhwgMA/5n+l/sb4BG5S?= =?us-ascii?Q?zV7mLO4IxJy8BLq6b/McjT/FigmrHq+a+1CpoI9kxILftjOamrIyGWXUfQhv?= =?us-ascii?Q?xxAEZ91XimbyL17hjIkDYWoYYvJFsmeRrzRFSP3n/PkjetvEvPRmKn0LD9TN?= =?us-ascii?Q?4z/tphL9uqz+IKdW2gwnehll/NybQPau2CGlhOqD5vKCkJHMuK+w/4zHljOj?= =?us-ascii?Q?3E9Gu/KF7kVuGRgcflR8VasVeBOU/8S8ZAOQx9gQ4G+5MnKfa86tGeY77Ovm?= =?us-ascii?Q?9JLvw9vv/58aXEIWLUXooSpvFkCbFHITWYrD99J1NvrGPyn5C4m6AyG0T/D3?= =?us-ascii?Q?6Mh?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BN6PR03MB2786;6:CQebsM+076TFlwE+ylPctEEvDmI3crlF+8QMK/zzvA?= =?us-ascii?Q?WXWE0S641b7zvcryPKpTHklJbA7VfsI7Jp/D4OQo6oKO0zSS7OyGzLIo/U+6?= =?us-ascii?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-Microsoft-Exchange-Diagnostics: 1;BN6PR03MB2786;5:IECemyoYHPWdD5EX4aApY+MTFXhLy4N+GznOHBrgDCC8x9kl0RW3s73zPz0Zxfj71J/aQIGMP7FmQYhEHicBJvnprQeHkiSVS+Ydqck9kVTOaHsKmW9xH7kSuaRpPXDiXQMP5u+Hagm4ZgG6q9w56ZjjD/d70ka4zJAug2/tF7cnx7+kE0pwTJDMzp3ttQ5nmvWT0+sKjeNeSgYteYa3cI+BTr9QlkX+g/xuLnYSw1CgNGH8fuRBz9i95rJ342thTg1v7W7lfkRmaeDTUOY9iIUeFcqWswU/WNGSs8WlLbrSapbSHeSGaBIekxdYUBRmd0FqydMed0krEicAEenb0gRFatlDDFw0h0IewsDlHacoNKK8PwSMsq+R6KGl2G91tvGgj0O90X34OXzy85vNKT96lWIbGs4a6od7+2nCj98RFAU9kuEhqmovsuv0hK0Rd1oF3mHXZL6wgA58KHiDXLfFst1FA0/B/pxYmCaaoj0bvc7eOYs/RtVI8dI8AaL4Rwsg0zlX3P3QqA9xmbimxQ==;24:UhlCzGwLlTgXKpcevBvnQrDRHArbBI9HhwadDN0TkuMbZ4I5PL5MuWt6GCOxxbWGEeJ+tKZhIkuAgkwUV58flhBxytzzDyr9N/hzTkadPzM= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;BN6PR03MB2786;7:vD4puuEckfdm3xfPfRiRPRHOgJ0kAL7k9QBJ10dpYjCpBSxHC06djHYvBQVWL5VpWRdEoHYFbz1XNW9D+leR2iJEWHN9A9u+7OQkAp5V3678lBvOoqpJb/85lgJUkBnX1Ickcv6YnvIrt3ejdshxv1Bi/+ukRzQYGXs3Tn3APfDwrZ/1L7S8RB4hXhlR5ENAN8+vT75Zc76Io2yxCTTkq7dT2npmuM/3RcF+5R3575LNnpt1WsNRYUem/TyxwNOcqlx1FrLYVU0imW0paxdCo/Re7vVR+rMYba6DGr+ger297hwVfFh0u0Q69l5wawWQofbB0YidQPockUDkGxQUxmbA1T7478s4ZIHRsRte9ElOk93dgrmZA+J+xB+S4ylsouodJVOT0o5xk7/O7x/9DqxJfOnv8DFsCq1bR0UQR8QSWPYv8wCHZjut6HtNK1WuS39qYqnIPzpjnIB9qnty/4BltItq++FFWSSz61W5X1JySRB9m9Z7MS4WAx9cI4IvnlNQBwq2d1qRnirpI7d3EdKd+uZjoWyzoihKZkmfUAHzShJkesOL6Y0w3wD2a83i6l8jPI6bRmbTT14YcSfYLoRrVDlLctuRo890PTtD1AmUHhCrmV9WWu6t7fF2m8IpcsvGCMwBVBdkhNvqbwKuULqgfEFL9fUqfxtBCZutYMCrgEd5hgOm2vN604aWMfgF1Ffh6vKqQb3HL5Tfg0JrVkaqYUKPLqhMF0iXRVsZzRZ+g3f+HeAklWm+VdWqOM9c+qdjzz22s48oYvaYWhQoijtZ196KUg3OsX1bi28SfxA= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jul 2017 02:06:03.4953 (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: BN6PR03MB2786 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2546 Lines: 72 On Tue, Jul 18, 2017 at 06:47:02PM -0700, Stephen Boyd wrote: > Quoting Peter Chen (2017-07-17 21:41:11) > > 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. > > > > Ok. > > > > + 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? > > > > No? This is intended to unwind the clearing and enabling of the BSV irq > on failure (ret is non-zero) and so we clear and disable the BSV irq. I see now, I did not notice we have already enabled BSV above. -- Best Regards, Peter Chen