Received: by 10.213.65.68 with SMTP id h4csp1461587imn; Wed, 14 Mar 2018 23:31:46 -0700 (PDT) X-Google-Smtp-Source: AG47ELsdeZcKYf9vf4awCuCXaEu0xz57Cu7kDvcsNNuSdG0ESShs0+q3qPB+7rVbFSSGC7VIwTEN X-Received: by 10.101.74.77 with SMTP id a13mr2907904pgu.32.1521095506826; Wed, 14 Mar 2018 23:31:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521095506; cv=none; d=google.com; s=arc-20160816; b=EQ3IcbolXF0dbw9dWXlxyZrn3nWo0EyZruCBqu9oHhyBYgJhqzc1Wum51hDn699anK r0iEOvJtdEjrGkz2ax91ScWwUvCrv52R8sfT2vUHnhyyUj7qUy7izZcs/yQQxr3Zdbk+ v6azTPZiUMsgVQMBvwZzELuTzpw0oB8RKapvlAUAREMyYt6Wa8PSipwhmwuzLGT6k/sW KxooQG5vbfIbpqCr533MpOEd2u9OJ7po1Ik9sYcvBZmsM81pqcpNtTiRtM0y8adomZfw SUdvOeDjpO1eDPZO4PUGz9P79ukFjQdHJ+hlGuqzuFBOAO5wmeajS0gk5wEVE7Chj8ZG jbdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject:dkim-signature:arc-authentication-results; bh=n9TVtjQiIgc5DF9HghcEgVi4dUhu0St6jtGWjpTFxAo=; b=Jov7VYAaa7a193KXS7MzsCj71TJ1eGP4FLQbBgS1pNb8Mdo9IdWdM2bGzWebW1Tqew JRhA4sM7xV8Z65wW7kisbKmgKwe3MNrHjzWbOKCYD2jSvj4ZeT4vfeX/TH/nQOjjbYOd tHbbw7isUoeOP/1WwktTYpqojTfZG7hAFsonRIdwG1OOTP1ZMwZNC0VBuXpRVrAkA1gl 8dMoov7cG4KSJGh9OriEUHg7MX/a7i0FcWWcgrMKhpxcBKwqr3x5XfBCiNHL+1VuhNiN vFoS+Pnd/ETINEIERnFSRMAEUBMNWturOPfslVWX+AHrAdBLs4dfjFvPNqa1iFrm+ZjT Jvtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Z9WHy8mu; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y4si3036727pgq.380.2018.03.14.23.31.32; Wed, 14 Mar 2018 23:31:46 -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=@ti.com header.s=ti-com-17Q1 header.b=Z9WHy8mu; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751869AbeCOGa2 (ORCPT + 99 others); Thu, 15 Mar 2018 02:30:28 -0400 Received: from lelnx194.ext.ti.com ([198.47.27.80]:65330 "EHLO lelnx194.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750731AbeCOGa0 (ORCPT ); Thu, 15 Mar 2018 02:30:26 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by lelnx194.ext.ti.com (8.15.1/8.15.1) with ESMTP id w2F6TwxJ022527; Thu, 15 Mar 2018 01:29:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1521095398; bh=XdvidJeLezhQAvIIWbNamN2AY8asrY2A6m55fGTBYH4=; h=Subject:To:References:CC:From:Date:In-Reply-To; b=Z9WHy8mu+PASZur7NHsOLiB9GzJUGk4UlhBRpJY3EOJxyspqkI25qvrueGRqthyqO UOEz+NCOeRaK3D42ScvW6/Z8rDn/KCOhec1720ulc9b8B2qIPzwTPxzueqj/L43oPk jvNaCPajCLQovkydjsgRuhraULSc5/+gMAAMoXnQ= Received: from DLEE101.ent.ti.com (dlee101.ent.ti.com [157.170.170.31]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w2F6TwlK015551; Thu, 15 Mar 2018 01:29:58 -0500 Received: from DLEE103.ent.ti.com (157.170.170.33) by DLEE101.ent.ti.com (157.170.170.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.35; Thu, 15 Mar 2018 01:29:57 -0500 Received: from dflp32.itg.ti.com (10.64.6.15) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1261.35 via Frontend Transport; Thu, 15 Mar 2018 01:29:57 -0500 Received: from [172.24.190.233] (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w2F6TsQA019895; Thu, 15 Mar 2018 01:29:55 -0500 Subject: Re: [PATCH] phy: allwinner: sun4i-usb: poll vbus changes on A23/A33 when driving VBUS To: Chen-Yu Tsai References: <20180119092541.7508-1-wens@csie.org> <20180119144512.dqqbywavhwsyma2f@flea.lan> CC: Maxime Ripard , Hans de Goede , linux-arm-kernel , linux-kernel , linux-sunxi , stable From: Kishon Vijay Abraham I Message-ID: <09638ac4-6a3b-3ece-2e3f-00b8f148ce9e@ti.com> Date: Thu, 15 Mar 2018 11:59:54 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Thursday 15 March 2018 11:47 AM, Chen-Yu Tsai wrote: > 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? Decided to keep in -next since this is not a regression introduced in 4.16 kernel and stable kernels will anyways be updated. Thanks Kishon