Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp189417lqp; Thu, 4 Apr 2024 10:12:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX/jJnMs3sX9rh8uwT82m8aKGiJ4WxnqAmrtHfqBbsT5WGTNGZQV0PQVjJIKq8kyHO1ZuFzzTqYIMg1erhHHYamqTjiEJgH/dBXkWdD2w== X-Google-Smtp-Source: AGHT+IFCDYZwaJTAI1YmwK43kxAjPdKLkpLnW0AHZGyfT+h20+kHdvrfz/xdnw742Vs1Dk1hswUS X-Received: by 2002:a05:6214:2a4a:b0:699:b34:783f with SMTP id jf10-20020a0562142a4a00b006990b34783fmr3231780qvb.62.1712250723722; Thu, 04 Apr 2024 10:12:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712250723; cv=pass; d=google.com; s=arc-20160816; b=wBPieLT+L7IiuCPNOldu4GV3hP5zlNgPaDhirVzG05m0yVypvGWtYPh6+n0XRbHWAX tYs1OtTf4XH6zhs5VO2y9eqad5DVzzmEMO2zfYL00ghPtO7X1wX0Z2YyBXC5eZ4xGDVm My5xtTS8KBAIyy5v3MNsDjFC33h+IkoCYCpOw51d0SsqUAGKwM63zBLs4FZYic5d+ZnS K+OoAIbywSV6BYkB2BNN28RTWjFWav0+/5ny6PyuCr4RWR7FniXJdHZC5kBWgJOcDvGC 8jwp3ZS0vGcRI3rdE+K6PFxNDo4uUeb5/eOuoBBRFKIzQBEEoCRHw6GXaK4/1cry0/hn AOwQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:from :dkim-signature; bh=KcQniB560eI7NoN+Qwgu7t3giPMA9zUrVIxG5ilTNls=; fh=cAi5A9VkMLTF2ITBV4+x5ITiy1nCauMhQQfP9MY31G8=; b=bSf0JIP8K8gnaFEeYthuR1R4bY8IWXnkqOzrN2x4Xef+vncxs09yiatF5aZ68ZcO9j moYeXZx6l2rZ6evDoz7ZxFbEX22AO/fJoXOq+ty8rlu3Ekynwyt3pUqUYlPSZlHrE1bV yMg9NrIhNt0rCV73hfHF+9RndWbCYQuVIRhNHN0EmOLv+3YikY/bdbKAdFzpL+WKQMmo HU5UwK0nnRkIsj0ogvMSd4cl8j/ewNFJnaK0Sx4adbRgAGuGB1pBWbChpdzy2jikaTKQ cHaMgDAr6FS9krKBCH+4dbmA5CQXmQZnH/F0qL/EVp1UV7WRFlsu359JORIZ3f2sz9f2 J41A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uzEfgWlg; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-131875-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131875-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id y11-20020a0cff4b000000b00696b338e92bsi16684415qvt.24.2024.04.04.10.12.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 10:12:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-131875-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uzEfgWlg; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-131875-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131875-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 709411C221A8 for ; Thu, 4 Apr 2024 17:12:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7DE2212DDBD; Thu, 4 Apr 2024 17:11:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="uzEfgWlg" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 A4A2312AAE7 for ; Thu, 4 Apr 2024 17:11:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712250708; cv=none; b=tcJ6le90FjmZt39l26OBBQuNt4CFoaXIsR9b+TRNbrtNIhlSGY1IDFvQ6go3Xj5L62V76eU63z/u1wsWbalK1odkYbX6aIdmIObdNDKadg7Tkhj0pU0lV5rVhGPDrEB3XANT54Xo2TgdGH7zFhN93+4Q4lY+68kEkd/VNR2RLA0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712250708; c=relaxed/simple; bh=ZrgcSHpGCQoN5N8qPeV22f/8t4IZfslpGaFuTJpFcPs=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=a2jWzV1fijAqGkV4MO5lqcgusbscchiAVEzi94qr5v7l9rrY9d5h05GWRkh1xAyMX76yJF+VFunq/wAHaEQOb6Fwvp2iFG9DkNfW19BrwbJT1njzCeQTvBD5/FWnJUhHyCJocyeMCrS9Amj78yHh1mA4rDJ8GyoV8xPsgRcE1W8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=uzEfgWlg; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2F892C43390; Thu, 4 Apr 2024 17:11:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712250708; bh=ZrgcSHpGCQoN5N8qPeV22f/8t4IZfslpGaFuTJpFcPs=; h=From:Subject:Date:To:Cc:From; b=uzEfgWlgw47Pq+WsM1VOxwvSuyt0pJTWNoqjrd4BhETKLVlcSN+huDAOmmty31nfE v+p21gVdWW7STTzbLJm863X0GzdbTeNcOOD5Va3B5FV17Qtwdcn2DZQbm4ioVp1pzr jzZfgV1e7j17UmrDtsUdk/GhGw906OPegsPFDHlIR7CpcZxcU4V0HkI/EE49+ANzyk EFbbEJzOwU+saG2TIYMJcJ/p7ZCWD2ArYw+HFBBDCEvuJhphiplk934/FQMAASHLqk WhFYMOCsVxZ6lavqHue8Jfwv7A5CJKeoDA87yf1L1RjDGX2rKV0gJwqdxTIPp1Invi fqBh+WE+JuaqQ== Received: by jupiter.universe (Postfix, from userid 1000) id F1B8A4800CD; Thu, 4 Apr 2024 19:11:45 +0200 (CEST) From: Sebastian Reichel Subject: [PATCH 0/3] RK3588 PCIe bifurcation fixes Date: Thu, 04 Apr 2024 19:11:25 +0200 Message-Id: <20240404-rk3588-pcie-bifurcation-fixes-v1-0-9907136eeafd@kernel.org> 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: 7bit X-B4-Tracking: v=1; b=H4sIAD3fDmYC/x2MSwqDQBAFryK9tsHPmKhXERfj+EwaQaXHBEG8u 428VfGoOilCBZHa5CTFX6Ksi0GeJhS+fvmAZTSmIitcZmOdy6queQsCHmT6afC7OTzJgcjunaN 5DY0b4ckam+I5LNH113UDK9I+oG8AAAA= To: Vinod Koul , Kishon Vijay Abraham I , Heiko Stuebner Cc: Shawn Lin , Michal Tomek , linux-phy@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Sebastian Reichel X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=929; i=sre@kernel.org; h=from:subject:message-id; bh=ZrgcSHpGCQoN5N8qPeV22f/8t4IZfslpGaFuTJpFcPs=; b=owJ4nAFtApL9kA0DAAoB2O7X88g7+poByyZiAGYO30sVW9U7eD3x3exYnO0IKAUJ4oUHm/4pp 6N85UZ8gM4H44kCMwQAAQoAHRYhBO9mDQdGP4tyanlUE9ju1/PIO/qaBQJmDt9LAAoJENju1/PI O/qabL8QAIylHe4eCyMwjHtR4I6P2Ktf16wYoPbP/bWu1iODtubvwdPhGy4g1BZVpXRMiYAOnLC ZdGk2Z9OEw5FDYCCAZ60Ab6y4Veib9dufSE/CSgIlGWdB0BVdAG7tvLtayt+o8yIsxzaZi0yues 7CuIpoCTkYApBzpH8Fn+AlBZdFXsqMo37OImSXYeoKOXwOckOKh3WifsWaUOH0EBvexx5vZcG3j fLMWKEn5nrKt6EqW031cxhpXFyleWDoT3L9gGBMkZj203KGoEVo7tobP68sYLKc9v2kAum57BS7 0jRpdt+trxn9VguzfbBhhgyh3GWG2kVFIkaTiY21tuZ4XdGC67COjmt4rZlVqfqdUk+ZVCLEKey jWTqvdObTtEzOwOTrPDSXr1tFCK8FjoKGN9evawN5cfUG+CsZ9MKEmTUN/V+2Mar0tL2UUkyGLS lSMR6LdZUcSfaxo63l2q/sUV49t+fSRqGzzaOTX97piSXY+hgdvMpJUM5AiOYbIlkVgqLjmBiLu dGdfTY67N6qksrrqfsjDpbKxE3uZpVn7GiKVt3W9Bl8QSSvC10aGPKxhu4oefi4vKbIQ9QYpLWB RcEAO5YmZlXxA/B9pdL/4bQxrwxpq6wTpjz/kBGlR1ekWCww1bwdNZzEo6vJIJShDXomPvvzgKS PH/kHjld61ob5QZWV4iw4IA== X-Developer-Key: i=sre@kernel.org; a=openpgp; fpr=EF660D07463F8B726A795413D8EED7F3C83BFA9A So far the RK3588 boards supported upstream do not make use of bifurcation, so it went unnoticed that this feature is broken. Michal Tomek tried getting a CM3588 running and noticed some problems. These patches fix the bifurcation problems on CM3588 and also work fine on Rock 5B and EVB1. --- Michal Tomek (1): phy: rockchip-snps-pcie3: fix bifurcation on rk3588 Sebastian Reichel (2): phy: rockchip-snps-pcie3: fix clearing PHP_GRF_PCIESEL_CON bits phy: rockchip: naneng-combphy: Fix mux on rk3588 drivers/phy/rockchip/phy-rockchip-naneng-combphy.c | 36 ++++++++++++++++++++-- drivers/phy/rockchip/phy-rockchip-snps-pcie3.c | 31 ++++++++----------- 2 files changed, 46 insertions(+), 21 deletions(-) --- base-commit: 4cece764965020c22cff7665b18a012006359095 change-id: 20240404-rk3588-pcie-bifurcation-fixes-471e96b94dea Best regards, -- Sebastian Reichel