Received: by 10.213.65.68 with SMTP id h4csp1456864imn; Wed, 14 Mar 2018 23:19:30 -0700 (PDT) X-Google-Smtp-Source: AG47ELt6+sPvsstkzmtoUVmRP8Z29I1xEmI/jGa0SdrnHNpqy9A2YRi/ew7jZvsMopRm4D9ki8UX X-Received: by 2002:a17:902:b48c:: with SMTP id y12-v6mr861126plr.313.1521094770444; Wed, 14 Mar 2018 23:19:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521094770; cv=none; d=google.com; s=arc-20160816; b=rp3obynL14gi774fPVon8RjSF5wjZpGer2AXFzu1H+Xu6+oqjW5Lpd1GyYlU6YXjQ3 iocCoTb732jbAK11Fa0AbUgE06wUIrowE2kHpSEqIkfoHt4oSRZLQrWbHMH26i3EFNH9 nm3nlU6zuvh0tn78SDsAn8UqZ/k1Kdjr1P7wXZ8eSxndf6GsbB2J1S4HS55+LHwh7Z03 7YEX1ar+rkUacrV9WHoVyxlHA80PjdWIrozITwJ38v7PH/2BesDIr0b24czYJPLcsUFb MyStBQrm/FnK0hk+gWA/xE8xrS/x6jnIBLk3ZujZnv1P0WDsWspBsnUrMfJtK6SVrWfz 8Pfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:arc-authentication-results; bh=OCH20j6SC/XwO6GwkSaEAttLaWLu4rG6kcSVddERX1U=; b=PRs+SfgC/Ha2CLHVsWuIkvebgBCPYvnyJ9hUhTVeud/7TY7fGL0aBZq/TkRVOkxeT/ t10D/pFOQNBdp5h5htHPMo6vi5xFMx/QM/Bc3StZnilDE9M+hnqyfHrybV9VraAkbJw9 q2+G/0bCCNrQTl6/yJUs5zweZXEU6l8IKl8E9yK7slVCk/WAkTry3sdWsCO8zZOIRDC+ YJ8Phe6PgB/jnpE74bo0CIwVVN2xfKj0Q0V6x62CU2byNpKBdHExRnE3GlMvmEPs3cLK YqH2KJYa1jiQdpA+P8BaIayElg5v7yqp63qm7HtDxQa6XQ6QKMAaMs7mjrdAaOGhbSHu sVfg== ARC-Authentication-Results: i=1; mx.google.com; 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 3-v6si3359120pls.387.2018.03.14.23.19.16; Wed, 14 Mar 2018 23:19:30 -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; 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 S1751739AbeCOGSR (ORCPT + 99 others); Thu, 15 Mar 2018 02:18:17 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:53832 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750720AbeCOGSO (ORCPT ); Thu, 15 Mar 2018 02:18:14 -0400 Received: by mail-wm0-f68.google.com with SMTP id e194so8153436wmd.3; Wed, 14 Mar 2018 23:18:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=OCH20j6SC/XwO6GwkSaEAttLaWLu4rG6kcSVddERX1U=; b=ujAv2SMn3Q2wm22iAm/9EhjYPc8FitJmjxdIvxFiSiz5gdfG8+Yte6KQzgxprGEmwk mGO/ZmzwabxvKO6FFXJJY6JkC+F9jwmBhPXJsXbwlIMXAUt2mklecO5lVVscUfMPnMUs HqJjfMnII310g3Y5KJ/xcdLnS8+N0+7gMluWJAs8golzsR2kE98G2X3wROb9dyCvmFSb 3r8Y/a+pv9XmoqXMGW3dbrw0dbS0D7vGgN0r2Y/JpzLHIbyTEn5J2WplIvm3nEA+9h48 YbKWUAjkHmswd02CjccsUNkUz5sKHVT3T36hmoNweszS4IDwqBQ25SViRI6GFlG4Uxhc CN0A== X-Gm-Message-State: AElRT7HNS/Ki+XhAvpFt0MGc074wquSQI0fdHUTACZYPR1NWWpX2l5gW yu15B3oQBM3JnLZjVD9a3Zxx+SFH X-Received: by 10.80.167.3 with SMTP id h3mr7346409edc.226.1521094693512; Wed, 14 Mar 2018 23:18:13 -0700 (PDT) Received: from mail-wm0-f48.google.com (mail-wm0-f48.google.com. [74.125.82.48]) by smtp.gmail.com with ESMTPSA id e56sm1229928edb.56.2018.03.14.23.18.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Mar 2018 23:18:12 -0700 (PDT) Received: by mail-wm0-f48.google.com with SMTP id 139so8220596wmn.2; Wed, 14 Mar 2018 23:18:12 -0700 (PDT) X-Received: by 10.28.95.139 with SMTP id t133mr3436489wmb.16.1521094692457; Wed, 14 Mar 2018 23:18:12 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.164.129 with HTTP; Wed, 14 Mar 2018 23:17:51 -0700 (PDT) In-Reply-To: References: <20180119092541.7508-1-wens@csie.org> <20180119144512.dqqbywavhwsyma2f@flea.lan> From: Chen-Yu Tsai Date: Thu, 15 Mar 2018 14:17:51 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] phy: allwinner: sun4i-usb: poll vbus changes on A23/A33 when driving VBUS To: Kishon Vijay Abraham I Cc: Maxime Ripard , Hans de Goede , linux-arm-kernel , linux-kernel , linux-sunxi , stable Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Kishon, On Fri, Feb 16, 2018 at 7:20 PM, Kishon Vijay Abraham I wrote: > > > On Friday 19 January 2018 08:15 PM, Maxime Ripard wrote: >> On Fri, Jan 19, 2018 at 05:25:41PM +0800, Chen-Yu Tsai wrote: >>> The AXP223 PMIC, like the AXP221, does not generate VBUS change >>> interrupts when N_VBUSEN is used to drive VBUS for the OTG port >>> on the board. >>> >>> This was not noticed until recently, as most A23/A33 boards use >>> a GPIO pin that does not support interrupts for OTG ID detection. >>> This forces the driver to use polling. However the A33-OlinuXino >>> uses a pin that does support interrupts, so the driver uses them. >>> However the VBUS interrupt never fires, and the driver never gets >>> to update the VBUS status. This results in musb timing out waiting >>> for VBUS to rise. >>> >>> This was worked around for the AXP221 by resorting to polling >>> changes in commit 91d96f06a760 ("phy-sun4i-usb: Add workaround for >>> missing Vbus det interrupts on A31"). This patch adds the A23 and >>> A33 to the list of SoCs that need the workaround. >>> >>> Fixes: fc1f45ed3043 ("phy-sun4i-usb: Add support for the usb-phys on the >>> sun8i-a33 SoC") >>> Fixes: 123dfdbcfaf5 ("phy-sun4i-usb: Add support for the usb-phys on the >>> sun8i-a23 SoC") >>> Cc: # 4.3.x: 68dbc2ce77bb phy-sun4i-usb: >>> Use of_match_node to get model specific config data >>> Cc: # 4.3.x: 5cf700ac9d50 phy: phy-sun4i-usb: >>> Fix optional gpios failing probe >>> Cc: # 4.3.x: 04e59a0211ff phy-sun4i-usb: >>> Fix irq free conditions to match request conditions >>> Cc: # 4.3.x: 91d96f06a760 phy-sun4i-usb: >>> Add workaround for missing Vbus det interrupts on A31 >>> Cc: # 4.3.x >>> Signed-off-by: Chen-Yu Tsai >>> --- >>> >>> This list might get longer if the newer AXP8xx PMICs also have this >>> behavior. We could switch to a boolean in the per-compatible data, >>> or just always use polling. The yet-merged R40 support will have this >>> issue as well, as the R40 is paired with the AXP221. But for now, >>> I'd like to have something that is easier to backport to stable, so >>> we can at least fix this for the A23 and A33. >>> >>> Also, checkpatch.pl doesn't like the stable kernel prerequisite lines. >> >> Acked-by: Maxime Ripard > > merged, thanks! I see you moved this patch from your fixes branch to your -next branch. Is there any problem with the patch? Merge issues? Thanks ChenYu