Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp5329590ybg; Tue, 22 Oct 2019 01:18:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqxMbJ94eBiCe1e+ETdevzVZcuTo4xXL6q257VLukZq2mQbD48cHbYEpfi+rW0wUv/AGcCXS X-Received: by 2002:a17:906:af5c:: with SMTP id ly28mr25612458ejb.228.1571732334307; Tue, 22 Oct 2019 01:18:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571732334; cv=none; d=google.com; s=arc-20160816; b=hKdFSPL0BU2U8ppIE767xIdNaCjiHiOuQ7RbGC02nVE6zmaxsOFHCmp/t4w25Yqf6A vaJxO3TrdXZFLAcAID6PErQHN9smDbVABkOCZRoEsdvnjpYBBpfwIi7A3Kjfx0qYlNZ2 zZMkY68DX2iMaf2TzfkJnKazubb4dyaGJnPMg67xSk1+SskIp/7DSd+MikKaHhGrGssE F06eIGSrraD1OGqb61TwIsm99UQWxJwJeQO49kmds3LKlVvatdHwFGoeDenQ7VP3V6vz DuCgLWg2Fx0QtJMWpLASL5F3OANPdakEGVpYEmerkPaVIzGxP8mCaufqu69zK0AejqVQ lEbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :organization:in-reply-to:subject:cc:to:from; bh=ZwOFOhs7M+uRd4/jBiK9w7RrUV8gkvDGXbicjDmWXeA=; b=MEyPyCys1Q7PrOYt7DNsgfTmhnNHjxmEAaHMOGuGPU6UJ6vfdzqaJbq4/FUASTS+f9 7jVdwwbtopXulmwZmXb5RKDHeWvVqVzxSndSOXVgz4UzAYm1S/0hXXMezJY7uTccT3f4 1NmfmBVZO3szcxbhV+AjWkFHA6STEIYBrTNd280sDZswHr/ubXwMQH2WoHw5D2iDjqOl ZCDOt+/KkNEPvLlZ25XCmMhXGa1Ibd55SQI1Z2nOq80IkkiJaj/JdMvtdP3uiv2BhJZc E2miiGiuL6jFd4Y4UuHLJHUkc+YSWbteEXdwXOeE+3PgP6exI8FPMoLdDPm3XQYqYN2Q kWtg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 92si2961666edh.321.2019.10.22.01.18.30; Tue, 22 Oct 2019 01:18:54 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388253AbfJVIQ4 (ORCPT + 99 others); Tue, 22 Oct 2019 04:16:56 -0400 Received: from mga11.intel.com ([192.55.52.93]:65139 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387928AbfJVIQ4 (ORCPT ); Tue, 22 Oct 2019 04:16:56 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Oct 2019 01:16:56 -0700 X-IronPort-AV: E=Sophos;i="5.67,326,1566889200"; d="scan'208";a="191387159" Received: from jnikula-mobl3.fi.intel.com (HELO localhost) ([10.237.66.161]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Oct 2019 01:16:53 -0700 From: Jani Nikula To: Patrik Jakobsson , dri-devel@lists.freedesktop.org, Thierry Reding Cc: David Airlie , linux-kernel@vger.kernel.org, Sean Paul Subject: Re: [PATCH] drm/scdc: Fix typo in bit definition of SCDC_STATUS_FLAGS In-Reply-To: <20191016123342.19119-1-patrik.r.jakobsson@gmail.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo References: <20191016123342.19119-1-patrik.r.jakobsson@gmail.com> Date: Tue, 22 Oct 2019 11:16:51 +0300 Message-ID: <87lftdfb4c.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 16 Oct 2019, Patrik Jakobsson wrote: > Fix typo where bits got compared (x < y) instead of shifted (x << y). Fixes: 3ad33ae2bc80 ("drm: Add SCDC helpers") Cc: Thierry Reding > Signed-off-by: Patrik Jakobsson > --- > include/drm/drm_scdc_helper.h | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/include/drm/drm_scdc_helper.h b/include/drm/drm_scdc_helper.h > index f92eb2094d6b..6a483533aae4 100644 > --- a/include/drm/drm_scdc_helper.h > +++ b/include/drm/drm_scdc_helper.h > @@ -50,9 +50,9 @@ > #define SCDC_READ_REQUEST_ENABLE (1 << 0) > > #define SCDC_STATUS_FLAGS_0 0x40 > -#define SCDC_CH2_LOCK (1 < 3) > -#define SCDC_CH1_LOCK (1 < 2) > -#define SCDC_CH0_LOCK (1 < 1) > +#define SCDC_CH2_LOCK (1 << 3) > +#define SCDC_CH1_LOCK (1 << 2) > +#define SCDC_CH0_LOCK (1 << 1) > #define SCDC_CH_LOCK_MASK (SCDC_CH2_LOCK | SCDC_CH1_LOCK | SCDC_CH0_LOCK) > #define SCDC_CLOCK_DETECT (1 << 0) -- Jani Nikula, Intel Open Source Graphics Center