Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2729658pxa; Tue, 25 Aug 2020 01:19:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyLUR5YYZhwEOY5RINIaHTMJhP1pmqXZ2NIROEYonJ9AqaCVo50RNcScsan8JQMU59wc+4v X-Received: by 2002:a17:906:68da:: with SMTP id y26mr9089114ejr.250.1598343599139; Tue, 25 Aug 2020 01:19:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598343599; cv=none; d=google.com; s=arc-20160816; b=S5tNp7K9yzXRtOvTvTuywmDtiW1vS5Ll/pOKbB8pNgu2AuY3dn4bxRTGu+LjcmG28C sx9BsoxIZNDTVGBeTPBfzyl0plHIyQnomj0r40j+xxy5BUyhmstnwaEr2659h3c4Zxrs Hl8e/dwwgagyFHUHARDMyhzXFoN6M5j7No5sCzKiORz8pCpbsTy80s338Gk8mWBmWQaD ut1bBS8Art/jzR2KG4jIx3LUoAj89UpyQUWxZxC2vtUKD1hwn6DLjjff46KPial6WAUl HnY1/EwRaYqZ6fCUiI3Mw8UNmScJ1OO4motSTeo3fdpxG24Xp2aKcAax4l5OTLkFnL0w 6VDg== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=RukdW/jvytQcmVdiB+pyxX09JToNYf+xPRWLQszrq44=; b=Ns37hsu8106v/66lnEgp+6Dzpn5ZgqhVN8Mv7iK34C5RfbqijlGqXfOKv9DRV8KHKf 08WZML0ylFlg0J/+jOh+mt4DV60GifV0wCRoDrvwfX95dgzwAv0M6mIhavQTMV7sG+uS yDfrJuOHaKkufWRPvTmHBHT5X8JTY3Qg3tX5YxR+7xdbLg/ieJ+vsrEePE8Lpdhl1cGZ voSIyioHoeaH4jy+3Tk/f5ZpRJbIWmtn1M8SBc1k509HnSDKBMyQIbPvvUqp/Q63ATyU uYCjSDzhLusPIMuKDeuURRa+NcKaYSZ1tQc4i/QHD/J9m2qKZOTvwlLDKEVAYbBIrSxt WeNA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qc14si8857834ejb.8.2020.08.25.01.19.36; Tue, 25 Aug 2020 01:19:59 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728543AbgHYIR7 (ORCPT + 99 others); Tue, 25 Aug 2020 04:17:59 -0400 Received: from out28-125.mail.aliyun.com ([115.124.28.125]:59614 "EHLO out28-125.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725936AbgHYIR4 (ORCPT ); Tue, 25 Aug 2020 04:17:56 -0400 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.104732|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_alarm|0.00882627-0.000303889-0.99087;FP=0|0|0|0|0|-1|-1|-1;HT=e02c03275;MF=zhouyanjie@wanyeetech.com;NM=1;PH=DS;RN=10;RT=10;SR=0;TI=SMTPD_---.INYD1yr_1598343458; Received: from localhost.localdomain(mailfrom:zhouyanjie@wanyeetech.com fp:SMTPD_---.INYD1yr_1598343458) by smtp.aliyun-inc.com(10.147.41.158); Tue, 25 Aug 2020 16:17:53 +0800 From: =?UTF-8?q?=E5=91=A8=E7=90=B0=E6=9D=B0=20=28Zhou=20Yanjie=29?= To: balbi@kernel.org, gregkh@linuxfoundation.org Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, zhenwenjin@gmail.com, sernia.zhou@foxmail.com, yanfei.li@ingenic.com, rick.tyliu@ingenic.com, aric.pzqi@ingenic.com, dongsheng.qiu@ingenic.com Subject: [PATCH 1/1] USB: PHY: JZ4770: Fix static checker warning. Date: Tue, 25 Aug 2020 16:16:54 +0800 Message-Id: <20200825081654.18186-2-zhouyanjie@wanyeetech.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20200825081654.18186-1-zhouyanjie@wanyeetech.com> References: <20200825081654.18186-1-zhouyanjie@wanyeetech.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The commit 2a6c0b82e651 ("USB: PHY: JZ4770: Add support for new Ingenic SoCs.") introduced the initialization function for different chips, but left the relevant code involved in the resetting process in the original function, resulting in uninitialized variable calls. Fixes: 2a6c0b82e651 ("USB: PHY: JZ4770: Add support for new Ingenic SoCs."). Signed-off-by: 周琰杰 (Zhou Yanjie) --- drivers/usb/phy/phy-jz4770.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/phy/phy-jz4770.c b/drivers/usb/phy/phy-jz4770.c index d4ee3cb721ea..f6d3731581eb 100644 --- a/drivers/usb/phy/phy-jz4770.c +++ b/drivers/usb/phy/phy-jz4770.c @@ -176,6 +176,7 @@ static int ingenic_usb_phy_init(struct usb_phy *phy) /* Wait for PHY to reset */ usleep_range(30, 300); + reg = readl(priv->base + REG_USBPCR_OFFSET); writel(reg & ~USBPCR_POR, priv->base + REG_USBPCR_OFFSET); usleep_range(300, 1000); -- 2.11.0