Received: by 10.192.165.148 with SMTP id m20csp3124447imm; Mon, 23 Apr 2018 00:35:04 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+t3NveXSIa/sWh313rXFQajCmBu28xPhcdS2M0PLpnhP9DM06I6M8b+3wmdwLJrKtAD4yO X-Received: by 10.101.93.140 with SMTP id f12mr16549798pgt.412.1524468904907; Mon, 23 Apr 2018 00:35:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524468904; cv=none; d=google.com; s=arc-20160816; b=vgLeu5+o4NifgjDyQkgPih682zYc+JjA9RkCa1kepsWtu7RVwu8UOurazScAKjWo1H RlaF9+cAL9OhmAutHkNxz7PFBJsXFxMfwceJT24/fQg2QLFc+TZp8qJHksuccexljwXN LdtTL7OAmpu41+C7DUQx8PImKwVsgLmuA1Et9SOPgrjNHAAA8AEN6asaez0r9AvBUL3t bTEkLc8ahb6zppy435Bs1xFHYMjM4wB/He0kBo2moPfBcrPvWpVlqHHjCuCbrIIyJbOV +WMF2meGt+6NH5XH8MfGPQhAQktOYM6WOyix00jfnbYhjWdzu8wytsH5grOJKhaEW5IR 3HIQ== 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:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature:arc-authentication-results; bh=1l9ZHUYXcXR9opj6KtZ92lZWyxsJDtRMFum1eBtbBQI=; b=V0EADdo+K4D1U18Ml4LfYaBqDqoFlGelm9iRZ2ViDB+iKZ9q3zG8YokoDLBxW7SoAk vBzI12qA1fWcxErnEoRNzLfQ2Jj9DQbMA+lJWyf/OknH5FRy9c2uKWTvejCCyVFbr65W CByARBqL4bIRDDtImEad8EzNSaShL4QYy5NrVSZmZoyiLEeCErYrAaGID3aj1o1NVXd7 slvGJmjolhGEvu4+DQoXPMAqQsFso+nJIVb/1fbzDVxHFYBd6ZessFLzFuoUMVODp87v PXRvr2qdBEtiGSUmYX8pXYyOy48hUydJVP6Ym9rSkjoCDnENuyJHJrgLMafIcC8ZMlU/ 0LRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@Synaptics.onmicrosoft.com header.s=selector1-synaptics-com header.b=akTaidwm; 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 f35-v6si8931814plh.193.2018.04.23.00.34.50; Mon, 23 Apr 2018 00:35:04 -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=@Synaptics.onmicrosoft.com header.s=selector1-synaptics-com header.b=akTaidwm; 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 S1754149AbeDWHdi (ORCPT + 99 others); Mon, 23 Apr 2018 03:33:38 -0400 Received: from mail-by2nam03on0065.outbound.protection.outlook.com ([104.47.42.65]:26304 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754048AbeDWHdf (ORCPT ); Mon, 23 Apr 2018 03:33:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Synaptics.onmicrosoft.com; s=selector1-synaptics-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=1l9ZHUYXcXR9opj6KtZ92lZWyxsJDtRMFum1eBtbBQI=; b=akTaidwmwg5fYRVXQzgSi/AuTp1uzvkh/bfZLKN7l4TliIeDNqv3oOYq6qp5aywwF/R8xozR9hJuMuiL2sCUBsrY86sSZy0R49wN3xWOGBmZqgbuOrhj/kmdEIlIoppcy2s/pa4Dcq8EorGin8Vb71wYqjPxJ/QWm7Ufr0URA8Y= Authentication-Results: nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=none action=none header.from=synaptics.com; Received: from xhacker.debian (124.74.246.114) by MWHPR03MB2640.namprd03.prod.outlook.com (2603:10b6:300:46::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.696.13; Mon, 23 Apr 2018 07:33:31 +0000 Date: Mon, 23 Apr 2018 15:33:10 +0800 From: Jisheng Zhang To: Peter Chen Cc: Greg Kroah-Hartman , "linux-usb@vger.kernel.org" , "linux-kernel@vger.kernel.org" , linux-arm-kernel Subject: Re: [PATCH resend] usb: chipidea: Don't select EXTCON Message-ID: <20180423153310.47a20e6d@xhacker.debian> In-Reply-To: References: <20180419160144.0412a510@xhacker.debian> <20180420170126.732e093b@xhacker.debian> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Originating-IP: [124.74.246.114] X-ClientProxiedBy: OSAPR01CA0155.jpnprd01.prod.outlook.com (2603:1096:604:d::23) To MWHPR03MB2640.namprd03.prod.outlook.com (2603:10b6:300:46::10) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020);SRVR:MWHPR03MB2640; X-Microsoft-Exchange-Diagnostics: 1;MWHPR03MB2640;3:gslSgK64NhLTueWTQcMaMrIr8q1pF0IV3QwtlvdXLIieZf9aGtOHI1AudwdcftTj/m0Pv7dgKrsC6og+EwaLIZuELwhg+jHIV+4qcqBaLQltT+S9cfYjUMoRHRtRmiS6HNH5wgiuzuLry6NhpNyZat1P9tA759hIn7Ot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UvbdA/F+TES95wdguJIVVpJhovG7oVHrFhSJkf4lWPdWMkQhcR/3wKd2g0YoQ0Hs0XZX3Yfl7fSlgUGanwwU1xDuHja7huyQh6lZxcwZtegYhQyhpy1ZNPx5R2y7UAduBqjbX6mFC6nIw7t9xLoXYCpr98webRi0mY36VHL;4:JxuEWJ9y2My+9MNK56hVh409NS6kTmFhZ7+MQINl7t2OuGuR3lost9YV9mgQU6cke+eGbxEa8BxbOfMC1jb1iNjIqXTpLrQoj9RvpjE7f5g0gWqAeeD/4nRUWpFApXFVcQ5b4fdKECY7Yw7qSrOLTR5V6n9Vye4F1PrtL8mLmM9tX5lg2R6HOEVt5SDKv57+24m1DDw7Wd72vnox6o9nYJeF3oUJW9vnc29YzX5rFdChGulyj4ZWAmZuZMPaL6LSACtLF7nZc3AYMYEo3OaFnQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040522)(2401047)(5005006)(8121501046)(3002001)(10201501046)(93006095)(93001095)(3231232)(944501410)(52105095)(6041310)(20161123562045)(20161123564045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(6072148)(201708071742011);SRVR:MWHPR03MB2640;BCL:0;PCL:0;RULEID:;SRVR:MWHPR03MB2640; X-Forefront-PRVS: 06515DA04B X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(39850400004)(39380400002)(346002)(366004)(376002)(396003)(8936002)(76176011)(7696005)(229853002)(6916009)(1076002)(53936002)(6246003)(8656006)(6506007)(386003)(81166006)(93886005)(86362001)(66066001)(11346002)(316002)(54906003)(956004)(47776003)(8676002)(59450400001)(52116002)(476003)(2906002)(446003)(50226002)(33896004)(305945005)(7736002)(5660300001)(72206003)(478600001)(25786009)(6666003)(16526019)(186003)(23726003)(4326008)(230700001)(26005)(6116002)(9686003)(55016002)(50466002)(3846002)(39210200001);DIR:OUT;SFP:1101;SCL:1;SRVR:MWHPR03MB2640;H:xhacker.debian;FPR:;SPF:None;LANG:en;MLV:sfv; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;MWHPR03MB2640;23:sI/V890Tohf/7Yf51ne5hrNys878CYs1N4q6XZeWC?= =?us-ascii?Q?tvwlG4Zso5rlDUpvnlt2wrXcfMcqPNPk9JWRynemSqH7gOGbPC3Vpsy9VMvo?= =?us-ascii?Q?D2uNuCpyOq0G2elZVPySLxUcpfM5ZJAONl7wDC38hTcoNnbQQtSukItzm4E6?= =?us-ascii?Q?hhiIWaaX9OF4/L7GefV1+rJedzT1Hlhoh1GoQFFP6+9ajlJZ3T6/t2I532df?= =?us-ascii?Q?nBLYczpspzJnVKZP8bzL1Y9x0QRXu2nnsky5OF/9RVgnirCO4hMXTw8gyM7Y?= =?us-ascii?Q?MPAM8hmUJQCF6DMHcIMyH0gVxpaO/DuoBYJEVeuAxlIDA2INry2E2K4WZU7O?= =?us-ascii?Q?0xkkvUjb1pDmoJL1c7t8nNyo/cRHPHg84jkj6ZmdSl5OISmDXsnlvXiMcGZJ?= =?us-ascii?Q?G3infb0ZlFiGHAUffxP2yRMhI7hSxIarSJUxk/qyyGKQqetSt3YPVYP1RtEF?= =?us-ascii?Q?36AQKjGKItAIs1jiPvpKjJCnXIcQYgT83RgPQajEmspA2A+TtASp8RHM2Y9i?= =?us-ascii?Q?zj13G8LGq0BEl4grZuI8OT4FM8ro3NdBKODW+b+I1XSi3OuaykddI5OHvxaH?= =?us-ascii?Q?kzY4RF9jqahQxtUd23wDv0oQWU+qzuaWZXaAzVa/PptYaEdLXyEw0zgEVFTv?= =?us-ascii?Q?ogYlMob8sMicVNSc4bAfwR05rVhE7io513jUcG3slSyZU6nhA8UmIHjziQEV?= =?us-ascii?Q?3hrsRu1tsOgm+dzwzDU8eTpOoXc1/WV2PsATTL1WLrDsYycrzkE//U1/KukB?= =?us-ascii?Q?2qRZGeGKjt0ZYbzMXJOx4N3MjyB4xR7F0U1NV5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fiYNz+BAm9nLzwWZ9ZvgZgEVQilqs5Gg304nunM1YvbiQNlQrjHx/qzVYjH4HDk4wBZJ163yS2IRPTwXo/Uvcfb4R1hLnjRe7w1ewsSAp3+BrZuq+qTBWu6uvlzqfYcIs95XjQ9Qvw5ikm+UoxNGf6p/3DPYv+kw==;5:c+FnyR/GnMg5L3w4L9M8bb/il3MoHfMcwpUXARJQ0/sFOxBYUwbqqLAKU+QjqueeWzaIIjGH4MrdWT0Tsi/xIbyheFQF2XPaPXsqhXin/exbv2wHd5f/y1jU4oaswA0M/h9Rouvr2XUJiSYSsNvNxmZbA98fChc1zE640xtXut4=;24:I0keAu2GTAQNpPE7QtjC0G0LYRkyHAlhdQczZpYA47RB6rS5RS7yo9B53T66wbhWNmNRo1CeIBxVEHH53Zy1WpzH/9dllq+d/ejAcd1WMec= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;MWHPR03MB2640;7:byYQr86UkoW8BlCV3uy8DFnd2iiQjOIUVIbcuxVkAyUWTHYD6pyFS4pWZZyiD7sNaqQulNm1o4MhUmpRDr5gQFZvpvi7jp6cHqelWKc/cGOS3G01w/x68PJDSC37DS/SNE8C/r5HwiGpiqIB22wAahzz6vmGzB0gYfuhK12YR4h8oez7hx+bOsZ1zOb2gPoxbXfcwiQUw+cbgnaXVZALk/IV6KjWzCGxHNjHUJY0qNA0K/Wp+IbouCrfElycId0o X-MS-Office365-Filtering-Correlation-Id: 998d64bf-b321-4c57-3581-08d5a8ec8484 X-OriginatorOrg: synaptics.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Apr 2018 07:33:31.8829 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 998d64bf-b321-4c57-3581-08d5a8ec8484 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 335d1fbc-2124-4173-9863-17e7051a2a0e X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR03MB2640 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 20 Apr 2018 09:35:54 +0000 Peter Chen wrote: > > > > > > > Sorry to reply late, are you really care 2KB code side? Since many > > > users use EXTCON to handle vbus and id, it is hard just delete it. I > > > could accept patch for your specific platforms, like: > > > > > > + select EXTCON if !ARCH_XXXX > > > > The patch doesn't remove extcon support from chipidea driver. > > I just want to not select EXTCON unconditionally, but let the users choose. If the > > users need extcon, they could enable EXTCON themselves > > > > I just searched all the dts in arch/arm/boot/dts and arch/arm64/boot/dts only the four > > dts give extcon phandle to chipidea host, other users don't make use of it: > > > > arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi > > > > arch/arm/boot/dts/qcom-apq8074-dragonboard.dts > > > > arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts > > > > arch/arm/boot/dts/qcom-msm8974-sony-xperia-castor.dts > > > > I see, but I do not want to break msm platforms. You may try to create Glue driver Kconfig > entry for chipidea like dwc3, and let msm depends on EXTCON. Got your points. Since multi_v7_defconfig has selected EXTCON, and EXTCON_USB_GPIO(which depends on EXTCON) is enabled in arm64 defconfig, so what about: enable EXTCON explicitly in arm64 defconfig? then add this patch? Is it acceptable? Thanks, Jisheng