Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp791618rwr; Thu, 4 May 2023 09:35:07 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6bL1jJzNNzoIv6Gf/NZBbTSgpWWOVS+ic8kqeRXWeRNLJW6wXJRJKEZcaup3Dinqf8EcMT X-Received: by 2002:a05:6a20:8f1e:b0:ee:5625:662f with SMTP id b30-20020a056a208f1e00b000ee5625662fmr3687110pzk.22.1683218107042; Thu, 04 May 2023 09:35:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683218107; cv=none; d=google.com; s=arc-20160816; b=H2yb3DdMwvlBCpUwZHuTVhnjDPW+5yKjw9JNK6TSqkXnrnJP8x+j9ltWZDhHFZbrpd slDcXN2UdClFM/w2GXbDirNkBW35sYfq89ZjWblfj/YQFYtj41snCaErR1teLvW+IWUd COQiDPqVTx/dTw32ZpE0PQhgJWTqpshCNaFMlkGimLmOieDg26RZSxSc0x6pMaexoEoa 4UmF/7gf+Ta1bIFqX3ERPZEwZ6f3hvOhb0KMTmyHYkRecurBQ6ey7PACgi/zYHzmKLTT EbQv/1aL6y1CW5bE64vVJ7jhjn6YvNX/5NwRBDp+BOYhJ6WJI8XMvVMWQEr6kLbKEVG+ 8ZVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=wiCrz2ZRJmlknjS2A3op5qUSsF1/r0N1+dDlTFVnvnE=; b=KwQEyKcOjXnl+lQtxDtsmcZKAeK4LPXffy4Dt+eM2TYBWI36Qt+HqtTZz2OgA27tgh AUjLMpXJKOH7hXQX1YZW9WKQ2oZf/ZKawvIOXxtBcEljIkIGTvex24sxxOesyHe1ehEZ SlZfO+DLOa5N4AOQ5fJllTWlEOnZNLQo0GGQ9MTDJX/Eh3dhMjoEiCWqOADgftKrXL+O QHieTM2cs0sCa2pTnsxc5YxIDSE46YMmgV8K+z1WVLMCKTN7zeuMeqesUCdvwgnrY0WE N3CysmHoBFJUK/Y1GXs0KPeSBYW7tOOrEYZ4MBuPw62ArBb3Qn4lAyPRMIe1ko3SGGrs pheg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=ehp8Vtl2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z126-20020a633384000000b0051b8ab9b2a7si3300825pgz.193.2023.05.04.09.34.52; Thu, 04 May 2023 09:35:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=ehp8Vtl2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229700AbjEDQXW (ORCPT + 99 others); Thu, 4 May 2023 12:23:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229607AbjEDQXU (ORCPT ); Thu, 4 May 2023 12:23:20 -0400 Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::226]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E28E92736; Thu, 4 May 2023 09:23:16 -0700 (PDT) Received: from booty.fritz.box (unknown [77.244.183.192]) (Authenticated sender: luca.ceresoli@bootlin.com) by mail.gandi.net (Postfix) with ESMTPA id B2BF5C0007; Thu, 4 May 2023 16:23:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1683217395; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=wiCrz2ZRJmlknjS2A3op5qUSsF1/r0N1+dDlTFVnvnE=; b=ehp8Vtl2YknxMApsjQ51QluNSkt0kStbvIacHCS6HpgBi30SX0QmHASf05KUC2vQq0SQaS nOo0WJESWYwe/ZhBt66skVyMrslAHsB5sPpWQukCeB7HNjaejeN/EZM1Zg7ClZtGAIJVSX T1D055JNe3iJy108yRmGnEfkqmQ2cHV+61PxOeDtgHPpabPX1cumhMKJ0+XOs/dw26Yn1t aGwjc9Vke5F9P+/ka8h8DO4BoW/Gmhdpl2+1KRb5hRXmGsWdvuyEogWO7cB3P9Mhyi5p+O H7ofWPxyGkCguu1+hUeUb3XpXca5sh8sP9dhr9+2zpFLxr3qZjtWBAbGVqJZJw== From: Luca Ceresoli To: philippe.schenker@toradex.com Cc: devicetree@vger.kernel.org, festevam@gmail.com, gregkh@linuxfoundation.org, jun.li@nxp.com, kernel@pengutronix.de, linux-arm-kernel@lists.infradead.org, linux-imx@nxp.com, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, peter.chen@nxp.com, robh+dt@kernel.org, s.hauer@pengutronix.de, shawnguo@kernel.org, Krzysztof Kozlowski Subject: Re: [PATCH v2 2/3] usb: chipidea: imx: support disabling runtime-pm Date: Thu, 4 May 2023 18:23:12 +0200 Message-Id: <20230504162312.1506763-1-luca.ceresoli@bootlin.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <23672d66d229d3be4cc854ddf1462c3507f1c2fc.camel@toradex.com> References: <23672d66d229d3be4cc854ddf1462c3507f1c2fc.camel@toradex.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Philippe, I found this thread after several hours spent in debugging why USB host is not detecting new devices on a custom board using the iMX6ULL Colibri SoM. My best workaround at the moment is: --- a/drivers/usb/chipidea/ci_hdrc_imx.c +++ b/drivers/usb/chipidea/ci_hdrc_imx.c @@ -56,7 +58,7 @@ static const struct ci_hdrc_imx_platform_flag imx6sx_usb_data = { }; static const struct ci_hdrc_imx_platform_flag imx6ul_usb_data = { - .flags = CI_HDRC_SUPPORTS_RUNTIME_PM | + .flags = //CI_HDRC_SUPPORTS_RUNTIME_PM | CI_HDRC_TURN_VBUS_EARLY_ON | CI_HDRC_DISABLE_DEVICE_STREAMING, }; so it's equivalent to yours, but hard-coded. I haven't found any follow-up patches from you, so I'm wondering whether you have made any progress on this issue. As I see it, a quirk in the driver would make sense. What needs to be sorted out is how to enable it from device tree. I think a DT boolean as you propose would do, but with a name describing the hardware aspects of it ("chipidea,vbus-detection-is-broken"?) and not the driver behaviour. Otherwise looking for the "toradex,colibri-imx6ul" prefix in the top-level /compatible strings seems doable. I don't know how acceptable this is from a driver maintainer's point of view though. Best regards, Luca