Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 85C9DC33CA2 for ; Fri, 10 Jan 2020 11:54:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 561432082E for ; Fri, 10 Jan 2020 11:54:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578657248; bh=lhVenOJ6s+P8475zKLSkROrO37p0bVEiiTrIGGrOrS4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=RUB7mROvWWya8k7EurW5PqAxL5LD5NExIVyQ53dso+DOCFCY/WErV1yDtgPVeY+yA e/if5EgAOYEtthnZpZqL9Grpq6o41tGGFTVLlZS55eUaJLdS++cX+5WY0B8D9tyN8V Rfnvap+LLtx7suqQBbPpdF7U8hvWWCfeFwW7ervs= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727720AbgAJLyH (ORCPT ); Fri, 10 Jan 2020 06:54:07 -0500 Received: from mail.kernel.org ([198.145.29.99]:45902 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727717AbgAJLyH (ORCPT ); Fri, 10 Jan 2020 06:54:07 -0500 Received: from localhost (83-84-126-242.cable.dynamic.v4.ziggo.nl [83.84.126.242]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A95AF2072A; Fri, 10 Jan 2020 11:54:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578657247; bh=lhVenOJ6s+P8475zKLSkROrO37p0bVEiiTrIGGrOrS4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=NTAFbSxK/TvK7RZ18ZBtWjzzLieB3QtfaOjyx0oHbZcrVUZMaXOncJMpi+eN9t50o 0nh/lLNTUaJOMF1IMFUV50DuI/1lvTuJmq49qWHOEhHkazk9KVDAjI3BAB6oc2q+o8 oxwOfAdb0C4Gdom+/qonTTJpb2RaQPP4LzYzW2Eo= Date: Fri, 10 Jan 2020 12:54:04 +0100 From: Greg Kroah-Hartman To: Logan Gunthorpe Cc: Sasha Levin , Doug Meyer , Bjorn Helgaas , stable@vger.kernel.org, Kelvin Cao Subject: Re: [PATCH v2] PCI/switchtec: Read all 64 bits of part_event_bitmap Message-ID: <20200110115404.GA924184@kroah.com> References: <20200103171029.25790-1-logang@deltatee.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200103171029.25790-1-logang@deltatee.com> Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org On Fri, Jan 03, 2020 at 10:10:29AM -0700, Logan Gunthorpe wrote: > commit 6acdf7e19b37cb3a9258603d0eab315079c19c5e upstream. > > The part_event_bitmap register is 64 bits wide, so read it with ioread64() > instead of the 32-bit ioread32(). > > Fixes: 52eabba5bcdb ("switchtec: Add IOCTLs to the Switchtec driver") > Link: https://lore.kernel.org/r/20190910195833.3891-1-logang@deltatee.com > Reported-by: Doug Meyer > Signed-off-by: Logan Gunthorpe > Cc: Bjorn Helgaas > Cc: stable@vger.kernel.org # v4.12+ > Cc: Kelvin Cao > Cc: Greg Kroah-Hartman > --- > drivers/pci/switch/switchtec.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > v2 of this patch adds the missing header that provides readq() on > non-64bit architectures. Thanks for this, now queued up. greg k-h