Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp26340924rwd; Mon, 3 Jul 2023 08:24:43 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5mumtozc3RpxVR0Jr196m6w7N4Imys9rJXHFBcz6ZJR6D98GiXsN0Jq559/fgB5cf6/lED X-Received: by 2002:a05:6870:fb8c:b0:18e:7c5e:b5c1 with SMTP id kv12-20020a056870fb8c00b0018e7c5eb5c1mr11101104oab.45.1688397883448; Mon, 03 Jul 2023 08:24:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688397883; cv=none; d=google.com; s=arc-20160816; b=R9UrCHkqghpFcAPhvwH936832Tgi/dCVG1M3TyQ0toHMniBQg2y6a04mNU2OWl2UwX lrEUyohx+hU3LUyjscdZle/1QAvpejXHzYBTgqWJvlVyRdVEDBsg+A78xKP/zsYOkHUw DYd8awpwHwYZ/OcEM4MwErTWhqQ++Bgi3MdkkNt5oJEIolwoSGwTBuRGj7wVcMwvEAEw 1NCTdO38pUo6mSSRPtM2OcFWEjBd1KbkI7MSORhBCu3hAKivyfOIQakFOyVN/6KwwEbG +KV1j1ngU75v5BBzyqcCOd/bPbKjsjlquHBh+h/dGL4ZhGRpexKxxbKkA+HdN79GxndA Rx8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=UTlCyTZXo+b+onVAuuCqLFFIg0VR0QnZHvj+HALD0/4=; fh=KaHnxzmS3OBP4FAANqWqrGWt85R+5vfn3IkOYMZ+WUE=; b=mTwgxc2EUhM7S6TsmP7HroYhyzrf5F7dkx0vD/5yML8Ei3THONbcfMcoKdfzPdV8y7 3XLHXfwif4PndIscXTp04vAAZhKriIPGnRMQrlxogy4p7c/xsR89zsruXR3naZvNigj4 zmyqRYSSAQjYXvfTrcdw8BNb6k5+cHRRSaRuYnBPIcO9Srhd3D+pklie4DpasTXLmsy+ OuaII6h5pGvn0tq52QZvR26U3hl6gkxzTfL6rG8ZC+xE7AHya8jtWmbDVJPMLvEB29zW /stEL97Tuo0lZDlg/48YVk9L5qo1kuoLGjrlRkO+10+kr6OoY15zaegL7kHARBW/qqgQ rzhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="reQ/K488"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id np1-20020a17090b4c4100b002630c9e77ddsi15069607pjb.46.2023.07.03.08.24.31; Mon, 03 Jul 2023 08:24:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="reQ/K488"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230011AbjGCORy (ORCPT + 99 others); Mon, 3 Jul 2023 10:17:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229978AbjGCORx (ORCPT ); Mon, 3 Jul 2023 10:17:53 -0400 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3117AE5E for ; Mon, 3 Jul 2023 07:17:52 -0700 (PDT) Received: by mail-wr1-x430.google.com with SMTP id ffacd0b85a97d-307d20548adso5004923f8f.0 for ; Mon, 03 Jul 2023 07:17:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688393870; x=1690985870; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=UTlCyTZXo+b+onVAuuCqLFFIg0VR0QnZHvj+HALD0/4=; b=reQ/K4887bs6S4mnAfRPRNQkwgE+H+XF5H7ZAQ4m/dHTk/PBuGZmGaCV/O9LdUDA3C 5MzWr4MJReXvaX/YFEH0k3fIgPFWMZJElrp7V0PHgWmH9bBg0juG6G7sD1JX4ef0UqCI wfH1jTCaz+HikHasy3P4pxiaLwW+V6PR5MHaaQfZGCODlDDH/ttRR+F7gCyiUfR03mCv byznfdUuMvYNXZ+bbKAV/tKahux7a/tyktjuvCTr56K9/jDD0dlSkLiljVXbY6siQlso t/50lycpzANpGuhLlUyWw0LovAFTidAwflC+pE1/BfOruSBZR8uhbnvN6Mzjgiga+RpI 2rcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688393870; x=1690985870; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=UTlCyTZXo+b+onVAuuCqLFFIg0VR0QnZHvj+HALD0/4=; b=OcZB0XhFukbv06/rYwzkLakCFiyVK28Yo/y29lxDH7Tv51Yqo2IfMCLrtslaUCBG3X pE1kAbVMY8+sz4xRAcbLEsIIy2enh+zuzFhB8eVzrOgLrHjJ+LeFJ7nSScyv5/wLp5Fq ZaHi9O3+xfSciZ6wpb3eDpcPhNqz+jvsG3Hv0j307Nh/4MEyYdjvTCVPLwNXpMVeXyaN Pz7tqd48Lj5A0s4ZB4PavLD39z2TojxpUBor0SCOEt+ttkeumICXIutpgALH0l4iBvxH nqNnHkIgixoGkyjpy0cbukeOAC9uAk54IyQ6rqbK2UtVcVPRXSvfHnsCK9XZ+CKzRA3I 6k5A== X-Gm-Message-State: ABy/qLYZf9qp+qzPQUPItKBGx0Tx9i1rW4RClPIO0/CmsZmnjQghVN9H FeBxZiyODpMiZjMnklVw+PMy0A== X-Received: by 2002:adf:f504:0:b0:30f:be04:5b5e with SMTP id q4-20020adff504000000b0030fbe045b5emr7875625wro.37.1688393870728; Mon, 03 Jul 2023 07:17:50 -0700 (PDT) Received: from localhost ([102.36.222.112]) by smtp.gmail.com with ESMTPSA id u2-20020adfdd42000000b00314326c91e2sm4465022wrm.28.2023.07.03.07.17.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jul 2023 07:17:49 -0700 (PDT) Date: Mon, 3 Jul 2023 17:17:45 +0300 From: Dan Carpenter To: Vishal Verma Cc: Alison Schofield , Ira Weiny , Ben Widawsky , Dan Williams , Jonathan Cameron , Dave Jiang , linux-cxl@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: [PATCH] cxl/mem: Fix a double shift bug Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Mailer: git-send-email haha only kidding X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The CXL_FW_CANCEL macro is used with set/test_bit() so it should be a bit number and not the shifted value. The original code is the equivalent of using BIT(BIT(0)) so it's 0x2 instead of 0x1. This has no effect on runtime because it's done consistently and nothing else was using the 0x2 bit. Fixes: 9521875bbe00 ("cxl: add a firmware update mechanism using the sysfs firmware loader") Signed-off-by: Dan Carpenter --- drivers/cxl/cxlmem.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cxl/cxlmem.h b/drivers/cxl/cxlmem.h index 79e99c873ca2..499113328586 100644 --- a/drivers/cxl/cxlmem.h +++ b/drivers/cxl/cxlmem.h @@ -323,7 +323,7 @@ struct cxl_mbox_activate_fw { /* FW state bits */ #define CXL_FW_STATE_BITS 32 -#define CXL_FW_CANCEL BIT(0) +#define CXL_FW_CANCEL 0 /** * struct cxl_fw_state - Firmware upload / activation state -- 2.39.2