Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp485580pxu; Thu, 3 Dec 2020 05:31:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJyejqTYWghYirPl0baQyEMVJVb6DsB2aOHFgjLgOGohY6c0lT3xJ0Bl+u56nvCJEp3l4nF7 X-Received: by 2002:a50:85c6:: with SMTP id q6mr2968956edh.126.1607002296454; Thu, 03 Dec 2020 05:31:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607002296; cv=none; d=google.com; s=arc-20160816; b=J9yFcj/oNU56OTHAe+b9pOQswmFbPbtfNTt9MCBxKOCUg6yPtVJI8qDJg5YKpluLwz tMdK8bJf/OcXKxon+Q8ZFqL04OHTBZ7E2KUqHmyqyQSy/7cGZdYSX034DT1RqhRRwCH+ 6zskl35MbQmls+4u8ysdiMR5LgLn60O7YkBzQnq6rtygzxJObiBYo7pXwLC1bGtQCL2w otSQS8q1RZux2sK9jY4BdJBH+3+JrJ4EJF3La3n59vfjNs2bO9ajvhbCljTp0J6CKMVm DYmj2qOTzxEIE25H4Pd7OwHSFKKfz9v9Bm5I2olJE6RAdQuJ2FA8Rf/xOEMuSGvGfWry pECA== 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 :message-id:date:subject:cc:to:from; bh=E+MAIoKeasU8VH6rF191H2eZ0BE3k0sebSmH2Pb9w3g=; b=ASR52VNmcrs6OCMNuP9K+kh2njaMijgQRE1UM9SNLZ66ZYrGSQ3NdtAZOwdjU96zun jIeGZBCHD/aya+rS0ERsjMlIMpn4TjKIJazyKjgJWOagKO/qLlbKfTSb6REcQh+Z7uCo lqmiopabZKBuG7tz9u9tRZ5ucO2jPty2a7aTe6RQ0/tLkohJ4j+yRPhdG0uFUj9ZqmbV FIYyapyUgb2RuEPkEPSv2Si+HVgEt+225c6KNhWQQf0Oh7NmyQqaLsdEJNm8TlpoOtEC ZsWrQYOxVqoyFcNP7cwmu9D2rQvkGjPSEQfKgk/zRBWogxWskxE1J5Dr64/6bYPcdzH2 32tg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bi26si915097edb.553.2020.12.03.05.30.41; Thu, 03 Dec 2020 05:31:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730727AbgLCN3R (ORCPT + 99 others); Thu, 3 Dec 2020 08:29:17 -0500 Received: from mail.kernel.org ([198.145.29.99]:46784 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728067AbgLCN3R (ORCPT ); Thu, 3 Dec 2020 08:29:17 -0500 From: Sasha Levin Authentication-Results: mail.kernel.org; dkim=permerror (bad message/signature format) To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Al Cooper , Florian Fainelli , Vinod Koul , Sasha Levin , bcm-kernel-feedback-list@broadcom.com Subject: [PATCH AUTOSEL 5.9 01/39] phy: usb: Fix incorrect clearing of tca_drv_sel bit in SETUP reg for 7211 Date: Thu, 3 Dec 2020 08:27:55 -0500 Message-Id: <20201203132834.930999-1-sashal@kernel.org> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Al Cooper [ Upstream commit 209c805835b29495cf66cc705b206da8f4a68e6e ] The 7211a0 has a tca_drv_sel bit in the USB SETUP register that should never be enabled. This feature is only used if there is a USB Type-C PHY, and the 7211 does not have one. If the bit is enabled, the VBUS signal will never be asserted. In the 7211a0, the bit was incorrectly defaulted to on so the driver had to clear the bit. In the 7211c0 the state was inverted so the driver should no longer clear the bit. This hasn't been a problem because all current 7211 boards don't use the VBUS signal, but there are some future customer boards that may use it. Signed-off-by: Al Cooper Acked-by: Florian Fainelli Link: https://lore.kernel.org/r/20201002190115.48017-1-alcooperx@gmail.com Signed-off-by: Vinod Koul Signed-off-by: Sasha Levin --- drivers/phy/broadcom/phy-brcm-usb-init-synopsys.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/phy/broadcom/phy-brcm-usb-init-synopsys.c b/drivers/phy/broadcom/phy-brcm-usb-init-synopsys.c index 456dc4a100c20..e63457e145c71 100644 --- a/drivers/phy/broadcom/phy-brcm-usb-init-synopsys.c +++ b/drivers/phy/broadcom/phy-brcm-usb-init-synopsys.c @@ -270,11 +270,6 @@ static void usb_init_common_7211b0(struct brcm_usb_init_params *params) reg |= params->mode << USB_PHY_UTMI_CTL_1_PHY_MODE_SHIFT; brcm_usb_writel(reg, usb_phy + USB_PHY_UTMI_CTL_1); - /* Fix the incorrect default */ - reg = brcm_usb_readl(ctrl + USB_CTRL_SETUP); - reg &= ~USB_CTRL_SETUP_tca_drv_sel_MASK; - brcm_usb_writel(reg, ctrl + USB_CTRL_SETUP); - usb_init_common(params); /* -- 2.27.0