Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp9429050ybi; Wed, 24 Jul 2019 04:00:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqwKPYpQ41uxqiF9grzTs/igUh4/4MQuKtRtAer+8kuynq9qh9lnfm3mY7UGy5laRGhLhZV8 X-Received: by 2002:a17:90a:1ac5:: with SMTP id p63mr85448650pjp.25.1563966035377; Wed, 24 Jul 2019 04:00:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563966035; cv=none; d=google.com; s=arc-20160816; b=hTcmYXXlBXJa1g8Akk6/cyAja7shT1QmFa3eanOLVZjC/X5E82rMHvlnWnxU79g5Tb +53n2oMS7IMQQDeMKAE+uyJ+MGZeZ026BG34S03s6M2jWVZ7tn1vQFoFE/ZgJ2TFTiJG dbitdVLA8Qz0+XG/GsxJfO4kVbXaMC9Ug1MkboVCihqVr5AUtW5Ft5Ip6rSnorYyT3MQ gJhHja3hGVQ/iAsPBGNzhRFHRgUgW/7AYkfwOhca9NhFbxMdGbVyosyszPnB0mHSnt3m TcLEEmLcCjDgAnUSJtTMmAGtw69GJidcdHEh6tx6HnwCsbQkrC2Pq+t+nk6jPzdy4koe ZT6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=fGGt+n1QDkNUpC6Eaj5PRQ5ozuAJb0jNNKkOhdkxtU8=; b=B8c7cS5AbmLrgu+TTwASatAQVxJtJpa2bqaJg/A94176tG7nnm8kc8HF7K+4JanE1U Oim5wTFb5Az7cLT/+VcCue7h3QXy+RPkJXzSIo5xyzkMUjn/+MEm2EED5T6dqjy8A8Eh hxVkajBdXew9pe4Atla49VFdSZLvV2/bU77Tc6KDlYcl69uuxIBsRKUz/XVcqt0XLLMK 0MhadCnpAVln/dINjADTo8j9teCmx8h4k4CwZlI4FeP++McX05sxUbReiCArBRTSE6UW 6lYk5KmGCGOge8/Rl2sE5vZ6G4ZwK/GJU5fVgceid6po46Z0mHn6s8Y7n4k4WaIKyGNB wDdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HAv7AF0u; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y4si14213646pfq.222.2019.07.24.04.00.20; Wed, 24 Jul 2019 04:00:35 -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=@kernel.org header.s=default header.b=HAv7AF0u; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727202AbfGXK7o (ORCPT + 99 others); Wed, 24 Jul 2019 06:59:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:60622 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726622AbfGXK7o (ORCPT ); Wed, 24 Jul 2019 06:59:44 -0400 Received: from mail-lj1-f178.google.com (mail-lj1-f178.google.com [209.85.208.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2274B22ADA; Wed, 24 Jul 2019 10:59:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1563965983; bh=+SLeYzBrFqrvQlKq8tfptWG7tfjTeB0dYCaKxtC/F1U=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=HAv7AF0ukKxL6GYXk1xun6fguFyzJ7NapvsVooizJX9ii0nisFl4Rz0JDEw9Ab3b2 gjhffA7s31ujpM4iPuY1BfjQqGmT7Si1Mt7OOeRQKdz6lfzkth32MAzg0mglg73Xf/ Eg1AX/SsYMKjTrWI+PEW4oeXPwa7OZ0/SydEoASs= Received: by mail-lj1-f178.google.com with SMTP id i21so44091342ljj.3; Wed, 24 Jul 2019 03:59:43 -0700 (PDT) X-Gm-Message-State: APjAAAX/Wjj51n2DoamswMECmf3ZxItO2kkPNKeMg2uNkA9FIjjHnDeU nNw6i4Br02m4FHWGmnFnhBjQftgj9EX0NxNCzl4= X-Received: by 2002:a2e:124b:: with SMTP id t72mr43113386lje.143.1563965981368; Wed, 24 Jul 2019 03:59:41 -0700 (PDT) MIME-Version: 1.0 References: <20190722185938.9043-1-linux.amoon@gmail.com> <20190722185938.9043-2-linux.amoon@gmail.com> In-Reply-To: <20190722185938.9043-2-linux.amoon@gmail.com> From: Krzysztof Kozlowski Date: Wed, 24 Jul 2019 12:59:30 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC/RFT 1/5] phy: exynos5-usbdrd: read from correct offset of xhci linksystem To: Anand Moon Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, "linux-samsung-soc@vger.kernel.org" , Kishon Vijay Abraham I , Kukjin Kim , Bartlomiej Zolnierkiewicz Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 22 Jul 2019 at 20:59, Anand Moon wrote: > > Read from linksystem offset to update the xhci version. But why? As many times before, you do not specify why you are doing things. What problem are you solving? What feature are you adding? Best regards, Krzysztof > > 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 >