mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Manivannan Sadhasivam <mani@kernel.org>
To: Tapas Rana <tapas.rana@oss.qualcomm.com>
Cc: Vinod Koul <vkoul@kernel.org>,
	 Neil Armstrong <neil.armstrong@linaro.org>,
	 Manivannan Sadhasivam <mani@kernel.org>,
	 Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>,
	 Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>,
	 Wesley Cheng <wesley.cheng@oss.qualcomm.com>,
	 Elson Serrao <elson.serrao@oss.qualcomm.com>,
	 Krishna Kurapati <krishna.kurapati@oss.qualcomm.com>,
	 Prashanth K <prashanth.k@oss.qualcomm.com>,
	linux-phy@lists.infradead.org,  linux-arm-msm@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] phy: qcom: m31-eusb2: Add register XCFGI_199_192 for HS disconnect mask
Date: Fri, 27 Nov 2026 16:22:12 +0530	[thread overview]
Message-ID: <179577673235.3421.1721263701456802634.b4-reply@b4> (raw)
In-Reply-To: <20261118143406.2351999-1-tapas.rana@oss.qualcomm.com>

On 2026-11-18 20:04 +0530, Tapas Rana wrote:
> In USB 2.0 High-Speed, a device disconnect is detected by the host PHY's
> analog HS disconnect envelope detector: it watches the differential line
> amplitude and flags a disconnect when the amplitude exceeds a threshold
> during the bus idle/EOP window (a disconnected cable reflects the host's
> own drive back, roughly doubling the observed amplitude).
> 
> While the host itself is transmitting, the line is already driven hard,
> and trace reflections / signal-integrity overshoot can momentarily push
> the measured amplitude above that threshold even though the device is
> still attached. With the detector honoured during TX, the M31 PHY latches
> a spurious HS disconnect mid-transfer, showing up as false
> disconnect/reconnect events, re-enumeration and transfer stalls under
> host-TX-heavy load (e.g. bulk OUT to mass storage). The failure is
> signal-integrity dependent, so it is intermittent and board/cable
> specific.
> 
> Program the XCFGI_199_192 register to set XCFG_HS_DISCONNECT_EN_TX
> (bit 196), which makes the PHY ignore the host disconnect status while in
> TX mode; disconnect detection continues to work normally when the host is
> not transmitting, which is when a real disconnect must be observed. This
> register was not programmed previously, leaving the envelope detector
> active during TX. Add this bit to the reset sequence to suppress the
> spurious TX-time disconnects.
> 
> Fixes: 9c8504861cc4 ("phy: qcom: Add M31 based eUSB2 PHY driver")
> Signed-off-by: Tapas Rana <tapas.rana@oss.qualcomm.com>

Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>

- Mani



      reply	other threads:[~2026-11-27 10:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-18 14:34 Tapas Rana
2026-11-27 10:52 ` Manivannan Sadhasivam [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179577673235.3421.1721263701456802634.b4-reply@b4 \
    --to=mani@kernel.org \
    --cc=dmitry.baryshkov@oss.qualcomm.com \
    --cc=elson.serrao@oss.qualcomm.com \
    --cc=konrad.dybcio@oss.qualcomm.com \
    --cc=krishna.kurapati@oss.qualcomm.com \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-phy@lists.infradead.org \
    --cc=neil.armstrong@linaro.org \
    --cc=prashanth.k@oss.qualcomm.com \
    --cc=tapas.rana@oss.qualcomm.com \
    --cc=vkoul@kernel.org \
    --cc=wesley.cheng@oss.qualcomm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®