From patchwork Mon Aug 30 02:22:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kunihiko Hayashi X-Patchwork-Id: 12464463 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=-12.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham 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 4D968C432BE for ; Mon, 30 Aug 2021 02:25:08 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0C96D60F57 for ; Mon, 30 Aug 2021 02:25:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 0C96D60F57 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=socionext.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=se4AgYAaQGfoAx53D4iY6VpBLs82aUs8z3dktCY9zYc=; b=gJSHsx9HJAjOwD wj1ep74LA2TLv4XficWXx7M/gPnkSw2pl8O6Sf2bB/8KprbwYelg/FmrEVQkG8S4UmDKL5AqhNM+g tn4TTv+zgZbnNXM4bvwBPSCouIpMWeiuZKEIjxU4EI7be7qOqh38DOfP2HJa+LSfGKPXHkqMcY0Em OCFvvaq3Wy0DMmpHcM5kHThEgwD79r8Ng96JbQmzigMvD83+6fljISbF8I6HbfjZm65lnreBp2l8x nCRlnOxsS0UeFAeS2lOoKs1g1VGPLGz5if6gAk5E+2qzSoB7KmfTo2K1iy2vJccBymqeYzHLt53Or pTBQ+Jgc39/i8lTVd0zA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mKWwt-00GHbH-Rw; Mon, 30 Aug 2021 02:22:59 +0000 Received: from mx.socionext.com ([202.248.49.38]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mKWwq-00GHad-HZ for linux-arm-kernel@lists.infradead.org; Mon, 30 Aug 2021 02:22:58 +0000 Received: from unknown (HELO kinkan2-ex.css.socionext.com) ([172.31.9.52]) by mx.socionext.com with ESMTP; 30 Aug 2021 11:22:53 +0900 Received: from mail.mfilter.local (m-filter-1 [10.213.24.61]) by kinkan2-ex.css.socionext.com (Postfix) with ESMTP id 797E22059036; Mon, 30 Aug 2021 11:22:53 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Mon, 30 Aug 2021 11:22:53 +0900 Received: from plum.e01.socionext.com (unknown [10.212.243.119]) by kinkan2.css.socionext.com (Postfix) with ESMTP id 7B6E9C1E08; Mon, 30 Aug 2021 11:22:52 +0900 (JST) From: Kunihiko Hayashi To: Lorenzo Pieralisi , Rob Herring , =?utf-8?q?Krzysztof_Wilczy=C5=84ski?= , Bjorn Helgaas , =?utf-8?q?Pali_Roh=C3=A1r?= , Marc Zyngier Cc: Masami Hiramatsu , linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Kunihiko Hayashi Subject: [PATCH v2 0/2] PCI: uniphier: Fix INTx masking/unmasking Date: Mon, 30 Aug 2021 11:22:36 +0900 Message-Id: <1630290158-31264-1-git-send-email-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210829_192256_740273_9C0F2485 X-CRM114-Status: GOOD ( 10.36 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This series includes some fixes to INTx masking/unmasking for UniPhier PCIe host controller driver. - Remove unnecessary bit clears to INTX mask field - Remove unnecessary irq_ack() function because write access to status field doesn't work - Add lock into callback functions to avoid race condition Kunihiko Hayashi (2): PCI: uniphier: Fix INTx mask/unmask bit operation and remove ack function PCI: uniphier: Serialize INTx masking/unmasking drivers/pci/controller/dwc/pcie-uniphier.c | 26 ++++++++++---------------- 1 file changed, 10 insertions(+), 16 deletions(-) Acked-by: Marc Zyngier