Received: by 10.223.176.46 with SMTP id f43csp1087734wra; Fri, 19 Jan 2018 06:46:14 -0800 (PST) X-Google-Smtp-Source: ACJfBosu3fAHSFesv6j07slH2guZlI/Ty6rRJf+o2PsgsCHImqwsIIXN7s3rR2h88nc2/K5k5VSo X-Received: by 10.99.103.69 with SMTP id b66mr16767796pgc.233.1516373174374; Fri, 19 Jan 2018 06:46:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516373174; cv=none; d=google.com; s=arc-20160816; b=EH+7VfbBmmpzQLzSOHSKtIvYgDtE7gvNElk94to8GaBZf5LNKcyBcBeAnND1Ea6QfY NNYZh8h0Vs5odF/DoPyOblozSjshSlyDz1jMRvryRhXa26luchi0Bv4n8o65qWTDXcHz w0hCZ9os8PD3Yas2qYG3iGfKow6Dpzj1XCusKxSfZgK9SP1Es7/SI82g16ymdlcDPBvH hUCo5Dp7SWkHyAY5YqjWxPcQJ3DZ/LZ3G6zNhUKkdHMPMDmSoaBxz1uuxcGwjmlkZsGS OMBHeRGP+vv2E2CrgsRYdpLK0+dj2qd0ym5HdVSWZCkePXIg4w3ByXYDOmMmF+fOdUhr nd5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=y2sHhGDDZzIlHTEkLFQVEVyDuEd/Yn40bifG1YxAJmE=; b=fuKqms0rHrYdWvcdwZkW7bpNm2ykNxhj5AWK4N+9Joc7QgjARbsf+3oPKIjO5lMIK3 kjo4iBNmsghQM5R6+W7+FR5SX9P0A34hj4yVf8rzzlJlTSzIPciy0eq77ck67+JgiLQn +WRnxLTGDgGZEk3lTr8465RWw7HlJMnOZCWhIkLg1e6NPPCqREElQSuylM88CwpONWuo 6/UtjSLjfpzUS5o9wV83K9x+hVOvUiXaqiBTtShTX3tOvsbPoFrk4RGjqn3NOTMSYg63 CdFlgvaA84eFHNKXqictdaj5T25JvPQ/bYn9E8L1RFb5inNOgtWacVzSINBx8NvtWgyd FOUg== 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 63si8377232pgg.392.2018.01.19.06.46.00; Fri, 19 Jan 2018 06:46:14 -0800 (PST) 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 S1755627AbeASOpa (ORCPT + 99 others); Fri, 19 Jan 2018 09:45:30 -0500 Received: from mail.free-electrons.com ([62.4.15.54]:42525 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753332AbeASOpY (ORCPT ); Fri, 19 Jan 2018 09:45:24 -0500 Received: by mail.free-electrons.com (Postfix, from userid 110) id 09930208E2; Fri, 19 Jan 2018 15:45:23 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.free-electrons.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.free-electrons.com (Postfix) with ESMTPSA id C3209207B6; Fri, 19 Jan 2018 15:45:12 +0100 (CET) Date: Fri, 19 Jan 2018 15:45:12 +0100 From: Maxime Ripard To: Chen-Yu Tsai Cc: Kishon Vijay Abraham I , Hans de Goede , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, stable@vger.kernel.org Subject: Re: [PATCH] phy: allwinner: sun4i-usb: poll vbus changes on A23/A33 when driving VBUS Message-ID: <20180119144512.dqqbywavhwsyma2f@flea.lan> References: <20180119092541.7508-1-wens@csie.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="b36vrdl5wjpiofow" Content-Disposition: inline In-Reply-To: <20180119092541.7508-1-wens@csie.org> User-Agent: NeoMutt/20171215 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --b36vrdl5wjpiofow Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. >=20 > 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. >=20 > 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. >=20 > 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 > --- >=20 > 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. >=20 > Also, checkpatch.pl doesn't like the stable kernel prerequisite lines. Acked-by: Maxime Ripard Maxime --=20 Maxime Ripard, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com --b36vrdl5wjpiofow Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE0VqZU19dR2zEVaqr0rTAlCFNr3QFAlpiBHcACgkQ0rTAlCFN r3TSexAAhhwV2h9Bm98/Zi+O9Sh8pgaY35HVbnHkE+LD8xC4V4U4ccA69QQ7LUWM iE0HFYy8dSM7gN6ofuox1q0n9I+nWOYB048COlCgL70KWRHElKWbteGLQX8etZtI 3+nPLny0+k/NE2rC81/1WIHr1zH3m7nePfXhnwJa3+ZyKInQ0woI7h0xy+18NQry KEaC4P1mQs1yb5I+ZYhkMuRV+2wtvXCotDeIJ4nvHghfPADIjHTXwS8H51s7xL+8 0oHiWlQSHcew2qVbvRU2i/FD1+qGVwIVmXsKzxGWgXa55NyJtCcUGxqlUzcG2cv1 RTWwkUbOJlvB/eAozHLtTsuFwBR8FGtjkRc9RWn4IEq7IjmrKQTE2+4QddRhzB0t MAap2q7OYyzS00ARuIvroT5ieDPEOJH+hdz3yW8c93D8pYd+Deh/fFXi1GT2rH7t x4hpw/qU76Ux2GOpjX90hWmG5MwcKj3iPxOxBajGGwolOIN0DFrR5JFDVZc0BkVd a8ulDb1LQ7KvFKczmFsuF4kSm58Pn/auoPb+BPFxtSYAXtELIsAcIFNbi/AdJyro GCcqpr5QrdDiVls/d0kBLn0dSKALJ2EntvYmMK3Y84IV6Ga8y9W4rEazDaG+5QNh KCW+f9Z/n/NubAqs6mTr1Et7oo/NTD6Ti+EU86R+0Bl6YKMdifA= =+z6Z -----END PGP SIGNATURE----- --b36vrdl5wjpiofow--