Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp557302lqh; Fri, 31 May 2024 09:14:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUeLJiRYDR/2+OOBpe0OwO0IyX4VZe6nANh1aMuMhVLO4W4HWcgrcXjhLxuiVko0ULtYoJS2HCdwqPf8JGyVwCFne+qWy9GY0nLVDPsRA== X-Google-Smtp-Source: AGHT+IFXJHRSf+t/9JP7LCpi3PvEVhP/SCJggaYANTKH/JMddHNUVkJ9nFZw23wWfPObQWmJptVn X-Received: by 2002:a67:ff8d:0:b0:48b:9296:7627 with SMTP id ada2fe7eead31-48bc171e8c5mr2193083137.11.1717172065954; Fri, 31 May 2024 09:14:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717172065; cv=pass; d=google.com; s=arc-20160816; b=cd9UNDsld2xvwEoSCnJ9hytHNMirv/wWP89cm8I+VhGf+v7iAnHuD0jff+fqFLg7YL 2HGSrQJWUxG6wzQaFl4x10ExjpfVqmPrGNaXlrmHWR4jHsGeRl5tEiqTClMrd5FwD2dp dmMERN0Ow6xk0OAQsc8SF3uLaWUCHpnOv6CugzhTu6pxCuZSLCfJEncQ2Ent60sOtah1 Ce2YRGRE9OFHDHKpNLtetQoonWEh5g1Kr8J3ZatR+G2fy13UOOBqhq0E1uidHtnaRLWo DCHhEZPEbkI15EbabmRFUt4lubJeW8YFqIfNcX9lwVOmyCDd1qsyUlVK85idnonUG1j1 EcFw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=9pcEl9M55lrI6aQcGSoBDLIhIuk5i++OCOwZXRusXEo=; fh=wM2kH87fSPrmoSHTaJplGK4woShD25aYG2YFdXRg7t8=; b=iUZAl8Jn0pTTPnXnlxhPOMOq1Ratot7F+KE/jBYW0mPicMKWSPEOAtyIol6PQ+G+Be V5g7oOtK8d8zWiaBYC2OW2EpcQS8zCGaIQdwlOZK4S/QrqVG19rS3t+CB77USpr9IVVB XX8TcqY72tFLSUztAn5ndvVsNVulKpP1As/iYUrnX7+gOXkNLQMW9ktqR6aJkrr0irX6 sLCfKF4sktzKofFCcLX0zpcfSi3+5TkX9httO2Y4wtegbu4fD4GE2ghMdz9xzYs2TEy+ ynyuims6gXylz1VjGtoMKBQAiTmc3MSWmcMHTM/DhrBvFd85NH4JYK7JgUkSOQazIQu1 WcHg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=dNvXwOiT; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-197120-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197120-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id ada2fe7eead31-48bc9d7dbdesi241072137.604.2024.05.31.09.14.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 09:14:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-197120-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=dNvXwOiT; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-197120-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197120-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 973471C23E83 for ; Fri, 31 May 2024 16:14:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ACEAE15AD93; Fri, 31 May 2024 16:13:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="dNvXwOiT" Received: from out-181.mta0.migadu.com (out-181.mta0.migadu.com [91.218.175.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BECA3158D78 for ; Fri, 31 May 2024 16:13:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717172032; cv=none; b=sblDubUmaTEvidrhSzCUxkGD4C7k7Tw5P+vlBXrIm/sP9NirlPDm3w/Uz03VwDMZ1PrMXNaL+AmrewwtEYnajjDmOUAlS4WplnWsMZP1IW16ALxZZ39c98H8GnY40PJeLnHRZG0pT7A6bvWp6S69XvLp8psi/xrdWcX8AOcSRl4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717172032; c=relaxed/simple; bh=vZhBBVl8czJfcB3QyAXJ/jzdXjaM/KONvegUH9JNRgQ=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=aT99DeAkZd3eEgbwM07fJ8qVa8eCegok60kZuVn33dk7DMv3rNvcCZjIOf7ye+5fgl8Y/NJkGtEdlI8efGuc8rjnRyN2o6xSMdHJto8KMWExZQUWarylTKF34U0JMeITcnZZ2kxOrL5Dq5NoykZANRR3ZzXSHAQhmIrWnxm1MvY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=dNvXwOiT; arc=none smtp.client-ip=91.218.175.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev X-Envelope-To: lpieralisi@kernel.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1717172027; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=9pcEl9M55lrI6aQcGSoBDLIhIuk5i++OCOwZXRusXEo=; b=dNvXwOiTb/9FbHUiQ24hdOMu3t1DwGywelWdjk+2NUVmKRtBIpyCrrYtoSlW435aPZUImW xzraYG7o0qWposzy2mO2QwNEtTKiLsSZpRUvsA1c0szkKJfXdi0x+KGI5jPMEtlulrKYb4 b2gMAZs+ZkKiViisJ+mEtCNS0Dfh0Lc= X-Envelope-To: kw@linux.com X-Envelope-To: robh@kernel.org X-Envelope-To: linux-pci@vger.kernel.org X-Envelope-To: thippeswamy.havalige@amd.com X-Envelope-To: linux-arm-kernel@lists.infradead.org X-Envelope-To: markus.elfring@web.de X-Envelope-To: dan.carpenter@linaro.org X-Envelope-To: linux-kernel@vger.kernel.org X-Envelope-To: bhelgaas@google.com X-Envelope-To: michal.simek@amd.com X-Envelope-To: sean.anderson@linux.dev X-Envelope-To: bharat.kumar.gogada@xilinx.com X-Envelope-To: bharatku@xilinx.com X-Envelope-To: helgaas@kernel.org X-Envelope-To: conor+dt@kernel.org X-Envelope-To: krzysztof.kozlowski+dt@linaro.org X-Envelope-To: lorenzo.pieralisi@arm.com X-Envelope-To: michal.simek@xilinx.com X-Envelope-To: devicetree@vger.kernel.org X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Sean Anderson To: Lorenzo Pieralisi , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= , Rob Herring , linux-pci@vger.kernel.org Cc: Thippeswamy Havalige , linux-arm-kernel@lists.infradead.org, Markus Elfring , Dan Carpenter , linux-kernel@vger.kernel.org, Bjorn Helgaas , Michal Simek , Sean Anderson , Bharat Kumar Gogada , Bharat Kumar Gogada , Bjorn Helgaas , Conor Dooley , Krzysztof Kozlowski , Lorenzo Pieralisi , Michal Simek , devicetree@vger.kernel.org Subject: [PATCH v4 0/7] PCI: xilinx-nwl: Add phy support Date: Fri, 31 May 2024 12:13:30 -0400 Message-Id: <20240531161337.864994-1-sean.anderson@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT Add phy subsystem support for the xilinx-nwl PCIe controller. This series also includes several small fixes and improvements. Changes in v4: - Clarify dt-bindings commit subject/message - Explain likely effects of the off-by-one error - Trim down UBSAN backtrace - Move if to after pci_host_probe - Remove if in err_phy - Fix error path in phy_enable skipping the first phy - Disable phys in reverse order - Use dev_err instead of WARN for errors Changes in v3: - Document phys property - Expand off-by-one commit message Changes in v2: - Remove phy-names - Add an example - Get phys by index and not by name Sean Anderson (7): dt-bindings: pci: xilinx-nwl: Add phys property PCI: xilinx-nwl: Fix off-by-one in IRQ handler PCI: xilinx-nwl: Fix register misspelling PCI: xilinx-nwl: Rate-limit misc interrupt messages PCI: xilinx-nwl: Clean up clock on probe failure/removal PCI: xilinx-nwl: Add phy support arm64: zynqmp: Add PCIe phys .../bindings/pci/xlnx,nwl-pcie.yaml | 7 + .../boot/dts/xilinx/zynqmp-zcu102-revA.dts | 1 + drivers/pci/controller/pcie-xilinx-nwl.c | 139 +++++++++++++++--- 3 files changed, 124 insertions(+), 23 deletions(-) -- 2.35.1.1320.gc452695387.dirty