From nobody Wed Dec 17 21:02:27 2025 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DCC891A8401 for ; Fri, 14 Mar 2025 09:38:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=211.75.126.72 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741945136; cv=none; b=qjOoLpf43WNeHizrJZabNFTRpEbxDa2wPvJ/Z/agTE6y0a4smcyiI2CK6w2ZAbluLshkbmhxyqxazpFvBPYem16625ouf5YraimQxDhYcu91hU0DxaylNLu+oLmMJEUP9lYH/v+51LtKjgalfSOgWA6eH8Q5f6J0bkJt5+UJCWU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741945136; c=relaxed/simple; bh=Zy4ENLi/Fj53oOnr6AF0AyeVaoAeYA5yVcfxCGdbmXQ=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; b=WZKYkMqlrOm0yqzH7Xs7nxlcCrCDS1oaWEesVJMKEpuMx1qOTePefXgVmu7GLqG5syDvwFGZYwj5AoUaztGv/cHw0iYbVevuHWFpx5tBz+m6ofaJSc00M9Bq8AFwN6kejG/fHtppOJ529ih5+su7PFLWMxTzBnsTu9yAKLmqnjU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=realtek.com; spf=pass smtp.mailfrom=realtek.com; dkim=temperror (0-bit key) header.d=realtek.com header.i=@realtek.com header.b=o7WAx+F6; arc=none smtp.client-ip=211.75.126.72 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=realtek.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=realtek.com Authentication-Results: smtp.subspace.kernel.org; dkim=temperror (0-bit key) header.d=realtek.com header.i=@realtek.com header.b="o7WAx+F6" X-SpamFilter-By: ArmorX SpamTrap 5.78 with qID 52E9cAshD2851705, This message is accepted by code: ctloc85258 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=realtek.com; s=dkim; t=1741945090; bh=Zy4ENLi/Fj53oOnr6AF0AyeVaoAeYA5yVcfxCGdbmXQ=; h=From:To:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:Content-Type; b=o7WAx+F6MklU7lgchUT6+3QGMkE3tWAh5mPwcykPUwb3f1JRq9LBJ7XWMu1XRQPcQ azXPpK4tF5xBHIjgFfGm6HSjnOukGQiTCODCBJGAgkjgbNcB7y25uJwKPhQpijygyQ R1VSUIfmdNk8/dN8bh8LSmTQLlNFm19DqU7/PpjdO4fvpQSjulIRRu5ORmJ2qDDO4k ASGRZk4PECQEdzXOQ7RKn1B7f28q0EBRL1knLQe/sw6N1dGe1j+VnXBy/TK1K+w9o0 mto8DNrkeN29yYRODSevherXv09GedObI1ZsaPnleP8ipozHSWqmxLEfP5elcQq3sW fhStk8Yjztd4w== Received: from mail.realtek.com (rtexh36505.realtek.com.tw[172.21.6.25]) by rtits2.realtek.com.tw (8.15.2/3.06/5.92) with ESMTPS id 52E9cAshD2851705 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 14 Mar 2025 17:38:10 +0800 Received: from RTEXDAG02.realtek.com.tw (172.21.6.101) by RTEXH36505.realtek.com.tw (172.21.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Fri, 14 Mar 2025 17:38:10 +0800 Received: from RTEXH36505.realtek.com.tw (172.21.6.25) by RTEXDAG02.realtek.com.tw (172.21.6.101) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Fri, 14 Mar 2025 17:38:09 +0800 Received: from localhost (172.22.144.1) by RTEXH36505.realtek.com.tw (172.21.6.25) with Microsoft SMTP Server id 15.1.2507.39 via Frontend Transport; Fri, 14 Mar 2025 17:38:09 +0800 From: Ricky Wu To: , , , Subject: [PATCH] misc: rtsx: Enhance the signal handling processes in SVID/SSID 1028:0CE1 platform Date: Fri, 14 Mar 2025 17:37:58 +0800 Message-ID: <20250314093758.663126-1-ricky_wu@realtek.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This patch introduces improvements to the signal handling processes on the SVID/SSID 1028:0CE1 platform. By optimizing signal handling processes we aim to deliver a more stable and reliable user experience. The enhancements ensure robust connectivity and enhance signal process performance. We have conducted extensive testing to ensure these modifications result in noticeable improvements without impacting existing functionalities. Signed-off-by: Ricky Wu --- drivers/misc/cardreader/rts5264.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/drivers/misc/cardreader/rts5264.c b/drivers/misc/cardreader/rt= s5264.c index 8be4ed7d9d47..06d7a8a95fd6 100644 --- a/drivers/misc/cardreader/rts5264.c +++ b/drivers/misc/cardreader/rts5264.c @@ -605,6 +605,22 @@ static int rts5264_extra_init_hw(struct rtsx_pcr *pcr) return 0; } =20 +static int rts5264_optimize_phy(struct rtsx_pcr *pcr) +{ + u16 subvendor, subdevice, val; + + subvendor =3D pcr->pci->subsystem_vendor; + subdevice =3D pcr->pci->subsystem_device; + + if ((subvendor =3D=3D 0x1028) && (subdevice =3D=3D 0x0CE1)) { + rtsx_pci_read_phy_register(pcr, _PHY_REV0, &val); + if ((val & 0xFE00) > 0x3800) + rtsx_pci_update_phy(pcr, _PHY_REV0, 0x1FF, 0x3800); + } + + return 0; +} + static void rts5264_enable_aspm(struct rtsx_pcr *pcr, bool enable) { u8 val =3D FORCE_ASPM_CTL0 | FORCE_ASPM_CTL1; @@ -682,6 +698,7 @@ static const struct pcr_ops rts5264_pcr_ops =3D { .turn_on_led =3D rts5264_turn_on_led, .turn_off_led =3D rts5264_turn_off_led, .extra_init_hw =3D rts5264_extra_init_hw, + .optimize_phy =3D rts5264_optimize_phy, .enable_auto_blink =3D rts5264_enable_auto_blink, .disable_auto_blink =3D rts5264_disable_auto_blink, .card_power_on =3D rts5264_card_power_on, --=20 2.25.1