Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3759697pxk; Tue, 22 Sep 2020 01:35:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyVnsaLd9I0TIblxxPoX7Y6J/m5vTQ7ceGFwICF1F75UfYuCbIE9txS8buaVwzDwhDiL3Cb X-Received: by 2002:a50:fc04:: with SMTP id i4mr2823742edr.14.1600763718357; Tue, 22 Sep 2020 01:35:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600763718; cv=none; d=google.com; s=arc-20160816; b=UpOGdwj35Vl/kyebB31RVgDMPQSwJ/8HaBV3JbdtvA7HQ5CCro77FOOGmpKm1GvaFx kPGDVTUWdOVngSDHkvb8H9QcDlsnsu4YQu9KjuJz5gwhH0T7//sXyZbJPWnXFtMATLMM rgOa0NSLFo5q+DV1Dh7iNUbYXcUbzdTUeq2Gz1elNYQt7/RgE+byyfZQVciqvTHMKlyv 4oGq6oaB+U3xVmwURUtAFY4o6PdyHiYjnoLXIIeSjeT7OEEjELv5keU/scMfDhPdw9qY EPqa7W7JaKq7/iptvM3jJbTagH6yJ3Adp+mOBcJ2TLm2vUNn9SrFLqaw9gFHO2VDbVlO CK0Q== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=ecVhu1UFmJL5nxctaV31IUIhXug2n0joYzCi4zukiDQ=; b=nb1g7eGSxByuUrwemLROW6JUpMGm1kruyiU5lzx+oDjKPOXQ5WK8PIomOtXHSHBf3L s5Dh5KNHbFxIlhYHgrLAh2XJ9CxcsORAtOKYFPkNaDVbdnJQ14gdlmCjEMthOQpE5RW7 Q3vwZoNuCIbNIYAKP68pl3VWKWPioAp3Klh3DVL1PPdLrRRpnT1pGMSoYLK4y4T63ktg XoTRsM0SnDst6Ea93xYwBCQ7SNV/WRyXYx0PhzP66uCi6Fidgya/Gs8rswZiwTGKxFxy hho87LqcCmb4x3mOESjmN2+qK4XJNyoRFaoUwLbx7yLktttQ6jUWCmOWChRKLpXDET/I YZMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=DIhtMyF1; 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 z18si10885804edm.355.2020.09.22.01.34.55; Tue, 22 Sep 2020 01:35:18 -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; dkim=pass header.i=@kernel.org header.s=default header.b=DIhtMyF1; 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 S1727805AbgIVHtU (ORCPT + 99 others); Tue, 22 Sep 2020 03:49:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:49618 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726766AbgIVHtQ (ORCPT ); Tue, 22 Sep 2020 03:49:16 -0400 Received: from coco.lan (ip5f5ad5bc.dynamic.kabel-deutschland.de [95.90.213.188]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2CA0523A5F; Tue, 22 Sep 2020 07:49:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600760955; bh=0DzvC1tqpuuweLFZwjymVALFk6hcfat24pA61wff9hE=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=DIhtMyF1wPsYzJaiplUZkVnharswC/x8I5bMRm7hdpVNsevB5v/XgTIhFfYsaVGKx Q3JDam8caFWKOoMq4yqVc8nCLw+P2ato9J4Nf3eHAwXdXR0N7TO54f5UIm0a92V4M7 1gCQVruP+ZcoEFODY2a6zKZ90f2OOHeKA6vHvfJg= Date: Tue, 22 Sep 2020 09:49:10 +0200 From: Mauro Carvalho Chehab To: Alex Dewar Cc: Greg Kroah-Hartman , Yu Chen , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] staging: hikey9xx: Fix incorrect assignment Message-ID: <20200922094910.36501e57@coco.lan> In-Reply-To: <20200921212146.34662-1-alex.dewar90@gmail.com> References: <20200921174113.19566-1-a.dewar@sussex.ac.uk> <20200921212146.34662-1-alex.dewar90@gmail.com> X-Mailer: Claws Mail 3.17.6 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Mon, 21 Sep 2020 22:21:47 +0100 Alex Dewar escreveu: > In hi3670_phy_probe(), when reading property tx-vboost-lvl fails, its > default value is assigned to priv->eye_diagram_param, rather than to > priv->tx_vboost_lvl. Fix this. > > Fixes: 8971a3b880b2 ("staging: hikey9xx: add USB physical layer for Kirin 3670") > Addresses-Coverity: CID 1497107: Incorrect expression (COPY_PASTE_ERROR) > Signed-off-by: Alex Dewar Patch looks good to me. I also double-checked if everything works ok after this fix - although it should, as the DT I'm using has "hisilicon,tx-vboost-lvl" property defined. So: Reviewed-by: Mauro Carvalho Chehab Tested-by: Mauro Carvalho Chehab > --- > v2: Fix my email address and a typo in title > > drivers/staging/hikey9xx/phy-hi3670-usb3.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/hikey9xx/phy-hi3670-usb3.c b/drivers/staging/hikey9xx/phy-hi3670-usb3.c > index 42dbc20a0b9a..4fc013911a78 100644 > --- a/drivers/staging/hikey9xx/phy-hi3670-usb3.c > +++ b/drivers/staging/hikey9xx/phy-hi3670-usb3.c > @@ -640,7 +640,7 @@ static int hi3670_phy_probe(struct platform_device *pdev) > > if (of_property_read_u32(dev->of_node, "hisilicon,tx-vboost-lvl", > &priv->tx_vboost_lvl)) > - priv->eye_diagram_param = KIRIN970_USB_DEFAULT_PHY_VBOOST; > + priv->tx_vboost_lvl = KIRIN970_USB_DEFAULT_PHY_VBOOST; > > phy = devm_phy_create(dev, NULL, &hi3670_phy_ops); > if (IS_ERR(phy)) Thanks, Mauro