<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/drivers/misc/cardreader/rts5261.c, branch linux-rolling-stable</title>
<subtitle>Hosts the 0x221E linux distro kernel.</subtitle>
<id>https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-rolling-stable</id>
<link rel='self' href='https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-rolling-stable'/>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/'/>
<updated>2023-10-06T11:16:20Z</updated>
<entry>
<title>misc: rtsx: Fix some platforms can not boot and move the l1ss judgment to probe</title>
<updated>2023-10-06T11:16:20Z</updated>
<author>
<name>Ricky WU</name>
<email>ricky_wu@realtek.com</email>
</author>
<published>2023-09-20T09:11:19Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=f8d2e6429139ee120f412f47957ebee3604f0b6f'/>
<id>urn:sha1:f8d2e6429139ee120f412f47957ebee3604f0b6f</id>
<content type='text'>
commit 0e4cac557531a4c93de108d9ff11329fcad482ff upstream.

commit 101bd907b424 ("misc: rtsx: judge ASPM Mode to set PETXCFG Reg")
some readers no longer force #CLKREQ to low
when the system need to enter ASPM.
But some platform maybe not implement complete ASPM?
it causes some platforms can not boot

Like in the past only the platform support L1ss we release the #CLKREQ.
Move the judgment (L1ss) to probe,
we think read config space one time when the driver start is enough

Fixes: 101bd907b424 ("misc: rtsx: judge ASPM Mode to set PETXCFG Reg")
Cc: stable &lt;stable@kernel.org&gt;
Reported-by: Paul Grandperrin &lt;paul.grandperrin@gmail.com&gt;
Signed-off-by: Ricky Wu &lt;ricky_wu@realtek.com&gt;
Tested-By: Jade Lovelace &lt;lists@jade.fyi&gt;
Link: https://lore.kernel.org/r/37b1afb997f14946a8784c73d1f9a4f5@realtek.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>misc: rtsx: judge ASPM Mode to set PETXCFG Reg</title>
<updated>2023-08-04T13:52:43Z</updated>
<author>
<name>Ricky WU</name>
<email>ricky_wu@realtek.com</email>
</author>
<published>2023-07-25T09:10:54Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=101bd907b4244a726980ee67f95ed9cafab6ff7a'/>
<id>urn:sha1:101bd907b4244a726980ee67f95ed9cafab6ff7a</id>
<content type='text'>
ASPM Mode is ASPM_MODE_CFG need to judge the value of clkreq_0
to set HIGH or LOW, if the ASPM Mode is ASPM_MODE_REG
always set to HIGH during the initialization.

Cc: stable@vger.kernel.org
Signed-off-by: Ricky Wu &lt;ricky_wu@realtek.com&gt;
Link: https://lore.kernel.org/r/52906c6836374c8cb068225954c5543a@realtek.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>misc: rtsx: Fix clang -Wsometimes-uninitialized in rts5261_init_from_hw()</title>
<updated>2022-06-10T13:29:17Z</updated>
<author>
<name>Nathan Chancellor</name>
<email>nathan@kernel.org</email>
</author>
<published>2022-05-23T15:05:22Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=bd476c1306ea989d6d9eb65295572e98d93edeb6'/>
<id>urn:sha1:bd476c1306ea989d6d9eb65295572e98d93edeb6</id>
<content type='text'>
Clang warns:

  drivers/misc/cardreader/rts5261.c:406:13: error: variable 'setting_reg2' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized]
          } else if (efuse_valid == 0) {
                     ^~~~~~~~~~~~~~~~
  drivers/misc/cardreader/rts5261.c:412:30: note: uninitialized use occurs here
          pci_read_config_dword(pdev, setting_reg2, &amp;lval2);
                                      ^~~~~~~~~~~~

efuse_valid == 1 is not a valid value so just return early from the
function to avoid using setting_reg2 uninitialized.

Fixes: b1c5f3085149 ("misc: rtsx: add rts5261 efuse function")
Reported-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Reported-by: kernel test robot &lt;lkp@intel.com&gt;
Reported-by: Tom Rix &lt;trix@redhat.com&gt;
Suggested-by: Ricky WU &lt;ricky_wu@realtek.com&gt;
Acked-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
Signed-off-by: Nathan Chancellor &lt;nathan@kernel.org&gt;
Link: https://lore.kernel.org/r/20220523150521.2947108-1-nathan@kernel.org
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>misc: rtsx: add rts5261 efuse function</title>
<updated>2022-05-09T13:37:36Z</updated>
<author>
<name>Ricky WU</name>
<email>ricky_wu@realtek.com</email>
</author>
<published>2022-03-21T11:18:30Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=b1c5f3085149e9643b125eb10aae0e74644d7dcc'/>
<id>urn:sha1:b1c5f3085149e9643b125eb10aae0e74644d7dcc</id>
<content type='text'>
move rts5261_fetch_vendor_settings() to rts5261_init_from_hw()
make sure it be called from S3 or D3

add more register setting when efuse is set
read efuse setting to register on init flow

Signed-off-by: Ricky Wu &lt;Ricky_wu@realtek.com&gt;
Link: https://lore.kernel.org/r/18101ecb0f0749ccb9f564eda171ba40@realtek.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>misc: rtsx: rts522a rts5228 rts5261 support Runtime PM</title>
<updated>2022-02-25T11:11:16Z</updated>
<author>
<name>Ricky WU</name>
<email>ricky_wu@realtek.com</email>
</author>
<published>2022-02-21T11:20:29Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=86f4c65fd5003c894dd3082d53e26307fbc211cc'/>
<id>urn:sha1:86f4c65fd5003c894dd3082d53e26307fbc211cc</id>
<content type='text'>
rts522a, rts5228, rts5261
add extra init flow for rtd3
add more power_down setting for avoid being woken up
by plugging or unplugging card when system in S3

Tested-by: Kai-Heng Feng &lt;kai.heng.feng@canonical.com&gt;
Signed-off-by: Ricky Wu &lt;ricky_wu@realtek.com&gt;
Link: https://lore.kernel.org/r/dace32f573a445908fec0a10482c394c@realtek.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>misc: rtsx: Quiesce rts5249 on system suspend</title>
<updated>2022-01-26T17:53:28Z</updated>
<author>
<name>Kai-Heng Feng</name>
<email>kai.heng.feng@canonical.com</email>
</author>
<published>2022-01-25T05:50:09Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=71732e24609b5a7af96efc89aebde55f76c1de3e'/>
<id>urn:sha1:71732e24609b5a7af96efc89aebde55f76c1de3e</id>
<content type='text'>
Set more registers in force_power_down callback to avoid S3 wakeup from
hotplugging cards.

This is originally written by Ricky WU.

Link: https://lore.kernel.org/lkml/c4525b4738f94483b9b8f8571fc80646@realtek.com/
Cc: Ricky WU &lt;ricky_wu@realtek.com&gt;
Tested-by: Ricky WU &lt;ricky_wu@realtek.com&gt;
Signed-off-by: Kai-Heng Feng &lt;kai.heng.feng@canonical.com&gt;
Link: https://lore.kernel.org/r/20220125055010.1866563-4-kai.heng.feng@canonical.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>misc: rtsx: separate aspm mode into MODE_REG and MODE_CFG</title>
<updated>2021-06-09T17:10:22Z</updated>
<author>
<name>Ricky Wu</name>
<email>ricky_wu@realtek.com</email>
</author>
<published>2021-06-07T10:16:34Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=3df4fce739e2b263120f528c5e0fe6b2f8937b5b'/>
<id>urn:sha1:3df4fce739e2b263120f528c5e0fe6b2f8937b5b</id>
<content type='text'>
aspm (Active State Power Management)
rtsx_comm_set_aspm: this function is for driver to make sure
not enter power saving when processing of init and card_detcct
ASPM_MODE_CFG: 8411 5209 5227 5229 5249 5250
Change back to use original way to control aspm
ASPM_MODE_REG: 5227A 524A 5250A 5260 5261 5228
Keep the new way to control aspm

Fixes: 121e9c6b5c4c ("misc: rtsx: modify and fix init_hw function")
Reported-by: Chris Chiu &lt;chris.chiu@canonical.com&gt;
Tested-by: Gordon Lack &lt;gordon.lack@dsl.pipex.com&gt;
Cc: stable &lt;stable@vger.kernel.org&gt;
Signed-off-by: Ricky Wu &lt;ricky_wu@realtek.com&gt;
Link: https://lore.kernel.org/r/20210607101634.4948-1-ricky_wu@realtek.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>misc: rtsx: Fix clock timing for RTS5261</title>
<updated>2020-11-16T10:59:30Z</updated>
<author>
<name>Rui Feng</name>
<email>rui_feng@realsil.com.cn</email>
</author>
<published>2020-11-03T09:55:21Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=5eefe22d223573a32afb9be7e53bff2acff6423a'/>
<id>urn:sha1:5eefe22d223573a32afb9be7e53bff2acff6423a</id>
<content type='text'>
This patch fix clock timing for RTS5261, using 256 divide
for the version higher than version C.

Signed-off-by: Rui Feng &lt;rui_feng@realsil.com.cn&gt;
Acked-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
Link: https://lore.kernel.org/r/1604397321-3026-1-git-send-email-rui_feng@realsil.com.cn
Signed-off-by: Ulf Hansson &lt;ulf.hansson@linaro.org&gt;
</content>
</entry>
<entry>
<title>misc: rtsx: Add hardware auto power off for RTS5261</title>
<updated>2020-11-16T10:59:30Z</updated>
<author>
<name>Rui Feng</name>
<email>rui_feng@realsil.com.cn</email>
</author>
<published>2020-11-03T09:55:12Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=1672617d512880f31d1d43ca0eb0d13d50b8c680'/>
<id>urn:sha1:1672617d512880f31d1d43ca0eb0d13d50b8c680</id>
<content type='text'>
This patch enable hardware auto power off when card is removed.

Signed-off-by: Rui Feng &lt;rui_feng@realsil.com.cn&gt;
Acked-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
Link: https://lore.kernel.org/r/1604397312-2991-1-git-send-email-rui_feng@realsil.com.cn
Signed-off-by: Ulf Hansson &lt;ulf.hansson@linaro.org&gt;
</content>
</entry>
<entry>
<title>misc: rtsx: Add CD &amp; WP reverse support for RTS5261</title>
<updated>2020-11-16T10:59:30Z</updated>
<author>
<name>Rui Feng</name>
<email>rui_feng@realsil.com.cn</email>
</author>
<published>2020-11-03T09:55:05Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=1da3c51512ce01dec42ad763421ab24c3dc1e3dd'/>
<id>urn:sha1:1da3c51512ce01dec42ad763421ab24c3dc1e3dd</id>
<content type='text'>
This patch add CD &amp; WP reverse support for RTS5261

Signed-off-by: Rui Feng &lt;rui_feng@realsil.com.cn&gt;
Acked-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
Link: https://lore.kernel.org/r/1604397305-2956-1-git-send-email-rui_feng@realsil.com.cn
Signed-off-by: Ulf Hansson &lt;ulf.hansson@linaro.org&gt;
</content>
</entry>
</feed>
