From patchwork Fri Dec 20 10:05:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kishon Vijay Abraham I X-Patchwork-Id: 182225 Delivered-To: patch@linaro.org Received: by 2002:a92:1f98:0:0:0:0:0 with SMTP id f24csp311737ilf; Fri, 20 Dec 2019 02:04:27 -0800 (PST) X-Google-Smtp-Source: APXvYqzNsjIwfrgfIot9txUFeiZ1onkZtTkzFagQJybFsrp0Gcj98jN4qMgnh16pJlMuu/ALA/TI X-Received: by 2002:a9d:2264:: with SMTP id o91mr14355646ota.328.1576836267622; Fri, 20 Dec 2019 02:04:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576836267; cv=none; d=google.com; s=arc-20160816; b=VLlwaHPjfpp2cuSdUIFr4GW8HlV7v0p14rQZZK08t08cFs5jLL5iDf2BersSPLDXpz KCOLjx5R/O6gMNFJO3ndlxbeXB/zEpHxycyEMxGwmcbYuHuPo/FHHQkMKbaE2WJpuP3T twFZwJPGC9NH8Czw9FoOk+2WssYAiNLkfJlkxpRFCO0byxrxXhswzMB83FvjeyhAvOal FXW6i9ERHvhhhHOCfQpkjbt7trnrrOzO8ZVDxKrhaWCNUSZan5l0eHtS4T3FQiaSzmMF XqSDw+kRhOgBGhogM/+518ITW5Zdn85WSIi5X2/9F6g0JOywedqvJOuuDV4gVPryGk31 1J6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=Ma1U2A/pFmH8hrjGx2OkWa/HQjXzqaF1j16RnDWo8mY=; b=Ymt0iBuwWDGYf3SCEvprju2ueza6AyX3FdKWiIkO1YrbiIWgW/K5IQQ5d5Ckno1VDX 9l7C+E34xvsStsocufEbO8JFHSFvknDvTcsQ+7voYOFuSTxu/E2rsl7wX22ypL+9ZGxT kkbpdJNHWM24X+dlnq6JoK7Tq1nxAys6bhNpUGHHrFXaw3IyN3by7wqntQPzLMKwIxnr YuXL2K0c6Fr6IRd94w9gkg2TTqOsKF4418mAKKgsM9KCaMRMTAO3G6LiGCW3nOzHw9nJ BmIuaCkm5koo6sbRmCfE7vMgE2yg1SiKNrwRi1HHEglXWr7h+faNo7WkL+yytXryW6Fm EWzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=AAJUBnie; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v23si695734otk.321.2019.12.20.02.04.19; Fri, 20 Dec 2019 02:04:27 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=AAJUBnie; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727262AbfLTKES (ORCPT + 27 others); Fri, 20 Dec 2019 05:04:18 -0500 Received: from fllv0015.ext.ti.com ([198.47.19.141]:54476 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727188AbfLTKER (ORCPT ); Fri, 20 Dec 2019 05:04:17 -0500 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id xBKA4BPO016735; Fri, 20 Dec 2019 04:04:11 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1576836251; bh=Ma1U2A/pFmH8hrjGx2OkWa/HQjXzqaF1j16RnDWo8mY=; h=From:To:CC:Subject:Date; b=AAJUBnieER3BPQr+lYbn0N/wcjXZLQ9rEsz8j9KxUcwiIr/6CqaBJmKOeYXonEZgo a5BL2f4SMHwDQjf99/a9MzLJBg89rEdYbAaEO/MjYexc5Jo4Tpia4D+zk/9fwqvcFy Rar3go/cyO9cL8rDF4i5SvR53EZ+z6xN8IhPbS0Y= Received: from DFLE102.ent.ti.com (dfle102.ent.ti.com [10.64.6.23]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id xBKA4Bxg044521 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 20 Dec 2019 04:04:11 -0600 Received: from DFLE115.ent.ti.com (10.64.6.36) by DFLE102.ent.ti.com (10.64.6.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Fri, 20 Dec 2019 04:04:10 -0600 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3 via Frontend Transport; Fri, 20 Dec 2019 04:04:09 -0600 Received: from a0393678ub.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id xBKA47W6113355; Fri, 20 Dec 2019 04:04:07 -0600 From: Kishon Vijay Abraham I To: Jingoo Han , Gustavo Pimentel , Lorenzo Pieralisi , Andrew Murray , Bjorn Helgaas CC: , Subject: [PATCH] PCI: dwc: Use private data pointer of "struct irq_domain" to get pcie_port Date: Fri, 20 Dec 2019 15:35:50 +0530 Message-ID: <20191220100550.777-1-kishon@ti.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org No functional change. Get "struct pcie_port *" from private data pointer of "struct irq_domain" in dw_pcie_irq_domain_free() to make it look similar to how "struct pcie_port *" is obtained in dw_pcie_irq_domain_alloc() Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/controller/dwc/pcie-designware-host.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 Acked-by: Gustavo Pimentel diff --git a/drivers/pci/controller/dwc/pcie-designware-host.c b/drivers/pci/controller/dwc/pcie-designware-host.c index 395feb8ca051..c3d72b06e964 100644 --- a/drivers/pci/controller/dwc/pcie-designware-host.c +++ b/drivers/pci/controller/dwc/pcie-designware-host.c @@ -236,7 +236,7 @@ static void dw_pcie_irq_domain_free(struct irq_domain *domain, unsigned int virq, unsigned int nr_irqs) { struct irq_data *d = irq_domain_get_irq_data(domain, virq); - struct pcie_port *pp = irq_data_get_irq_chip_data(d); + struct pcie_port *pp = domain->host_data; unsigned long flags; raw_spin_lock_irqsave(&pp->lock, flags);