Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4139400rwb; Mon, 21 Nov 2022 04:19:59 -0800 (PST) X-Google-Smtp-Source: AA0mqf6h/uxIxBraWGO61+gTF8kLLBqlqzUFw/zrGuZ1iqxeOwKLRsd/koQLo7D/GixryrqrFNay X-Received: by 2002:a17:90b:48c2:b0:212:d636:1543 with SMTP id li2-20020a17090b48c200b00212d6361543mr26706385pjb.33.1669033199235; Mon, 21 Nov 2022 04:19:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669033199; cv=none; d=google.com; s=arc-20160816; b=kfAp5ETKYJAeHgiEwJ40EqXna+7pIM2JcL5Rjj6xZCmxeuvVM+6DgCh2hCZrX0LwIz 5t4f+uQnGZhRMOnDoQqUeuNMxU4kbypt7JkWyXiOj1b/jdifRYQudQLJq4hNtdlGMoXJ UP2H4OxxHpjspZcOIzS2r4emre9vLmfJLEzajaVVtuOusU0gDWWyVbNOfhyyOzMpVEz1 di20iB6ybRqWhwq5Z3+LRKukIHmVcmWEnMkVvxvvNZVJvqBVvIwddFHn8rntn3Rd3hbm p1dT2EaarnLHbS69yaYhFaNA1i+FKIEDM0IYCVX3mgJJxTrYF80M21uqGLGXnqaBX13d nbdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:dlp-filter:cms-type:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter; bh=4DQSEQbGFqTzsAQ1vDOskhu5NeotvLsqwP2LwtiyYOM=; b=DDT7x/BzpJLGJnwlUbWdrz/RlybbLn8XhNEBJkWZqD4jaX3hCWbc315p1zfuh65Hi3 bIyfaIoXDjtcVjp7u9/VERYGgYQaiTLlKFxEIHG+V6FBldpCy0eRaAM41oR5CRuUjqvE QnV/MuGI8EhMk9VOsQbY5dG5WeU8kdqVDzoWYTbFSWMd2ZMRetw0fKESCCJX4xgW/DSH 9X3paHdGNA2CekUizSnXL6Mk+4mRymoXR/uUQLhKhSOeXaKwIDeuMb+1W8HIkS9MBoBy 8SamWgWipKNy1iaVcv6/gKX8X93RNodNY2P22Eizdek4Kyt0InVSnk4LLORhEWoCez89 /upw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=G9wf9OFp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o13-20020a635a0d000000b0046ff26f21f0si11515174pgb.503.2022.11.21.04.19.46; Mon, 21 Nov 2022 04:19:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=G9wf9OFp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231290AbiKULqU (ORCPT + 92 others); Mon, 21 Nov 2022 06:46:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230152AbiKULqI (ORCPT ); Mon, 21 Nov 2022 06:46:08 -0500 Received: from mailout4.samsung.com (mailout4.samsung.com [203.254.224.34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8587F5D for ; Mon, 21 Nov 2022 03:46:06 -0800 (PST) Received: from epcas5p4.samsung.com (unknown [182.195.41.42]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20221121114604epoutp04ffd177938023c6ba56a7ef1d6989a757~plwBck4zg3273332733epoutp04K for ; Mon, 21 Nov 2022 11:46:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20221121114604epoutp04ffd177938023c6ba56a7ef1d6989a757~plwBck4zg3273332733epoutp04K DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1669031164; bh=4DQSEQbGFqTzsAQ1vDOskhu5NeotvLsqwP2LwtiyYOM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=G9wf9OFp9+O65mfEGgfr4eUdhvM12Z6IQVk2R/PXpirOdsSlUgQDc3nDIiLMgZhnK UWa43lOAsvl8aByc+eWBgkkNmGrfSG+wbsMhvtvBQLTcwFbNa4roEyvDHW7oIR2ig5 1yRbvn6sqUXGbyZLBeOlCFmTnbESHUj0KGEa+qvs= Received: from epsnrtp4.localdomain (unknown [182.195.42.165]) by epcas5p4.samsung.com (KnoxPortal) with ESMTP id 20221121114603epcas5p42b556919e142f6c0ae022bad2f21b055~plwAwMW_U0433904339epcas5p4C; Mon, 21 Nov 2022 11:46:03 +0000 (GMT) Received: from epsmges5p3new.samsung.com (unknown [182.195.38.175]) by epsnrtp4.localdomain (Postfix) with ESMTP id 4NG5F62YLVz4x9Pw; Mon, 21 Nov 2022 11:46:02 +0000 (GMT) Received: from epcas5p2.samsung.com ( [182.195.41.40]) by epsmges5p3new.samsung.com (Symantec Messaging Gateway) with SMTP id F2.F5.56352.AF46B736; Mon, 21 Nov 2022 20:46:02 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas5p1.samsung.com (KnoxPortal) with ESMTPA id 20221121104746epcas5p109c7bb299cf19070a9237c00c162ed8f~pk9HX5aeT2593625936epcas5p1_; Mon, 21 Nov 2022 10:47:46 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20221121104746epsmtrp1db7d5813c1c84b763ba0a5f00015f418~pk9HVfj7O2438624386epsmtrp1d; Mon, 21 Nov 2022 10:47:46 +0000 (GMT) X-AuditID: b6c32a4b-5f7fe7000001dc20-91-637b64fa45e5 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id 6F.45.18644.2575B736; Mon, 21 Nov 2022 19:47:46 +0900 (KST) Received: from cheetah.sa.corp.samsungelectronics.net (unknown [107.109.115.53]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20221121104742epsmtip18fae01eacc517566d39093dcb2713ce7~pk9EDB1I31291012910epsmtip1f; Mon, 21 Nov 2022 10:47:42 +0000 (GMT) From: Shradha Todi To: bhelgaas@google.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, kishon@ti.com, vkoul@kernel.org, lpieralisi@kernel.org, kw@linux.com, mani@kernel.org, arnd@arndb.de, gregkh@linuxfoundation.org, alim.akhtar@samsung.com, ajaykumar.rs@samsung.com, rcsekar@samsung.com, sriranjani.p@samsung.com, bharat.uppal@samsung.com, s.prashar@samsung.com, aswani.reddy@samsung.com, pankaj.dubey@samsung.com, p.rajanbabu@samsung.com, niyas.ahmed@samsung.com, chanho61.park@samsung.com Cc: linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, Shradha Todi Subject: [PATCH 6/6] misc: pci_endpoint_test: Add driver data for FSD PCIe controllers Date: Mon, 21 Nov 2022 16:22:10 +0530 Message-Id: <20221121105210.68596-7-shradha.t@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221121105210.68596-1-shradha.t@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA0WTe0zTVxTHd/trfy2kNT8L00szGfmRLQPHo1rKBYFBJFsNZoLOZSFboGl/ aYHSdn3ApjMgUpNhRcGqPCsCU1odYkHltVFesocjzWDEDTaBsYWXgyFieH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+b7T0iI3HUo6zwqHi0f0JxrX5xw28UpujFv4fba6HEsn55y0SQmZUe7Z udt3VidMyBKa9PO+8eQJDZ/3BWdprJ/10fSg7y0dYxNlLeWUdREfA98Kq6u/zbo2762xNufO 2Y/WKu5KZz97J33/xm6dbZ2sCzTXfDh6WImlOCPRUIu5qDgRAPt6QyUbAwAA X-CMS-MailID: 20221121104746epcas5p109c7bb299cf19070a9237c00c162ed8f X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20221121104746epcas5p109c7bb299cf19070a9237c00c162ed8f References: <20221121105210.68596-1-shradha.t@samsung.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org dma_map_single() might not return a 4KB aligned address, so add the default_data as driver data for FSD PCIe controllers to make it 4KB aligned. Signed-off-by: Shradha Todi --- drivers/misc/pci_endpoint_test.c | 3 +++ include/linux/pci_ids.h | 2 ++ 2 files changed, 5 insertions(+) diff --git a/drivers/misc/pci_endpoint_test.c b/drivers/misc/pci_endpoint_test.c index 11530b4ec389..2cd1aaa87966 100644 --- a/drivers/misc/pci_endpoint_test.c +++ b/drivers/misc/pci_endpoint_test.c @@ -983,6 +983,9 @@ static const struct pci_device_id pci_endpoint_test_tbl[] = { { PCI_DEVICE(PCI_VENDOR_ID_FREESCALE, PCI_DEVICE_ID_LS1088A), .driver_data = (kernel_ulong_t)&default_data, }, + { PCI_DEVICE(PCI_VENDOR_ID_TESLA, 0x7777), + .driver_data = (kernel_ulong_t)&default_data, + }, { PCI_DEVICE_DATA(SYNOPSYS, EDDA, NULL) }, { PCI_DEVICE(PCI_VENDOR_ID_TI, PCI_DEVICE_ID_TI_AM654), .driver_data = (kernel_ulong_t)&am654_data diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h index b362d90eb9b0..a29b69e908aa 100644 --- a/include/linux/pci_ids.h +++ b/include/linux/pci_ids.h @@ -158,6 +158,8 @@ #define PCI_VENDOR_ID_LOONGSON 0x0014 +#define PCI_VENDOR_ID_TESLA 0x014a + #define PCI_VENDOR_ID_TTTECH 0x0357 #define PCI_DEVICE_ID_TTTECH_MC322 0x000a -- 2.17.1