From: Rustam Adilov <adilov@disroot.org>
To: Vladimir Oltean <olteanv@gmail.com>
Cc: Vinod Koul <vkoul@kernel.org>,
Neil Armstrong <neil.armstrong@linaro.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Stanley Chang <stanley_chang@realtek.com>,
linux-phy@lists.infradead.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org,
Michael Zavertkin <misha.zavertkin@mail.ru>
Subject: Re: [PATCH v5 5/6] phy: realtek: usb2: add support for RTL9607C USB2 PHY
Date: Tue, 05 May 2026 18:10:42 +0000 [thread overview]
Message-ID: <9de0dcc209eab02d2a4e5fcec25e7711@disroot.org> (raw)
In-Reply-To: <20260505113001.idgj7ssikjgcypa2@skbuf>
On 2026-05-05 11:30, Vladimir Oltean wrote:
> On Tue, Apr 21, 2026 at 12:19:40AM +0500, Rustam Adilov wrote:
>> Add support for the usb2 phy of RTL9607C series based SoCs.
>> Add the macros and phy config struct for rtl9607.
>>
>> RTL9607C requires to clear a "force host disconnect" bit in the
>> specific register (which is at an offset from reg_wrap_vstatus)
>> before proceeding with phy parameter writes. Since it belongs into
>> the vstatus register region, it doesn't need bytes swapping.
>>
>> Add the bool variable to the driver data struct and hide this whole
>> procedure under the if statement that checks this new variable.
>>
>> Add the appropriate little endian read and write functions for rtl9607
>> and assign them to its phy config struct.
>>
>> As mentioned earlier, the readl/writel are native endian on MIPS arch
>> if SWAP_IO_SPACE is not enabled. Since enabling SWAP_IO_SPACE results
>> in boot hang on RTL9607C machine, wrapping le32 around readl/writel
>> should be a good compromise, but swab32 could be also work.
>>
>> Co-developed-by: Michael Zavertkin <misha.zavertkin@mail.ru>
>> Signed-off-by: Michael Zavertkin <misha.zavertkin@mail.ru>
>> Signed-off-by: Rustam Adilov <adilov@disroot.org>
>> ---
>
> Have you considered ioread32() instead of wrapping le32 around readl()?
I think you meant ioread32be() and yes i have considered it. If this is what
it takes to get rid of le32 warning you mentioned from an earlier email then
so be it.
next prev parent reply other threads:[~2026-05-05 18:10 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-20 19:19 [PATCH v5 0/6] phy: realtek: usb2: support for RTL9607C USB2 PHY Rustam Adilov
2026-04-20 19:19 ` [PATCH v5 1/6] phy: realtek: usb2: introduce vstatus/new_reg_req variables to driver data Rustam Adilov
2026-04-20 19:19 ` [PATCH v5 2/6] phy: realtek: usb2: introduce read and write functions " Rustam Adilov
2026-04-20 19:19 ` [PATCH v5 3/6] dt-bindings: phy: realtek,usb2phy.yaml: extend for resets and RTL9607C support Rustam Adilov
2026-04-21 7:10 ` Krzysztof Kozlowski
2026-04-20 19:19 ` [PATCH v5 4/6] phy: realtek: usb2: introduce reset controller struct Rustam Adilov
2026-04-20 19:19 ` [PATCH v5 5/6] phy: realtek: usb2: add support for RTL9607C USB2 PHY Rustam Adilov
2026-05-05 11:20 ` Vladimir Oltean
2026-05-05 11:30 ` Vladimir Oltean
2026-05-05 18:10 ` Rustam Adilov [this message]
2026-05-05 19:25 ` Vladimir Oltean
2026-04-20 19:19 ` [PATCH v5 6/6] phy: realtek: Make configs available for MACH_REALTEK_RTL Rustam Adilov
2026-04-21 7:09 ` [PATCH v5 0/6] phy: realtek: usb2: support for RTL9607C USB2 PHY Krzysztof Kozlowski
2026-04-21 14:17 ` Rustam Adilov
2026-05-05 11:37 ` Vladimir Oltean
2026-05-05 18:39 ` Rustam Adilov
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=9de0dcc209eab02d2a4e5fcec25e7711@disroot.org \
--to=adilov@disroot.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-phy@lists.infradead.org \
--cc=misha.zavertkin@mail.ru \
--cc=neil.armstrong@linaro.org \
--cc=olteanv@gmail.com \
--cc=robh@kernel.org \
--cc=stanley_chang@realtek.com \
--cc=vkoul@kernel.org \
/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