From patchwork Mon Mar 25 09:39:47 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: 161074 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp3751246jan; Mon, 25 Mar 2019 02:44:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqydv3eJ6fErrOyl/UTKZm3ipeV/GGg+AEu5ah4S7jWMWXGFJLqr2lpnOJz+FMKiDy8MLAC+ X-Received: by 2002:a62:1a06:: with SMTP id a6mr22819518pfa.18.1553507069656; Mon, 25 Mar 2019 02:44:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553507069; cv=none; d=google.com; s=arc-20160816; b=Ne+6rpo/r8NrWOFl+O+3D7U/cHb91TqJBzUl466m5oPLOJAen7QNNDgHkWkDwlDceo 2i1Oh9RH1VQQJu/GP4wOAiQTzn1SlYMA57fOPJfNTDkgnqfBWD+Ry382vkSgI1xp1CcU 9BPbsSs6+UKuBNPLTe0tWq/zMjMp7vflGYGm8Acf0iyssce0asCSDjdJS3VHxlbUpMxD zVB24AyIAlIHTjAl/uK0BwxbJM4yMai4f7eleDYg1KMt5KrT3MwwJCRUlUjpUnHdxKLv fVYN5pckO5qs0Ep2sOMKlSfL4M2aVHYXlbhK/8LLnVQ5zMq2kNWNdD4adXZ0bDLxrKV9 pcsw== 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=0NOms4lUtmMOUjEm9hAMMk0czyxVFSHMtD6FuBkgrzSSCeHjtYA0+t6+PSjLlg2q2q tY+WGDO933KRZ8iaj6JIW7r+Y4RgdSG/e2LXl/xrvVRKR3J+zXCNDAfAEXOp45WhxGWa M1XFkelksp2kW+QeMySjs/sRkudi1Vd4BMqtvAcakZjFccrScTmla7L+cugygn9mAxEW eIV1rZsQCeb5K9x2uA5JBfaXbpcmOpuz8vPZaruFH6yjB97l1tR58xbsoPvvIHZzoOOM TATD0kdnu20K3Ufo3gVnPekS6FR+kmCXfP93iPEzUQSKT8MtI+/2w66vYPYbl98hXr5f Ghgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=xC7zVjEm; 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 e2si13188504pgs.387.2019.03.25.02.44.29; Mon, 25 Mar 2019 02:44:29 -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=xC7zVjEm; 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 S1730846AbfCYJo2 (ORCPT + 31 others); Mon, 25 Mar 2019 05:44:28 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:33706 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730525AbfCYJo0 (ORCPT ); Mon, 25 Mar 2019 05:44:26 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id x2P9i8ie011385; Mon, 25 Mar 2019 04:44:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1553507048; bh=2++9Tg54a9f6hIecMipMBo4Cbzj6epb7v0EYAzsW2ns=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=xC7zVjEmGIGSwxwMa7ujENOVn5bfh0qrEbrWEt2siiuK6wTJX6XidurqTtAICTdRY a74R8iq9BpF2jw/DaNvdq9ixtaelieErWLeFdF176j6RiD5/7nxOpf5OGytScYSQzk fDE+iYwwza7GalOYQm456v3fTTONfz3duvba49Ho= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x2P9i8uO055981 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 25 Mar 2019 04:44:08 -0500 Received: from DFLE101.ent.ti.com (10.64.6.22) by DFLE104.ent.ti.com (10.64.6.25) 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 04:44:08 -0500 Received: from dflp32.itg.ti.com (10.64.6.15) 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 04:44:08 -0500 Received: from a0393678ub.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id x2P9feaf028077; Mon, 25 Mar 2019 04:44:03 -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 , , , , , , , Minghuan Lian , Mingkai Hu , Roy Zang , Jesper Nilsson Subject: [PATCH v3 26/26] misc: pci_endpoint_test: Fix test_reg_bar to be updated in pci_endpoint_test Date: Mon, 25 Mar 2019 15:09:47 +0530 Message-ID: <20190325093947.32633-27-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190325093947.32633-1-kishon@ti.com> References: <20190325093947.32633-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; }