Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7711644ybi; Mon, 22 Jul 2019 19:07:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqyPLueTnwGoMkJMokyTUxGpO2rTUhTVtA/dG5hIZOMJzwcWrmWPDRT0qKrK+m7oN+u3wYfM X-Received: by 2002:a62:5883:: with SMTP id m125mr3224202pfb.248.1563847679205; Mon, 22 Jul 2019 19:07:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563847679; cv=none; d=google.com; s=arc-20160816; b=ILzyejKPtOHiN2G59e3sJvkhTwrwKnB5L2k3Q8TAALZ2fxXbXpLaO3CTEfx2lwdbHK Qc2j4WtQs18ARc4oUpbPW3xEspPys04Hy7yVW0PORHlrPVtnsxZ9Uoleg7RySlJCy5cO XuJFTFC+68JFPW+YEZNkG+Y61NmD3nndgURyCTxLsamWckJ1w5YESemeez6OdNw8kRW/ cReiat7VT+OsBxqG2Za2gyYAsXfP31aeHDpaaGuIgKSFnzJOAWDB9eOA25TEiWY7Xn1X uGmhy6tfZ3j0U7LU7PfTV5qiPGLH8f93oLDkjmhTGqjiH6v4kg2i2yGXg6iLeyo8MNN4 t7MQ== 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 :dkim-signature; bh=+BPPPji4KmMPm/LztN/u6Pt6WF0WdMzxA5bRmk4V+jc=; b=I9H/sqF00dmSGTeGBk818WE0B8W7plh4MwlH1Plu8KqUqQuCBH6TqYOwTwehUL9t5h 9DhNThR1Srsu/AiI56ETBIpdUCGvFRVUfX4pRRKL0AeLAdjjNmlE6Nh2yVWFa+DjBaHn dGK2+O0lLkVO8N4PG5aZtILMTvweMppLkdXEL2qqtq5QoRFmF+7QJvkbLVY+jh2U36Gm R0pl9s1W6fXBm8cVKXWYL2gzOaTxSQsTiij8tBPKWlpm8sO83vnRViJXN+xBeJpVWKkA nz6WmcAdRPZn/PxE2EGPmP3vvIVDWc3vNbIPpWvkCXdsP1CgQBtU05jYc/sv0FlatFgD qTLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=K5kBznP9; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 68si11947484pgb.104.2019.07.22.19.07.43; Mon, 22 Jul 2019 19:07:59 -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=@gmail.com header.s=20161025 header.b=K5kBznP9; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726621AbfGVS7v (ORCPT + 99 others); Mon, 22 Jul 2019 14:59:51 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:38041 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725848AbfGVS7u (ORCPT ); Mon, 22 Jul 2019 14:59:50 -0400 Received: by mail-pl1-f196.google.com with SMTP id az7so19551720plb.5; Mon, 22 Jul 2019 11:59:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=+BPPPji4KmMPm/LztN/u6Pt6WF0WdMzxA5bRmk4V+jc=; b=K5kBznP9TrTX6mK2UwTBWA0b1ZHBf7PBwvgbGv7SGT6Nsob+xzS03qXm7sk3xh7GkJ 0NKg2BQA9BWzMFULMSN7zIkCox5HpecJKFh3NqUuX/6m0dvv39wieOWOS32YFBobK2zy Agb4M74KgFJ3FjCkVbOa7kQVLmC0q9MjQxrMeKhki4T4g5u3y9epGkMBjNMzesVIGa8v yCxzI9qV7+5q7xgF9rLiSzpWeaEPJz/tP10MfgPkTlAQRDigFJG1HX/TCt57t/UL2Ox+ +TNodYNdPctkqKX3JvAt7F7tHA7wOPpRBgQdJjtHGI3VsLiNXHRqkkRAtB3hu0DU9g1f RoxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=+BPPPji4KmMPm/LztN/u6Pt6WF0WdMzxA5bRmk4V+jc=; b=DWK+/Zk70m+P3LmQ6ThhypuR2pRs3XN192WC5UUGtB2ggM6ZHzGhyuWV9sXGJvG5Fi /e8eggswSKWhu7nTyyaaSBdo7rWXaJjWc2KxKiTRMiJtWqH0e8H95MypLIJeqTXnUbMw 9yAlPM8Reppmcu/QFYfskqMw0o3DiecjBiLKmVrQdLIvjyWGZraPoIYrFR/t/NWcHwql REQwDjSiib3DJZ9jAAcn8mrnhJm6qyydswXs/UR7sh5RRRVFp8/lblA3IScz7HwWTOta INw2SWfndWT8bpHiocY119V50MJY/17BddUVW/OLSzUpawcBZ2xIBRTK4vUQditqAJny Ovxg== X-Gm-Message-State: APjAAAV7CrC/fRlzPMbiRTTJhzC0A+Eai68sQ1iS4WVDNZfdyZRRsOR5 aZQDTRwR5QzNcXATmsgI0QlYCCKjo70= X-Received: by 2002:a17:902:ba96:: with SMTP id k22mr78590271pls.44.1563821989510; Mon, 22 Jul 2019 11:59:49 -0700 (PDT) Received: from localhost.localdomain ([103.51.73.174]) by smtp.gmail.com with ESMTPSA id h1sm30777675pgv.93.2019.07.22.11.59.46 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 22 Jul 2019 11:59:49 -0700 (PDT) From: Anand Moon To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Cc: Kishon Vijay Abraham I , Kukjin Kim , Krzysztof Kozlowski , Anand Moon , Bartlomiej Zolnierkiewicz Subject: [RFC/RFT 1/5] phy: exynos5-usbdrd: read from correct offset of xhci linksystem Date: Tue, 23 Jul 2019 00:29:34 +0530 Message-Id: <20190722185938.9043-2-linux.amoon@gmail.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190722185938.9043-1-linux.amoon@gmail.com> References: <20190722185938.9043-1-linux.amoon@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Read from linksystem offset to update the xhci version. Signed-off-by: Anand Moon --- drivers/phy/samsung/phy-exynos5-usbdrd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/phy/samsung/phy-exynos5-usbdrd.c b/drivers/phy/samsung/phy-exynos5-usbdrd.c index 646259bee909..3c14bf7718c1 100644 --- a/drivers/phy/samsung/phy-exynos5-usbdrd.c +++ b/drivers/phy/samsung/phy-exynos5-usbdrd.c @@ -397,7 +397,8 @@ static int exynos5_usbdrd_phy_init(struct phy *phy) * Setting the Frame length Adj value[6:1] to default 0x20 * See xHCI 1.0 spec, 5.2.4 */ - reg = LINKSYSTEM_XHCI_VERSION_CONTROL | + reg = readl(phy_drd->reg_phy + EXYNOS5_DRD_LINKSYSTEM); + reg |= LINKSYSTEM_XHCI_VERSION_CONTROL | LINKSYSTEM_FLADJ(0x20); writel(reg, phy_drd->reg_phy + EXYNOS5_DRD_LINKSYSTEM); -- 2.22.0