Message ID | 20240711-b4-qcom-rpmh-v5-1-fbf04ce6a7e8@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:adf:fac3:0:b0:367:895a:4699 with SMTP id a3csp315700wrs; Thu, 11 Jul 2024 09:47:04 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWleTJ3ZGGkvw1RKxsN+cxNJxhj08bbKxdTgZNsQddK9HFj5YyYi1mFAp+D0B5uWdjxmsSyI2zwDALUdp2P1Ahb X-Google-Smtp-Source: AGHT+IErds0kPEvRk5K8WywEBAoVgEZQDkzDzsnorT6h4oj2zpbich26ebKMnO2BpZsmyUW7CR7V X-Received: by 2002:a17:907:7da7:b0:a77:e48d:bc8 with SMTP id a640c23a62f3a-a780b6b3a6emr787371366b.21.1720716423827; Thu, 11 Jul 2024 09:47:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1720716423; cv=none; d=google.com; s=arc-20160816; b=LhBFV9Z5uYjgif9P9e/97s/+Qvv16rzQy/ILASrds49HZKh/PN7Ec6FZYiC72us6OD vnboMcT0tV4kAd0zWUEOkQopUyCPLli6j4Mnp2cmBR5KKG5nZL4wwNNbZSRFpPN/TK1+ dLb/Ng0E4gTtKiqibIanR0blaYX9VpHXbb+24NzvpiMposRNpWpJX4CVTqIEOSGrLHA9 HXHLVvAuaP/ZnTV65+M6rqfnJyEYqZLhbV7qs/xEhOyYY8FY/RNbSGQ8YAarZSj8qcSO pt/IrlcR6g6fFrvjc0mhmoVUKC11g5q5/Y18H3fH562ZsIHtrxmxrH/c8WIV2HFi7Tmq aJBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:cc:to:in-reply-to:references :message-id:content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=bcZVa+VDuJji/8aNFxPP1iBM+h15a7B0d/YaMGub7Uw=; fh=/XivWHF+vo8fEJZkIifbJJS5exQ4Pz1Cdxakj2MFy4s=; b=FbLl/D/GD/dWOqJbxQoSQkhqmHdUIBXF91+Hm92ZACxe8O3zEc/9yb8l0egNvAd1hT WaGYJKU/Sz05Xh6x3r9LgZBGFyWqVIdaiE5fXnpEbOTxcJBkrg57+V0Jyb/rWOpJeRQ1 TjtVEpFg0CZIUlOVjCmXjJb3xB28b+K+urwv7TPB4QLtCz5wGcQRb5rBmVUkQTmligsL TuxuWr09VlXJUCjpShFQr7bZaKodESAay46kpYnD6Lc4qxFF6oX7iQCw2ugdOwFjt4wm H9wve0nD3ZDuvvAGQ4GEQw95IWmBpb9L1KUn54VFiyBmx7I3yk492iNYI8wXLMuYNIt+ t4fQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=m8r0MNPt; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <u-boot-bounces@lists.denx.de> Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id a640c23a62f3a-a780ab0df79si335466566b.521.2024.07.11.09.47.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jul 2024 09:47:03 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=m8r0MNPt; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E496D8841D; Thu, 11 Jul 2024 18:46:47 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="m8r0MNPt"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C8ECC883CE; Thu, 11 Jul 2024 18:46:46 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 50AD28831F for <u-boot@lists.denx.de>; Thu, 11 Jul 2024 18:46:44 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=caleb.connolly@linaro.org Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-52ea79e6979so1248252e87.2 for <u-boot@lists.denx.de>; Thu, 11 Jul 2024 09:46:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1720716403; x=1721321203; darn=lists.denx.de; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=bcZVa+VDuJji/8aNFxPP1iBM+h15a7B0d/YaMGub7Uw=; b=m8r0MNPtIph3D3yBN13USIjAEc3lmkAKg562+Hqohd2L1tBQICoUzwdgfDX8liRqO3 r0TOHhGz7mx1fHvAFwvffgyvko0VrmKh8L7rn0+jWqSc53o2vYqgJOsJ6Nu6UGFfc4hy EiTVjS6uHj3A84S3lTkb0Hcn1kTofzIwhOPlevy7Wuwt4gM+WR9B7QJYNRjKchUvyCmd FBP6fU9QMZAlwIbJyWJkTQ04sMK1WXGka4vguDKZ71ZyqdELeuupsaL5iTQUyniGvY98 OGnoYbYWaJTHYb7DTtaGagJfKJY/BYnh7px96gFhglcg373/D55jWJNFiJlZHcJbDYr4 +xhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720716403; x=1721321203; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bcZVa+VDuJji/8aNFxPP1iBM+h15a7B0d/YaMGub7Uw=; b=Fsh1v31VGICyC3ZmXpODXzlWFwZbMa+UhJwWbXvEkJdm6NvpTtT0QJO85+sIgWRxlY Sxres9A7cNAuoT9XWfVTcCs6apIY8GEOTPyOYFbBTz83xbP0eiOxJVtzDz1rbB/8EzZ7 0wmzhFFG7oftWc8qd3KFgL5yL0q//ZzM4KhNFLCHdUAyhyTlPu3cd4mFkIYpcIMNtXsD 20U5ekDJ0m+BxmLct3+LYBCc9uutbkmhIqbkg1/rLJCa/UVEMnS3hgHyH7UDxRS0TdKD /kiSX7ToQFxQs/tdHWPKHkaN5fPJxrQNI2F+CxZfiO0EdzDzjWzvIBowrx/Ml2VnClHp OdBA== X-Gm-Message-State: AOJu0YzEFUO5QPBtak0PZ7Dp6XKGLo7FXyI6xwFUdjsp2can2PSYEev8 3uiu1lA7nvPB2vY9l1sUyTFpldYzZOZpantxQi4aKbdaT7Rjv45KKOquC1SD7ow= X-Received: by 2002:ac2:5bc2:0:b0:52c:86d7:fa62 with SMTP id 2adb3069b0e04-52eb9997806mr5016040e87.23.1720716403573; Thu, 11 Jul 2024 09:46:43 -0700 (PDT) Received: from [192.168.0.113] ([2a02:8109:aa0d:be00::7424]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a780a8545adsm268454166b.159.2024.07.11.09.46.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jul 2024 09:46:42 -0700 (PDT) From: Caleb Connolly <caleb.connolly@linaro.org> Date: Thu, 11 Jul 2024 18:46:33 +0200 Subject: [PATCH v5 01/23] linux/bitmap.h: add bitmap_empty helper MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240711-b4-qcom-rpmh-v5-1-fbf04ce6a7e8@linaro.org> References: <20240711-b4-qcom-rpmh-v5-0-fbf04ce6a7e8@linaro.org> In-Reply-To: <20240711-b4-qcom-rpmh-v5-0-fbf04ce6a7e8@linaro.org> To: Tom Rini <trini@konsulko.com>, Caleb Connolly <caleb.connolly@linaro.org>, Neil Armstrong <neil.armstrong@linaro.org>, Sumit Garg <sumit.garg@linaro.org>, Jaehoon Chung <jh80.chung@samsung.com> Cc: u-boot@lists.denx.de, u-boot-qcom@groups.io X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=986; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=PxfbD3T2xPQP1uXV5S6na22BOVQpSqa42vcVud4EfCI=; b=owEBbQKS/ZANAwAIAQWDMSsZX2S2AcsmYgBmkAxtEz2teg9BqndbKVeinrsVxcywY3h7+414l jc8fbVHaKKJAjMEAAEIAB0WIQS2UaFGPGq+0GkMVc0FgzErGV9ktgUCZpAMbQAKCRAFgzErGV9k ttz7D/0WnAz6PfflMzH8AtIBxK2N6tuM1W3iajEcHDR2q6ZbmS0hp1u02dXI/GTfQaKDRH7/sme zsfIDhn7jg1edLAstJ15MVCQJ9eCl93GDd/qclyFv0Nro0Hr53myGrsSYhppBracfoWq9wcnzun zCqt7H0RGOiyOD6UBrH+N5UxreebIxOyhzOV5t6dyx6+7cUtQduO/bMy+pGZOTQlPSzDJAWAZ+X 88C8hXTyC0HjMn4CVsL/ZDwjVxxWyusYvYbNmXY1U2Zg4mePGJAz22C4IAT4lEzWp+iCCoUW2Yt ZfXDrUcnmFXUnZGI2OECijM0XsI9N7BntGSiX7XTTTwOYiw6U2qE/geiyYpBm706gStGSju7gUb 1WlWNa0P+q1vVRsKhDJ1EmpfPLGFCFs8y6iwd3RGFVwC0O5Pi+XbcMwYI0DW0uP28/Bnflp/mqL pIV2U9d+uXi8HCRLJFCj5/OCuX11ZHrpFbBePNddY0jZw+oTJEJSogb1/+yfEMOlDSMLVlnPnS2 bJpA+WQTPyzs1PIXlvulLGlzn9aRPCUyok3PwEkoDQBXcJbAtrziVfh92+u/Gla77xeuyZaBv6A 1mlri9qwdSbqfVNCvSyru9HzHANyAhQLiGja718AnRZNlfhseTu3/Sv86vdni9eXwZSjZdBRxez KNmS16Czxkyj5yQ== X-Developer-Key: i=caleb.connolly@linaro.org; a=openpgp; fpr=83B24DA7FE145076BC38BB250CD904EB673A7C47 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean |
Series |
qcom: rpmh core and regulator support
|
expand
|
diff --git a/include/linux/bitmap.h b/include/linux/bitmap.h index 0a8503af9f14..40ca2212cb40 100644 --- a/include/linux/bitmap.h +++ b/include/linux/bitmap.h @@ -195,8 +195,16 @@ static inline void bitmap_fill(unsigned long *dst, unsigned int nbits) memset(dst, 0xff, len); } } +static inline bool bitmap_empty(const unsigned long *src, unsigned int nbits) +{ + if (small_const_nbits(nbits)) + return !(*src & BITMAP_LAST_WORD_MASK(nbits)); + + return find_first_bit(src, nbits) == nbits; +} + static inline void bitmap_or(unsigned long *dst, const unsigned long *src1, const unsigned long *src2, unsigned int nbits) { if (small_const_nbits(nbits))