From patchwork Mon Oct 5 08:56:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jisheng Zhang X-Patchwork-Id: 11816355 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4D73B14F7 for ; Mon, 5 Oct 2020 09:16:43 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 11FEF206C3 for ; Mon, 5 Oct 2020 09:16:43 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="DumEije+"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=Synaptics.onmicrosoft.com header.i=@Synaptics.onmicrosoft.com header.b="M7ghYFMB" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 11FEF206C3 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=synaptics.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-ID:Subject:To:From:Date: 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=1KQ8MUst/CiDulnxKtT9PsAsmdSdW66eoUDi7gZSIoc=; b=DumEije+DQGHKu3mf1WEtHjzZz KtB1633M3FKcwx/QtVZZeqxHEYu+NtKo/QvXvAJPx14kvlWsPvSeApXl3FmMzYJiOyjuerYOJcuIP nFQezZYkpljssUachT/YP1uQYttx/N5YJPbbAKAddlNS01sOlGzwsYGAghlECpBCqHyx47lTGD5Hb Jc20EbnLcJCAxCl8vVw8AY6tO0iwsByaKb9mehqZymixV9mp0GmCntNDkVd9qsj+FMYxBhAEZI7HT gjR8mBWDtp/l4+g1c5fWHXvF9TNJOq3oXZnDYNcor3oG8Zmed4h1e2QJIMK9D+UVEaF6R+gvM8Ppf C5o5i4KA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kPMbe-00077N-5V; Mon, 05 Oct 2020 09:16:30 +0000 Received: from mail-eopbgr680071.outbound.protection.outlook.com ([40.107.68.71] helo=NAM04-BN3-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kPMba-00076A-Ns for linux-arm-kernel@lists.infradead.org; Mon, 05 Oct 2020 09:16:28 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ErR+hzTbhVfsPwPC5l7xcK0WhpfCf+AjwDuZIp0ridc0NM37Ok/hnjrl18jk7NnWvV22kpioy+jr/GxhUtA5bZbXYRfBjMhsosKz+d3WkYqvrJP2jN/YDvL9fp9QjLWHobOkYmtun+Kp+eUbMUy2XynR2z58VwFE22CxgI5S8Nz40zGDshlq+NHHxxY2nlRn16v1YNS4YtJDYDS8R9zvZSx5z1LGNW5iq/Zo7SafOVDYnsRHd3YTTaf9X3iRp7kzCaPKBSboXTO7qEMU9BjgHt8lzqkQjGhyXYpZSmV2eKBVKYjkPA4qMbHpv4IkHyAImagrIU7XRdZm/1Sc0tDwsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XEPfIZpaoOPBJOy+x6w9JF5nh5k0AGs+Z4AhvgdBQLc=; b=nUz6xn5sTaKHQpC0RRckBIvkF9QKFRE3ogyTV82zjgA/GK5yvVpwR17H4EYrB2O3FALdG2EUMV5prPQFMfobtwHYRmRLYZOK3An/+GXRfe++mfebhzc+85rURub9COJMK90XJe62Qb6XioSTzqt9DJdbkF+GaE2rnC1/R6+9qmgf4LhWb7y5Gg5GpFnpSxsqiyNUDowO+lw9rUhPKJ14v0unEY0qXPLWlD67WYj9dkNybP0tErvLnYp9P944QSK+F0X1LUkoCWuEyIJf/OtO4XtJHvRYUmiRYm1kavyIsV4mv9+G67sHsB1NFODolV6FBike1ALW9/sz7N+P3CzKfA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=synaptics.com; dmarc=pass action=none header.from=synaptics.com; dkim=pass header.d=synaptics.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Synaptics.onmicrosoft.com; s=selector2-Synaptics-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XEPfIZpaoOPBJOy+x6w9JF5nh5k0AGs+Z4AhvgdBQLc=; b=M7ghYFMBD40ZR4eisO08iwov5R1ae+OGzd1ypikgm+U48vvTsGY5BKJXxeWdr725Kyd/9kb1CIUvcrWJn57J8CqCorLJWR7ypUFIi6mWzBR0Y+6fQ/Eh3oURkVyZwyT49vQctFKhVdbcjZfSURu1FzLHcvHB9zsNKfO3IxNsNi0= Authentication-Results: nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=none action=none header.from=synaptics.com; Received: from DM6PR03MB4555.namprd03.prod.outlook.com (2603:10b6:5:102::17) by DS7PR03MB5560.namprd03.prod.outlook.com (2603:10b6:5:2d0::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3433.32; Mon, 5 Oct 2020 09:16:22 +0000 Received: from DM6PR03MB4555.namprd03.prod.outlook.com ([fe80::e494:740f:155:4a38]) by DM6PR03MB4555.namprd03.prod.outlook.com ([fe80::e494:740f:155:4a38%7]) with mapi id 15.20.3433.044; Mon, 5 Oct 2020 09:16:22 +0000 Date: Mon, 5 Oct 2020 16:56:57 +0800 From: Jisheng Zhang To: Richard Zhu , Lucas Stach , Lorenzo Pieralisi , Rob Herring , Bjorn Helgaas , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Jonathan Chocron , Jingoo Han , Gustavo Pimentel Subject: [PATCH dwc-next 0/3] PCI: dwc: remove useless dw_pcie_ops Message-ID: <20201005165657.0fd31b10@xhacker.debian> X-Mailer: Claws Mail 3.17.6 (GTK+ 2.24.32; x86_64-pc-linux-gnu) X-Originating-IP: [124.74.246.114] X-ClientProxiedBy: TYAPR01CA0070.jpnprd01.prod.outlook.com (2603:1096:404:2b::34) To DM6PR03MB4555.namprd03.prod.outlook.com (2603:10b6:5:102::17) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from xhacker.debian (124.74.246.114) by TYAPR01CA0070.jpnprd01.prod.outlook.com (2603:1096:404:2b::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3433.34 via Frontend Transport; Mon, 5 Oct 2020 09:16:18 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d9296379-d199-428d-fc04-08d8690f53be X-MS-TrafficTypeDiagnostic: DS7PR03MB5560: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:644; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Nx+x/nJdE2mzKa4MeNTcU4PyHmz9N0m1NQvaJzP5gcEaMurQOcfwMjL1HIfucU0iMxO7bqzeKfnl7jbL5+P7ziyePpjUx5gk+txHBHA0ioQKTHoa2sCw4ZKG8MExFP3maEGmgj1JMXtgV6OSZeVc+GGMBRRRH8jIrZWcPjvpZGFDGp6ce6OR9+sDJzTGH8DMFQO5ELy+3SrDB1/Pk/uhBRrTCCnjZAo/UGSmW+UidgWHn4CpWCsGzhG3SH4n5pyAnEfaGzNEPzRD0ft28ymk4mKTbezsnbiYi+68Zby06QXGDIgYTx93Ho7WM24Eu2ZdTl/z4AwMn9cpb9aGPtIOJXhPNhN1oLqJPW3Dhhq/mf3aF0EPvvyZG8yjbKM3glZ7 X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR03MB4555.namprd03.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(39850400004)(396003)(346002)(376002)(136003)(2906002)(8936002)(9686003)(16526019)(66946007)(66556008)(66476007)(186003)(26005)(8676002)(7416002)(55016002)(83380400001)(4744005)(1076003)(5660300002)(6666004)(478600001)(52116002)(7696005)(316002)(110136005)(6506007)(4326008)(956004)(86362001)(921003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: Zrqi1vu5HPXYVA0DkLno1ivWmcOvIGmhKsDyk2fGVi8YulKRzhVNtA03MIUu7SwptajGiFpEVMJr7H6WTOO0wjsdZDAkO9HCLaxqiw/kaKjPnhim8B8GUtZ5nxy/+GCpnINyPMpjffwA2rUR+crxNdbd9S06j5FECaeT5OTj4vR2VcpSklzhMaRadtb/qtLnK2+qKUdA0HmsdA7evNXgEOv1IuGovZtbrNY3FRtJtLq1zfnrW6ViPN60HhD0KALD8eSwg6rEgoETxWAWD9QhFi4F9OruoB+YIzPuSScbHs3POij6/sVMwrDVqhKVRVZzHg9WL/vO2DYHuP+/UA3HppUrALxk5hsPF8A2rXVdO3zGBwIOJP5kNgEom2Z5NiS+px7c9suS7hnERAvLeXmg4FU30CNwTAmpNE1spHWDyJYmPjU05tX/UqLH9pdbYxo+SU5eFWeIetxLUM8hscsX6e22pGomthVK8BlXCz/iZL5f8FxPSodESHDomctLNDG7yb0Gh/y41Tj7GJDDxOxl3ahQOMFMXWbOyEwFvaEmTi2ycAU/le/7pT8rbbs/NStaZeQmVbnVq+jvGvp7op8jXOomQPz5JkSAIv1tL77TIgw4+UHUeLVYdXKfiVOpeZ0V8/Axk9EVcoSwWhO95l610g== X-OriginatorOrg: synaptics.com X-MS-Exchange-CrossTenant-Network-Message-Id: d9296379-d199-428d-fc04-08d8690f53be X-MS-Exchange-CrossTenant-AuthSource: DM6PR03MB4555.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Oct 2020 09:16:22.5485 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 335d1fbc-2124-4173-9863-17e7051a2a0e X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: NkNXXQfV4dWz4cc7KQFSbPpSMcwZuPzLVHhtXaBfLKOAYz8p4JBYWTTRHZ1/qWT5pOm9D1J5lyK3GH12WEN1nw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR03MB5560 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201005_051626_786978_9475B07E X-CRM114-Status: UNSURE ( 7.17 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [40.107.68.71 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [40.107.68.71 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid 0.0 MSGID_FROM_MTA_HEADER Message-Id was added by a relay X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-pci@vger.kernel.org, NXP Linux Team , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Some designware based device driver especially host only driver may work well with the default read_dbi/write_dbi/link_up implementation in pcie-designware.c, thus remove the assumption to simplify those drivers. Jisheng Zhang (3): PCI: dwc: Don't assume the ops in dw_pcie always exists PCI: dwc: al: Remove useless dw_pcie_ops PCI: dwc: imx6: Remove useless dw_pcie_ops drivers/pci/controller/dwc/pci-imx6.c | 5 ----- drivers/pci/controller/dwc/pcie-al.c | 4 ---- drivers/pci/controller/dwc/pcie-designware-ep.c | 8 +++----- drivers/pci/controller/dwc/pcie-designware.c | 14 +++++++------- 4 files changed, 10 insertions(+), 21 deletions(-)