Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp881283pxb; Wed, 27 Oct 2021 14:23:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyyEOYS6UADyddK2LMHn4zNU0W0UrNQnDVmpwCfMoCQsXqbB6IuC8KQALAD0gTqaqBj0qk1 X-Received: by 2002:a17:907:1b11:: with SMTP id mp17mr33750ejc.275.1635369780116; Wed, 27 Oct 2021 14:23:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635369780; cv=none; d=google.com; s=arc-20160816; b=NCYE1t+ZrpzYWNalEoUzyBDlgm3Q13aClE8T8VmOEI0rM95cQfrvEsrdhOiFev+8Ju nH2e/2ncas4zAiiTUrUDOuNFBz9NX7ThSAxKwTwKl/NM/QLZFsXxht3kfMlIRLzqmURD wzoGjojSDfOuWj49fZp7WBSLqRxamj32HKnMvU0+oZ5ml3A2aEbGxMJPgMXX9Yaj+2I8 w6cQ48Fh3EoADmNT2jScHY204uwmR04PdP2nuwxmpJRBoyK+FI+nOUN7alUVq46SuCDn IUyoZVn4gI4/g9uLHaKtEgO3Yc6HW1zw89t+5+kkDB6PYf9V0Jul3Mk157bQNI0PqzuK 7MIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=EsemFH0tETj3VZTrSmHxIMsN9NPXwXnYtpYm6mXI1Tk=; b=vxn4B7swdlapM9P9KPGwDQ6UWICHW1TBa4L/CCCt5BxIAPeIQs9HCuEKBK/3aVE8eY ANufEmKf/Ge6WJnX4slT3mw4Uc5qNbaj9rdn8CIGJbaqgcYRNc0xm8Cv0jAC4qmy5Inf 0dwII1kdmpysv4wqcjy6EVIPgtVb3JAaCmnHvoEX6oFcqDDitUwGV3OHGiuex3ToRuqj 4AwogH0/++oa8FaHM/hI/7tODxL0fX7KmqIKiB1O/fSujs0VTaVZYK6vQhJpdCWR/5MA WJu53xvdZbJ+2d67oS5VSem7zczYvpbR9mOuNHYlkdy6AHSd0eMBAWMSbtu7Jjv3mxy+ LHHg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h14si1169653eje.334.2021.10.27.14.22.36; Wed, 27 Oct 2021 14:23:00 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239394AbhJ0KFN (ORCPT + 97 others); Wed, 27 Oct 2021 06:05:13 -0400 Received: from mail-ed1-f54.google.com ([209.85.208.54]:34734 "EHLO mail-ed1-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241322AbhJ0KCo (ORCPT ); Wed, 27 Oct 2021 06:02:44 -0400 Received: by mail-ed1-f54.google.com with SMTP id g10so8421755edj.1; Wed, 27 Oct 2021 03:00:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=EsemFH0tETj3VZTrSmHxIMsN9NPXwXnYtpYm6mXI1Tk=; b=OVrPHfz2U5JUp+QiwRAYIE7397KhB7YycXt+DXvYe4JcjhzXsFHE5CrXDeDHIuuD1M dEIkXjamD6BAgkr9Greu77ateYlJXmZPLyGqYey4pUhZ6oxyqZS455lzsSgVPDu+r9Lt EEDKloMTpBgKGUhCEcuOgsByPOODZ9V4RYYGrgIcHKb/SljzqPRmtEtLQ1Xyg7wX1dBW /mKgxkASIqjR8tzD30QERKId11vrnyQz6OhtJnjQT4JOnrWEEf2ctuGUfP+vzi/akV1H lNMHLkoGh9IgVbL7vKBmFCikA106YeF/RhCfVd7jrU3RxIHxybBFjq/af9RtMzOfRr4A O+bg== X-Gm-Message-State: AOAM532uomeSp4FOEndF14s9/JG028M4bvTGvS6Jp6x/idPuBAUxwnzv s/ssHihUzfaa4uIF6CCknnUmM6zLjdiJgw== X-Received: by 2002:a17:906:4f8c:: with SMTP id o12mr37456066eju.115.1635328817804; Wed, 27 Oct 2021 03:00:17 -0700 (PDT) Received: from rocinante ([95.155.85.46]) by smtp.gmail.com with ESMTPSA id r5sm8427743edy.86.2021.10.27.03.00.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Oct 2021 03:00:17 -0700 (PDT) Date: Wed, 27 Oct 2021 12:00:16 +0200 From: Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= To: Andy Shevchenko Cc: bcm-kernel-feedback-list@broadcom.com, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Nicolas Saenz Julienne , Jim Quinlan , Florian Fainelli , Lorenzo Pieralisi , Rob Herring , Bjorn Helgaas Subject: Re: [PATCH v1 1/1] PCI: brcmstb: Use GENMASK() as __GENMASK() is for internal use only Message-ID: References: <20211027093433.4832-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20211027093433.4832-1-andriy.shevchenko@linux.intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andy, > Use GENMASK() as __GENMASK() is for internal use only. To add, for posterity, that using __GENMASK() bypasses the GENMASK_INPUT_CHECK() macro that adds extra validation. > Fixes: 3baec684a531 ("PCI: brcmstb: Accommodate MSI for older chips") > Signed-off-by: Andy Shevchenko > --- > drivers/pci/controller/pcie-brcmstb.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/pci/controller/pcie-brcmstb.c b/drivers/pci/controller/pcie-brcmstb.c > index 1fc7bd49a7ad..51522510c08c 100644 > --- a/drivers/pci/controller/pcie-brcmstb.c > +++ b/drivers/pci/controller/pcie-brcmstb.c > @@ -619,7 +619,7 @@ static void brcm_msi_remove(struct brcm_pcie *pcie) > > static void brcm_msi_set_regs(struct brcm_msi *msi) > { > - u32 val = __GENMASK(31, msi->legacy_shift); > + u32 val = GENMASK(31, msi->legacy_shift); Thank you! Reviewed-by: Krzysztof WilczyƄski Krzysztof