Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3980238imm; Mon, 14 May 2018 00:22:10 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr+J0Q8Z0PoZzqys42CeKWZWplWV0Ig+z3AefYF8S1WJ5TjVzmIr72Q6A2Ka5Fzlo1TTvQN X-Received: by 2002:a63:56:: with SMTP id 83-v6mr7244562pga.29.1526282530138; Mon, 14 May 2018 00:22:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526282530; cv=none; d=google.com; s=arc-20160816; b=J9iLsYAVAWFTs2uRz0Ne5VUjmPFdAtEgHi4W6nThS6WsHlrv6sHnPBPNHXU7iKjNkF IpAq36aYGjfePLeIQU5Y06YDVQLAXYHNR36ECu1keS8mH97d3tabBSbqypImDJgSBRVI ksvMkvtu1BuCVyypd/A6v9lkz9m7g4uzgGB15QxPsuNpWIUeL4E6Rt8xJIlo3jT2Xh1L NQdR1kXg2sGpPsUbVZZhicvMmdJiRUwdsBe7esL3AMMjdcEhGQCHt8vsu6RLtJepJvMl SPHs1vgffiaqO/+MARTNWLEiWwE2Q0XHkTqi4iqVCvbZNCd5Ku8VvbY3xWgbIHVG/luW Phhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:organization :from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=cwu7DqV1ppjfWoj5VUcYIfGCGwDbc69wxphtv9jZyuA=; b=WgHDrzRO03Y6CGfuHMwTEHq2xEZaRUbFcFLMCueJvOdd6EhAr8q6cKYvitMgCL/Y9e 602aKJCFasP73n+d4s7Razi9IcMA6BXcABmxXLKZXstMLqCMWFR0D0o8w/80EbPskTRU rSiRFzdsUWhYUjhyBvoruwItAdRHV00cLWbemhZvY35OEy3hMm3jT1MYyy6/Mf9IVCuD /YVg0mQIXsDr84UND6/2nBzJXgZuZ6DqVNI/q7k1wrdODcXU9/SM7IUlZWFVI0fS1gVJ PzjY6tfiaUdC4GVd65MzYttmWOPYhFvRJFdZ+bQSVbKtUidNMM2GTQ4KvTEr+mDEeUe1 UdJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@axentia.se header.s=selector1 header.b=WVM5JNfI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 63-v6si9590716plf.524.2018.05.14.00.21.55; Mon, 14 May 2018 00:22:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@axentia.se header.s=selector1 header.b=WVM5JNfI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754065AbeENHVt (ORCPT + 99 others); Mon, 14 May 2018 03:21:49 -0400 Received: from mail-eopbgr00092.outbound.protection.outlook.com ([40.107.0.92]:7769 "EHLO EUR02-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754009AbeENHVn (ORCPT ); Mon, 14 May 2018 03:21:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axentia.se; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=cwu7DqV1ppjfWoj5VUcYIfGCGwDbc69wxphtv9jZyuA=; b=WVM5JNfIslcFlMA03cW+rTmAMmBbo0RsXDP9qOg6hR7hV2aUAZ0WvF1SsnhkA4FHvJ95nTDND6UnuzBadqP5gWbtZEKpohYlqEeUX/LasJA4rOYHcESoXa3L859N+v3M69Mma38mCt+wMwHmZxBwPtTeGl0qQPldSb9fe8Kn9DU= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=peda@axentia.se; Received: from [192.168.13.3] (85.226.244.23) by DB6PR0202MB2775.eurprd02.prod.outlook.com (2603:10a6:4:a8::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.755.16; Mon, 14 May 2018 07:21:39 +0000 Subject: Re: [PATCH v2] usb: chipidea: Hook into mux framework to toggle usb switch To: yossim@codeaurora.org Cc: Peter Chen , Greg Kroah-Hartman , "open list:CHIPIDEA USB HIGH SPEED DUAL ROLE CONTROLLER" , open list , robh@kernel.org, swboyd@chromium.org, devicetree@vger.kernel.org, Stephen Boyd References: <1523973148-2094-1-git-send-email-yossim@codeaurora.org> From: Peter Rosin Organization: Axentia Technologies AB Message-ID: <4abbe781-f488-b876-06a0-5521736c4d6c@axentia.se> Date: Mon, 14 May 2018 09:21:36 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [85.226.244.23] X-ClientProxiedBy: HE1PR07CA0028.eurprd07.prod.outlook.com (2603:10a6:7:66::14) To DB6PR0202MB2775.eurprd02.prod.outlook.com (2603:10a6:4:a8::21) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(7021125)(5600026)(4534165)(7022125)(4603075)(4627221)(201702281549075)(7048125)(7024125)(7027125)(7028125)(7023125)(2017052603328)(7153060)(7193020);SRVR:DB6PR0202MB2775; X-Microsoft-Exchange-Diagnostics: 1;DB6PR0202MB2775;3:7mwnldyktd06v1Rkbrz2EQLzCjwdGtOr4YOTBpbJgXli6mIbwJgQd2qJQCfeWRUd2TJgSa8obcJCRsk9yU6XRXsMbCmNzybYAaqVjC022Nhebp18cZqi6Iz5Mve8d7Hjamidks7YmV1rXcMX6kE+tE5Z/Y53AVfRHEtLjLiLYEUv4J5XIyTSryw921lQ6O7+iv6M/i0jo+rQUz1iEh4Pi7ZFQOfmuxL+wP0zYS50fLseM2gNdJ1VKv6etL3JzKc2;25:sCnSzaUHJv+p1zqm7HoCxdaJeeHuX2by7WgLR5yCezswP2hZqgcg4rAZhu3lFJoKz45xdAm7Bwg8Y/TPk6pSagRHxLje2wPGFObdm1tXPOy+V6BptDFde57b3LwYKewky4LrAasmY8yMXLbQjPvAzGFCJk4uMa3c4D5fShAkqUHLGKZe7pUEOk73u8mr9y9Xc1XwkIod8ehXPwO29/1JwKiOb/syiS7/u5MwesB2T7u5nxwC9kJzhvdNuLegfIQ8ByJ4v6zDBANz0sH/P4/N4nHXBfE6jTby+dxoyVfjUz0ir/TJNXwGXBdtS5YbEVXs09h5d0Yuk8HAW1LAguv9ug==;31:mL6xdY/vk/VwqkGTeWf/c88X2JdjoyqNWHDRpBx3ZHvEBc1FDFT3SuEdOtVE/GSXOF++MNV7bznA5jDcwj4TGE5Va/FBBI3FR5EceAmULtBIQhYNDwoDEN1e+cQ4k/pxq7AHHWIsLcl3DVV5ocaBXicaQ7T8/p5jGe+ejploM6eV29MONXb58IexwiZ3Iar3RQevROSszczY9bX5DWwi5c2s5TU5lvp0gD2IkNzbquI= X-MS-TrafficTypeDiagnostic: DB6PR0202MB2775: X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(166708455590820); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(3002001)(3231254)(944501410)(52105095)(10201501046)(149027)(150027)(6041310)(2016111802025)(20161123564045)(20161123562045)(20161123558120)(20161123560045)(6072148)(6043046)(201708071742011);SRVR:DB6PR0202MB2775;BCL:0;PCL:0;RULEID:;SRVR:DB6PR0202MB2775; X-Microsoft-Exchange-Diagnostics: 1;DB6PR0202MB2775;4:W9CWTe/VWpmf2t6IpPytFp0ie4z3THLncp/o2fMnPnPlbAWV13aUQr2RO1u1C3h60xf7cZAN2e548xq9f1htoBdJ2kX+EWRv8I0+FHvqFQ/ANYZoR7UiffaUhvF7DDIala3n+0z/QWvm/td4tFoGj5oOoyMrlMjxLJsvoUSKlzFOSY0AB/SlBtnqkxr2TvEGuSzACgctbiPaejb4awnXUNpHHKnUEn1KJ46nmALYKLrkvLXWQBdsfU6hSy60Te9/ZC12oFqTP/8amiYsUsBZYeNFaX1x/sN/BAeIf9c1UPKSusS1blTPusERMPP5TcQ9 X-Forefront-PRVS: 067270ECAF X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(6049001)(396003)(39830400003)(39380400002)(366004)(346002)(376002)(377424004)(199004)(189003)(2906002)(478600001)(446003)(64126003)(6306002)(8656006)(5660300001)(8676002)(65826007)(230700001)(3846002)(6116002)(53936002)(31686004)(966005)(8936002)(81166006)(25786009)(81156014)(3260700006)(86362001)(26005)(53546011)(386003)(76176011)(31696002)(54906003)(74482002)(77096007)(59450400001)(16526019)(186003)(117156002)(23676004)(52146003)(68736007)(52116002)(2351001)(305945005)(2486003)(36916002)(11346002)(105586002)(97736004)(16576012)(6666003)(36756003)(229853002)(2616005)(7736002)(47776003)(6916009)(106356001)(50466002)(956004)(58126008)(6246003)(6486002)(476003)(316002)(2361001)(65806001)(486006)(4326008)(66066001)(65956001)(42262002);DIR:OUT;SFP:1102;SCL:1;SRVR:DB6PR0202MB2775;H:[192.168.13.3];FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; Received-SPF: None (protection.outlook.com: axentia.se does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtEQjZQUjAyMDJNQjI3NzU7MjM6cnZMSTkxWnQ5VG5kTHVFK2JXdVZFaVZU?= =?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CUhkybwk1D8jJ8c8cTUSn9Mmk7xMjjnqfUJ3QZfNj5MyzkyjQt2WYv9O8dy9bSD3SHObKWfGUCAs/CqSNC9fvLUG2Fqu4a1UlxKoAaH6ZqAKCIglr/HhW7UYDVb2p9qK2nFC83v9Z3vWjch7rYmhja8kkK6aOcHLBymRJqQdU+zlX4oQQ+uNJE/9G913SnIiOSA92HPDg==;5:Islr6ACqpd0JONVHKZ7d6ryyJ7svLmhqPajMxnViQUWXOEiCh4CnJjF2pqf+MYoAQAiVFV79RJ/zdL/f9XBKqPUjp5jcOZSNp30/q2WehM3L9Yp7xTzfaU2RNVJT8hKqQYi5woO3wTxUTI2E2aINO761lCxYqsDepTpjkrV16FM=;24:VzGERBUB6vpEp3zmRZxmQrquXyz44bsMRSJGILigHy2eKCARCPsfHIlQXd+rTpF2Vu0qSK8P2HcwNc53fSTXktCZClXahzyNQuyaYHMwD1I= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;DB6PR0202MB2775;7:oPpXP6+mIy64RRcF5zNa7f92NfcfwhdAHcnC1tMBnqBDfVE27SdDu+fbfzoifh7bBVlOopl14m3Odu2MJD+RSllQOB1wzWgL4EMhEjSKVoFbjoITxJ0DYaZ3GOZKaCG0m2h4pZUkrif7U80PoeiSOSV8IIdPbwCr+kctwpsyOWcrgXn7euZ5xRy69HEMXO+dd6TlRXoZ6NyphiF2KokibIQGn/J+XQ860kKFeerHmhDtFNZTX9ScGnypEGerpMMD X-MS-Office365-Filtering-Correlation-Id: f8954e05-3377-4ac3-009c-08d5b96b5697 X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 May 2018 07:21:39.9575 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f8954e05-3377-4ac3-009c-08d5b96b5697 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4ee68585-03e1-4785-942a-df9c1871a234 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0202MB2775 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-04-18 07:48, yossim@codeaurora.org wrote: > On 2018-04-17 17:11, Peter Rosin wrote: >> On 2018-04-17 15:52, Yossi Mansharoff wrote: >>> On the db410c 96boards platform we have a TC7USB40MU on the board >>> to mux the D+/D- lines coming from the controller between a micro >>> usb "device" port and a USB hub for "host" roles[1]. During a >>> role switch, we need to toggle this mux to forward the D+/D- >>> lines to either the port or the hub. Add the necessary code to do >>> the role switch in chipidea core via the generic mux framework. >>> Board configurations like on db410c are expected to change roles >>> via the sysfs API described in >>> Documentation/ABI/testing/sysfs-platform-chipidea-usb2. >> >> Ok, so this is v2. Please describe what is different from v1. >> I have told you before that this information helps. >> >>> [1] >>> https://github.com/96boards/documentation/raw/master/ConsumerEdition/DragonBoard-410c/HardwareDocs/Schematics_DragonBoard.pdf >> >> This link returns 404 for me. >> >> Cheers, >> Peter > > > Hi, > This patch was split apart from the original patch into two patches > one for chipidea and the other for bindings. > this patch has no other changes two the code. > > I will update the link. Just a note: I will not feed the mux_control_get_optional patch upstream until I feel confident that this patch is going also heading upstream. Cheers, Peter