From patchwork Tue Jan 11 16:51:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Evgeny Boger X-Patchwork-Id: 12710059 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F270DC433F5 for ; Tue, 11 Jan 2022 16:53:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=2jIoQsKCBcMMa6sI1Vt5dM4rU3C9l27iIt794hdBihU=; b=mHiSXpcYMhuaXS yS97PciNvf2PEGxv1GlStakwm9YELsmYp27KbXuKI2xdYG606pHgtaxKBw/MTh+d36GW2EtpT1OEA scwzmC0tzr9YarNqEs4hWcIfYdfl5m6u9ndCuJnr8w2L0wC8dW71UmiURi+kqkzZeZuwWrhQEkSM/ iQhi7gUGnDDLkW8dncvI+uRDxMKM39rXtATLDVCLeu7pzGaY22ncCTtLu8lkmmfQhuOKRibEnIYJz Rj2bscb9Eotcqe+6s3k8pXuRGLQ+jsMyS6PGoQG/ZeuvmvIAjcla+SsKD8J+p2kUqCkUaSet/XW03 2ldDAaFRlI7l24nCbcxw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n7KNX-00GyPB-KQ; Tue, 11 Jan 2022 16:52:11 +0000 Received: from mail-lf1-x12e.google.com ([2a00:1450:4864:20::12e]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n7KNT-00GyNs-U6 for linux-arm-kernel@lists.infradead.org; Tue, 11 Jan 2022 16:52:09 +0000 Received: by mail-lf1-x12e.google.com with SMTP id m1so25328332lfq.4 for ; Tue, 11 Jan 2022 08:52:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wirenboard-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=LPnKNnGqdiYMMpKq/WA+Z6kNQKG0cNdkH1ROe6l1fFQ=; b=2EccJKwdU+Lr3bgd3jeTNPEKrPbLyrii3qqWSBD8m8S/Tlt5BwoOA3/bBp/aV0NzJ7 btS7ggxa0ROJIrqLjFmyWdqkzO6I2zFMaR6MeGCtS+qubZWsOtFREnBOKkiO/EiG2bXa qZRDT8WavfOrdHF+aBw7m3hq81BVNGBEG+3U87XR7K7zeg1fsSDKO2qBikqNnzjP6Xhi iP9nI1u+DQydKyM7+czj5XsrILRJaUZjorGbBxW0Vr15RGMmm1WrZLAU3gmXiGYrcjjU GZwFjcJyJGXUN49fS4CBVmUOuFamAlCTz+1Eq563xho2ZzlZ97SjhJfISrelD9N6l9kL mr+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=LPnKNnGqdiYMMpKq/WA+Z6kNQKG0cNdkH1ROe6l1fFQ=; b=3CGfXjLBD4JkVc6i72xZkTgSygs4xEay0NhfiPHnQoKWv2fzAByim2YQnYKw5mRl7a /8PyRGrpvg6ztFHcdRJElr2T1AKYDTFubcz380wl5ChF14Sht1PKKuaXAFNtZH4tD7Wr AAkYpd5fyqJuKOmUN+w+8k/mj03giMaCSObYDPJ0eA6LpRC70bHy6IqYE9mHKy4+vgNv 8nuXEaDyOLKxu/4gTqRS+ac+PpdarPuF+6y8YpII/ngadG/WLVWUzPDo5OKaPumNHLI1 6Nj3Sgi44VDHq+3A6JcRR5qsbqmTRAstqlMnOG0Pt5TIoAmT2/h/t3qGZkZoAwWakIJR wtOQ== X-Gm-Message-State: AOAM530lls7ToXUH+iEeHhULfogGRGepDZi9Tc3i3+i75eyqZobEeguJ h987zhdrNwdQ0zxixh9f/5VH7g== X-Google-Smtp-Source: ABdhPJw555q6HIxdUbaCoV1EsYbX+4jhs2TiiO453k+2a4jz6Mw9SyBZjUujc8l2ObV892ZkviCkGQ== X-Received: by 2002:a2e:9794:: with SMTP id y20mr2567694lji.227.1641919926520; Tue, 11 Jan 2022 08:52:06 -0800 (PST) Received: from boger-laptop.lan (81.5.110.253.dhcp.mipt-telecom.ru. [81.5.110.253]) by smtp.gmail.com with ESMTPSA id c21sm1386388lfi.95.2022.01.11.08.52.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jan 2022 08:52:05 -0800 (PST) From: Evgeny Boger To: linux-sunxi@lists.linux.dev Cc: Evgeny Boger , linux-arm-kernel@lists.infradead.org, Maxime Ripard , Chen-Yu Tsai , Jernej Skrabec , Yangtao Li , Icenowy Zheng , andre.przywara@arm.com Subject: [PATCH v2 0/1] fix USB host in HS mode on Allwinner H3 and newer Date: Tue, 11 Jan 2022 19:51:52 +0300 Message-Id: <20220111165153.63632-1-boger@wirenboard.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220111_085207_995449_45E00C7F X-CRM114-Status: UNSURE ( 8.95 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This patch makes USB host work reliably in HS mode on Allwinner A40i (R40) and some other SoCs by fixing the way the internal PHY registers are written. Changes in v2: As suggested by Andre, I've added the detailed description of the nature of the issue. Appart from commit message, nothing is changed compared to v1. Evgeny Boger (1): phy: sun4i-usb: fix phy write on H3 and newer drivers/phy/allwinner/phy-sun4i-usb.c | 44 ++++++++++++++++++++++++--- 1 file changed, 39 insertions(+), 5 deletions(-)