Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1051947ybi; Wed, 19 Jun 2019 12:33:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqx/kHz2w6htO05D4gM9S8c2GyrB4AxuXBTm05UxRd8U9rFBqhjKQYUjjzDC+M0EHABLgyPL X-Received: by 2002:a17:90a:a09:: with SMTP id o9mr12770510pjo.95.1560972816947; Wed, 19 Jun 2019 12:33:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560972816; cv=none; d=google.com; s=arc-20160816; b=HdoyeHqCEGw3KkxwsLz+2tGHVd0LskKvWFdpZUPgvByle+IaCElolx32i/3VAAijcJ SFx8iCnx6Qifd+rK8JRPhtXA87oLz/cdNVLiR/igKGNtn2jvvizSkEEh5C432ZGK0Otr NwXh0lQssBUO02XCY53naTc2lPmnv/WzAgK5uu9RGuDmBX99hrQiZ0N69Vf3j/x7NABl mBuA9KCHEe54vrUAMEvMGFrxfdsmEyXErSYFYmgg8nnPEPSb+lIUKWdfy/b7kgLTzTv2 dzK5O4RxXjPJxtifHcBMfBnUs/aWfLFRlzS9jeU5z7/hjPA0x7A93YBfi/iEInjlVEx3 VsSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Q8xLvo4XJRoTTfc8mISFQW+2jt5QOewC/3/eGG/+pT4=; b=wjXOH6RryuFUOW+f0mZP+7GO7ZaQnWIaexh+r5hgvA0ndyUBiiQn34ZPOHaaaCkq3G NB3c8pU6zQbvLkLgTsPlGoLdBT8BhlzbCq0Eh+ll0E/W+xs2/OZK9Hoc+EqpJFpTPLp8 WevibE9YM/OUM3q5110zvY+9Sh27dvkmzMBzan2iof4Ck/t1z9TvBpqGTY0ZrKUCN7Rj GYwS0rDI/sznl6634Epn0LSWO00XpM0Nla17/brRhCqYoX/j6LJm1ZgHZuJE/Dbt3sSe Ac6iKSY0BjfDwMeOloGDcgCB0haF5PywQ+l+QPUTbLQtnXzEEg5JAfPT5YJGvZ3my1ih b3ZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@poorly.run header.s=google header.b=B9z8cIbB; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cj11si16783102plb.373.2019.06.19.12.33.20; Wed, 19 Jun 2019 12:33:36 -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=@poorly.run header.s=google header.b=B9z8cIbB; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730308AbfFSTcj (ORCPT + 99 others); Wed, 19 Jun 2019 15:32:39 -0400 Received: from mail-qt1-f194.google.com ([209.85.160.194]:33372 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726265AbfFSTcj (ORCPT ); Wed, 19 Jun 2019 15:32:39 -0400 Received: by mail-qt1-f194.google.com with SMTP id x2so476441qtr.0 for ; Wed, 19 Jun 2019 12:32:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=poorly.run; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=Q8xLvo4XJRoTTfc8mISFQW+2jt5QOewC/3/eGG/+pT4=; b=B9z8cIbBXSAAGkAhVirDOMtI2AzBMC5plss+zth7pSDGUd8N9fhdoqrHLDI55TNEWo J+rko0sHildCeJqbg6bCp3MGIDoXOwsg/rbgBJOv3c1wfEkd+bi+IScJ0OhiL9zpHHb9 wAWbrgvkbeUAcX2j95yUEc/v9QHNS87EBQFlMoAuSmuzRb6bwSS+pc/DkqE7B13Oy6hi TsQTcKMNOM9UACJhQ1V9f/ngiiT6q9Cp547tjy5NFEZZrvoJhd0x3mjhDQMlIQ9GhcD/ URvvNvzGR85eqaveHXUhfgHYlGjrtI4aC8EfeOaOZcMRxCVSwYS5mDseVoNVrwJZrjb6 TFRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Q8xLvo4XJRoTTfc8mISFQW+2jt5QOewC/3/eGG/+pT4=; b=iOymHGM7B5u10fuIbEnrCY+Jcy+quj9tXq7gv0jF1F1N0zU/tNTct4JOvExiA19tPY 7rF3V1k+XDh+pc9a3SC0em9O50fM0edqKDNrFtxOuBdfRibjYI1jiQVdPVY6sKQabG+J +T2EgOM+di6Xy0v40K9I+A47D3XKYht64i8D90R1EgIiO1YojbLMdumD5JynfFJH7ooD dpGu8nHplc8Jo9YM7V+oH9UvmaW1OaEIVeFCqTJkNAZlun28TzbEdGPgMDXkk9aGW8fK dhybbNL1Tb7Ra+wpoT9sMYdVH9XmNmL+rburZMNhkC1ATsT8aFvBxGOrgmiqWvoaHmQx e0RQ== X-Gm-Message-State: APjAAAVrQ4rnYFQ7d7jbgsNzozzrs7jDH6yHqy1xuewCMQEk9iym/tts TBsKfo98YTk3aZBvbtRbTTaCgQ== X-Received: by 2002:a05:6214:10c5:: with SMTP id r5mr33543633qvs.224.1560972758652; Wed, 19 Jun 2019 12:32:38 -0700 (PDT) Received: from localhost ([2620:0:1013:11:89c6:2139:5435:371d]) by smtp.gmail.com with ESMTPSA id i22sm11768509qti.30.2019.06.19.12.32.37 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 19 Jun 2019 12:32:37 -0700 (PDT) Date: Wed, 19 Jun 2019 15:32:37 -0400 From: Sean Paul To: Nathan Chancellor Cc: Rob Clark , Sean Paul , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com, kbuild test robot , Jeffrey Hugo Subject: Re: [PATCH v2] drm/msm/dsi: Add parentheses to quirks check in dsi_phy_hw_v3_0_lane_settings Message-ID: <20190619193237.GG25413@art_vandelay> References: <20190619161913.102998-1-natechancellor@gmail.com> <20190619191722.25811-1-natechancellor@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190619191722.25811-1-natechancellor@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 19, 2019 at 12:17:23PM -0700, Nathan Chancellor wrote: > Clang warns: > > drivers/gpu/drm/msm/dsi/phy/dsi_phy_10nm.c:80:6: warning: logical not is > only applied to the left hand side of this bitwise operator > [-Wlogical-not-parentheses] > if (!phy->cfg->quirks & V3_0_0_10NM_OLD_TIMINGS_QUIRK) { > ^ ~ > drivers/gpu/drm/msm/dsi/phy/dsi_phy_10nm.c:80:6: note: add parentheses > after the '!' to evaluate the bitwise operator first > if (!phy->cfg->quirks & V3_0_0_10NM_OLD_TIMINGS_QUIRK) { > ^ > ( ) > drivers/gpu/drm/msm/dsi/phy/dsi_phy_10nm.c:80:6: note: add parentheses > around left hand side expression to silence this warning > if (!phy->cfg->quirks & V3_0_0_10NM_OLD_TIMINGS_QUIRK) { > ^ > ( ) > 1 warning generated. > > Add parentheses around the bitwise AND so it is evaluated first then > negated. > > Fixes: 3dbbf8f09e83 ("drm/msm/dsi: Add old timings quirk for 10nm phy") Hmm, so it looks like this patch isn't upstream. What tree are you basing this on? Sean > Link: https://github.com/ClangBuiltLinux/linux/issues/547 > Reported-by: kbuild test robot > Reviewed-by: Jeffrey Hugo > Reviewed-by: Sean Paul > Signed-off-by: Nathan Chancellor > --- > > v1 -> v2: > > * Fix broken link (thanks to Sean for pointing it out) > * Add Sean's reviewed-by > > drivers/gpu/drm/msm/dsi/phy/dsi_phy_10nm.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/msm/dsi/phy/dsi_phy_10nm.c b/drivers/gpu/drm/msm/dsi/phy/dsi_phy_10nm.c > index eb28937f4b34..47403d4f2d28 100644 > --- a/drivers/gpu/drm/msm/dsi/phy/dsi_phy_10nm.c > +++ b/drivers/gpu/drm/msm/dsi/phy/dsi_phy_10nm.c > @@ -77,7 +77,7 @@ static void dsi_phy_hw_v3_0_lane_settings(struct msm_dsi_phy *phy) > tx_dctrl[i]); > } > > - if (!phy->cfg->quirks & V3_0_0_10NM_OLD_TIMINGS_QUIRK) { > + if (!(phy->cfg->quirks & V3_0_0_10NM_OLD_TIMINGS_QUIRK)) { > /* Toggle BIT 0 to release freeze I/0 */ > dsi_phy_write(lane_base + REG_DSI_10nm_PHY_LN_TX_DCTRL(3), 0x05); > dsi_phy_write(lane_base + REG_DSI_10nm_PHY_LN_TX_DCTRL(3), 0x04); > -- > 2.22.0 > -- Sean Paul, Software Engineer, Google / Chromium OS