From patchwork Mon Mar 25 08:35:01 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: 161047 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp3697249jan; Mon, 25 Mar 2019 01:38:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqwhBBSuJG8DLO/RTE+c1mqQBI2G9OAIgpfJXtyCQOS4HnS9Hm2NO2p3OJvcupHpG6HLXch/ X-Received: by 2002:a17:902:ba88:: with SMTP id k8mr21606247pls.268.1553503090946; Mon, 25 Mar 2019 01:38:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553503090; cv=none; d=google.com; s=arc-20160816; b=NRyyK01CMni1xMrW8+SyglUx00PPW9P/LnWCWRSZ4kJUCBVgokv0TpbkJTwtOxMviO KF1MNjPuCNZiaDlvMRk2HQmaSXmSWnj6KN8MMpn8zuEToka/FCHE/+NTPO3RDJWLD8CX gh4KY3va3QGCJO6fJZf4j59BYCnPFED9iiybbe2H2k15kZwQdm5VVq8M8+YpMx99qB/d wqlOFlxcTVXKL5XZKRUgrh5lk4LeEuRU21GMnSdfTASFGarZUDoi/8n4a0toXSZmRNHm 6iWzSfi/Oy5vVesf38tf8CvZW8TN21PF26CSx9LtG/SFqG06jYVBRwsRen4NH0EpG7uw ebtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=2++9Tg54a9f6hIecMipMBo4Cbzj6epb7v0EYAzsW2ns=; b=nNuKWghJmL1BfEuu3MbvAfT1p/R9wtiqPvDjjEvlbv4dhGauBxyOwwk6JoswKDwQKI KXzVE6J3s2iFpXqxr0hERJ7xoehdT2fygaoweziFQd+AtNWdE2wPPA5/YDcudgte9bAJ UHcM71QUtC0aqQd2JTMnXB7eTATk18ax9LO82NbMbuboBzNw6eyB93O5ZLLTQ8FtJFDq yiSjYfo6JngAvaIcQbqwucOiKhQs6XWmaWW1lkeFPnNnY8kAdrJxazGxDN25f3Y3AdjU GICO+5IQ4a/n4X1pbs0vzXMVh3o0jGzjTqowSFigHY/LD0ZbtgLPExWfj7usHKS6xnzN Xfkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=IgnQdBJi; 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 9si14232786plc.121.2019.03.25.01.38.10; Mon, 25 Mar 2019 01:38:10 -0700 (PDT) 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=IgnQdBJi; 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 S1730433AbfCYIiF (ORCPT + 31 others); Mon, 25 Mar 2019 04:38:05 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:52466 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730077AbfCYIiD (ORCPT ); Mon, 25 Mar 2019 04:38:03 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id x2P8bn3Y106880; Mon, 25 Mar 2019 03:37:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1553503069; bh=2++9Tg54a9f6hIecMipMBo4Cbzj6epb7v0EYAzsW2ns=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=IgnQdBJi3zFYki0xHFr0RyibZFhJjE5eyKc/XnbAZiZ4dwNMUpex7UZn+eB2UfT16 /dVMHRc9PtPRiqJnxVqtiACzdf/3Ybgyn2TDvlNRAn9monCSdHbQGyE5IPsH+TZJXx ND+Pgw3z3lwjMWqPeLwcM/9l7AI4h9x064L/QL7A= Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x2P8bni8090171 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 25 Mar 2019 03:37:49 -0500 Received: from DFLE101.ent.ti.com (10.64.6.22) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Mon, 25 Mar 2019 03:37:49 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DFLE101.ent.ti.com (10.64.6.22) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1713.5 via Frontend Transport; Mon, 25 Mar 2019 03:37:49 -0500 Received: from a0393678ub.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id x2P8ZsG8006534; Mon, 25 Mar 2019 03:37:45 -0500 From: Kishon Vijay Abraham I To: Gustavo Pimentel , Bjorn Helgaas , Rob Herring , Lorenzo Pieralisi , Arnd Bergmann , Murali Karicheri CC: Kishon Vijay Abraham I , Jingoo Han , Greg Kroah-Hartman , , , , , , Subject: [PATCH v2 26/26] misc: pci_endpoint_test: Fix test_reg_bar to be updated in pci_endpoint_test Date: Mon, 25 Mar 2019 14:05:01 +0530 Message-ID: <20190325083501.8088-27-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190325083501.8088-1-kishon@ti.com> References: <20190325083501.8088-1-kishon@ti.com> 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 commit 834b9051992580ac8fd3966d023b ("misc: pci_endpoint_test: Add support for PCI_ENDPOINT_TEST regs to be mapped to any BAR") while adding test_reg_bar in order to map PCI_ENDPOINT_TEST regs to be mapped to any BAR failed to update test_reg_bar in pci_endpoint_test. This results in test_reg_bar having invalid value when used outside probe. Fix it here. Fixes: 834b9051992580ac8fd3966d023b ("misc: pci_endpoint_test: Add support for PCI_ENDPOINT_TEST regs to be mapped to any BAR") Signed-off-by: Kishon Vijay Abraham I --- drivers/misc/pci_endpoint_test.c | 1 + 1 file changed, 1 insertion(+) -- 2.17.1 diff --git a/drivers/misc/pci_endpoint_test.c b/drivers/misc/pci_endpoint_test.c index e015e8fa9bd3..7b015f2a1c6f 100644 --- a/drivers/misc/pci_endpoint_test.c +++ b/drivers/misc/pci_endpoint_test.c @@ -670,6 +670,7 @@ static int pci_endpoint_test_probe(struct pci_dev *pdev, data = (struct pci_endpoint_test_data *)ent->driver_data; if (data) { test_reg_bar = data->test_reg_bar; + test->test_reg_bar = test_reg_bar; test->alignment = data->alignment; irq_type = data->irq_type; }