Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1144613ybk; Wed, 20 May 2020 23:06:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx7b/+80XcapYdMZJpQRM7PYLsbB+H0lIsLmFyI/x+ELtyoA/uLjfrBNeufkbOhwlQqKG/d X-Received: by 2002:a17:906:c29a:: with SMTP id r26mr2110285ejz.286.1590041178368; Wed, 20 May 2020 23:06:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590041178; cv=none; d=google.com; s=arc-20160816; b=gu4QVt/Q8furv5wgc6z6ofhnAMsHI/Sz3K5ojnVWNX71YxF+ECRr45aD7ghA27Im9L fwdfybfoCKTHWVaDVO6T/mm8wKyakpmLTPZMPRvzVCZXUUVnp0sOc7skrDP41/MEjUZn lkF1QyyF73HC202fOYk+Bd7F2LKOfFWyA3w7x5tYImPKlhpzh89SOqzy89l2OCM2MnRq ZNiprq4HFxskaeFWKnIFpRpxsjt7Y7VLRpFHP2HNpUe/9Bo2hkEIUtxOL/zQMb+K1m/S VX1pCBzqfeztJum0XPU5QopUSi36vuNpI/CrdFHHvG22i2HREFEG+JdV03Y2XHLaN15f Auyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=BrczHrPxmDimhB0/0NhkdkJAAqMI1FXR2cfHE8LPPuw=; b=mkZrSNsuG3SXSeJx83oBqiddcZOW8mOoHJuOp8qufklcy1dkAeP2/C51Nv1u19XuTk pOYkg6JwPXLq2DUSMErvw5OR+WhpNHMmqcOAdYHm6nhMtYyA8npsaxZZOf4E/8Sratqv /pF38z9U4Oozw/AjrECpsfs0w/SXcJ/S5CP+xYaPr39X20l46tDbBMMc+c5LlUW8e4SI 4TvPNPo5oGya1A1vCgVGO5+25bYp6p6LT3mxcbTiyPsi+R3nQmcfN7ynk6WBxmHq/hjS xHJSPlTTF9Ls6PHdpVgbpHBoo09aiEF7HKpoSD5fy9H66kcjSwxs/h23p9b7KSEiOeFU 1QiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=DkXKFqyf; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e1si2567129edv.420.2020.05.20.23.05.53; Wed, 20 May 2020 23:06: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=@chromium.org header.s=google header.b=DkXKFqyf; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728207AbgEUGEd (ORCPT + 99 others); Thu, 21 May 2020 02:04:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728136AbgEUGEa (ORCPT ); Thu, 21 May 2020 02:04:30 -0400 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C1C49C05BD43 for ; Wed, 20 May 2020 23:04:30 -0700 (PDT) Received: by mail-pg1-x544.google.com with SMTP id c75so2689895pga.3 for ; Wed, 20 May 2020 23:04:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=BrczHrPxmDimhB0/0NhkdkJAAqMI1FXR2cfHE8LPPuw=; b=DkXKFqyffhopz4NwbPl/fCxYBCpjpkQxwbDhRe0RUw/0i3pGXZNj5k9ckrmZ6QPsFQ V9rj/yOL43qEhl9wMacg4mtbJoXeNHfw9/bOHy2t6JwOqWI4WIcYNTWFX4XiNPblmCCW Tv5wCnrNEk90bcB8j30HJ/LC1oKhJUUlhuV+4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=BrczHrPxmDimhB0/0NhkdkJAAqMI1FXR2cfHE8LPPuw=; b=SRMpLPNn4cHPhqN1BTxcABZhtvmVUvBiavxu60aTTS0gWDrYA313HSvUnZxLQHx7Bi 4zSUBHkcYzpOoaV+sGYka4CPBEdeH+8cH7pAzIzW0kSnEbwTaqYpWq3RkfkWlo1p1ov0 0gRTncljaFPu6W26d/9dAKWevWF9d1C8a31FWbMyoeJXOUbK0G7M3l7EdDXwdhp9SAfM BEW+xVL8pOyRbIaMMoE64eCQXIDyaf5AH6NfqJ8ZFTMGzvpbq5uzlpRsStUEbKRatYY7 koHQPQeMjxshRLvjIAaBMm+IjfCDx78AEDv74Boja4Oq44X8eFTnexvUHnoYDMC+n+Ak 7sPA== X-Gm-Message-State: AOAM531YQ4pfByi8/eN7PBUeYV6pLCPhKHGVAeqKqNRNlQSbZWwwyhPc 2qkTouT47zAykAdHjk99xHJZPg== X-Received: by 2002:a62:ddd6:: with SMTP id w205mr7790955pff.291.1590041070323; Wed, 20 May 2020 23:04:30 -0700 (PDT) Received: from smtp.gmail.com ([2620:15c:202:1:fa53:7765:582b:82b9]) by smtp.gmail.com with ESMTPSA id k18sm3590146pfg.217.2020.05.20.23.04.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 May 2020 23:04:29 -0700 (PDT) From: Stephen Boyd To: Andy Gross , Bjorn Andersson Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Maulik Shah , Douglas Anderson Subject: [PATCHv3/RESEND 2/3] soc: qcom: rpmh-rsc: Loop over fewer bits in irq handler Date: Wed, 20 May 2020 23:04:24 -0700 Message-Id: <20200521060425.24285-3-swboyd@chromium.org> X-Mailer: git-send-email 2.26.2.761.g0e0b3e54be-goog In-Reply-To: <20200521060425.24285-1-swboyd@chromium.org> References: <20200521060425.24285-1-swboyd@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org readl() returns a u32, and BITS_PER_LONG is different on 32-bit vs. 64-bit architectures. Let's loop over the possible bits set in that type instead of looping over more bits than we ever may need to. Cc: Maulik Shah Reviewed-by: Douglas Anderson Reviewed-by: Bjorn Andersson Signed-off-by: Stephen Boyd --- drivers/soc/qcom/rpmh-rsc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/qcom/rpmh-rsc.c b/drivers/soc/qcom/rpmh-rsc.c index 60fc56987659..ce725d4ff097 100644 --- a/drivers/soc/qcom/rpmh-rsc.c +++ b/drivers/soc/qcom/rpmh-rsc.c @@ -383,7 +383,7 @@ static irqreturn_t tcs_tx_done(int irq, void *p) irq_status = readl_relaxed(drv->tcs_base + RSC_DRV_IRQ_STATUS); - for_each_set_bit(i, &irq_status, BITS_PER_LONG) { + for_each_set_bit(i, &irq_status, BITS_PER_TYPE(u32)) { req = get_req_from_tcs(drv, i); if (!req) { WARN_ON(1); -- Sent by a computer, using git, on the internet