<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-dev/drivers/staging/rts5208/sd.c, branch linus/master</title>
<subtitle>Linux kernel development work - see feature branches</subtitle>
<id>https://git.zx2c4.com/linux-dev/atom/drivers/staging/rts5208/sd.c?h=linus%2Fmaster</id>
<link rel='self' href='https://git.zx2c4.com/linux-dev/atom/drivers/staging/rts5208/sd.c?h=linus%2Fmaster'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/'/>
<updated>2021-09-21T15:30:55Z</updated>
<entry>
<title>staging: rts5208: remove parentheses pair in sd.c</title>
<updated>2021-09-21T15:30:55Z</updated>
<author>
<name>Benjamin Philip</name>
<email>benjamin.philip495@gmail.com</email>
</author>
<published>2021-09-21T07:33:49Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=51a72ec705dfa7f5ae2a70041cdbc53804ba6ee8'/>
<id>urn:sha1:51a72ec705dfa7f5ae2a70041cdbc53804ba6ee8</id>
<content type='text'>
I had missed a single parentheses pair in the commit for sd.c.
This commit removes the pair I missed.

Signed-off-by: Benjamin Philip &lt;benjamin.philip495@gmail.com&gt;
Link: https://lore.kernel.org/r/4a56facd2c04a321b091d3b7dbea87168e8ddd6e.1632209460.git.benjamin.philip495@gmail.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: rts5208: remove unnecessary parentheses in sd.c</title>
<updated>2021-09-21T15:30:55Z</updated>
<author>
<name>Benjamin Philip</name>
<email>benjamin.philip495@gmail.com</email>
</author>
<published>2021-09-21T07:33:46Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=53e8b7405ac9fa57194abc2474cb1d6b47688dfc'/>
<id>urn:sha1:53e8b7405ac9fa57194abc2474cb1d6b47688dfc</id>
<content type='text'>
This commit removes unnecessary parentheses, that have been flagged
by checkpatch.pl in sd.c

Signed-off-by: Benjamin Philip &lt;benjamin.philip495@gmail.com&gt;
Link: https://lore.kernel.org/r/b96aa1a0d9b306566a54d4b4643c06c520877042.1632209460.git.benjamin.philip495@gmail.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: rts5208: remove redundant sd30_mode checks</title>
<updated>2019-09-03T07:36:07Z</updated>
<author>
<name>Colin Ian King</name>
<email>colin.king@canonical.com</email>
</author>
<published>2019-08-30T08:10:47Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=2e63a4a4b78e2a68a475be98cdefedea30dc0d5c'/>
<id>urn:sha1:2e63a4a4b78e2a68a475be98cdefedea30dc0d5c</id>
<content type='text'>
There are two hunks of code that check if sd30_mode is true however
an earlier check in an outer code block on sd30_mode being false means
that sd30_mode can never be true at these points so these checks are
redundant.  Remove the dead code.

Addresses-Coverity: ("Logically dead code")
Signed-off-by: Colin Ian King &lt;colin.king@canonical.com&gt;
Link: https://lore.kernel.org/r/20190830081047.13630-1-colin.king@canonical.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: rts5208: Rewrite redundant if statement to improve code style</title>
<updated>2019-07-01T07:05:21Z</updated>
<author>
<name>Tobias Nießen</name>
<email>tobias.niessen@stud.uni-hannover.de</email>
</author>
<published>2019-06-26T14:28:56Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=34a49d9edf3af971867e3876de7dc9935d467f67'/>
<id>urn:sha1:34a49d9edf3af971867e3876de7dc9935d467f67</id>
<content type='text'>
This commit uses the fact that

    if (a) {
            if (b) {
                    ...
            }
    }

can instead be written as

    if (a &amp;&amp; b) {
            ...
    }

without any change in behavior, allowing to decrease the indentation
of the contained code block and thus reducing the average line length.

Signed-off-by: Tobias Nießen &lt;tobias.niessen@stud.uni-hannover.de&gt;
Signed-off-by: Sabrina Gaube &lt;sabrina-gaube@web.de&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: rts5208: Remove function soft_reset_sd_card()</title>
<updated>2019-06-20T12:45:03Z</updated>
<author>
<name>Nishka Dasgupta</name>
<email>nishkadg.linux@gmail.com</email>
</author>
<published>2019-06-19T07:32:01Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=e5dc970eb13ced45e42cdd88810b02a4592b5a62'/>
<id>urn:sha1:e5dc970eb13ced45e42cdd88810b02a4592b5a62</id>
<content type='text'>
Remove function soft_reset_sd_card, as all it does is call reset_sd.
Modify call sites of the former to call the latter instead.
Issue found with Coccinelle.

Signed-off-by: Nishka Dasgupta &lt;nishkadg.linux@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>Staging: rts5208: Fix error handling on rtsx_send_cmd</title>
<updated>2019-01-07T10:28:15Z</updated>
<author>
<name>Aditya Pakki</name>
<email>pakki001@umn.edu</email>
</author>
<published>2019-01-05T14:14:41Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=c8c2702409430a6a2fd928e857f15773aaafcc99'/>
<id>urn:sha1:c8c2702409430a6a2fd928e857f15773aaafcc99</id>
<content type='text'>
In sd_execute_write_data, the rtsx_send_cmd could fail with ETIMEDOUT
or EIO. The fix adds a check to handle these failures.

Signed-off-by: Aditya Pakki &lt;pakki001@umn.edu&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>Staging: rts5208: Add SPDX license tags</title>
<updated>2018-11-05T13:16:33Z</updated>
<author>
<name>Kim Bradley</name>
<email>kim.jamie.bradley@gmail.com</email>
</author>
<published>2018-10-22T20:10:26Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=bb1e67793f3ee42449f60c2288096da01199443e'/>
<id>urn:sha1:bb1e67793f3ee42449f60c2288096da01199443e</id>
<content type='text'>
Add SPDX license tags to remove checkpatch SPDX warnings.

Signed-off-by: Kim Bradley &lt;kim.jamie.bradley@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: rts5208: Remove unnecessary braces {}</title>
<updated>2018-09-25T19:10:36Z</updated>
<author>
<name>Aymen Qader</name>
<email>qader.aymen@gmail.com</email>
</author>
<published>2018-09-20T13:22:25Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=9f902b495b537e7e940e002297251e0525292139'/>
<id>urn:sha1:9f902b495b537e7e940e002297251e0525292139</id>
<content type='text'>
This patch fixes the checkpatch.pl warning "braces {} are not necessary"
in the rts5208 driver. Mostly applies to single-line return/goto if
blocks.

Signed-off-by: Aymen Qader &lt;qader.aymen@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: rts5208: fix missing error check on call to rtsx_write_register</title>
<updated>2018-07-06T15:37:31Z</updated>
<author>
<name>Colin Ian King</name>
<email>colin.king@canonical.com</email>
</author>
<published>2018-07-02T13:27:35Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=c5fae4f4fd28189b1062fb8ef7b21fec37cb8b17'/>
<id>urn:sha1:c5fae4f4fd28189b1062fb8ef7b21fec37cb8b17</id>
<content type='text'>
Currently the check on error return from the call to rtsx_write_register
is checking the error status from the previous call. Fix this by adding
in the missing assignment of retval.

Detected by CoverityScan, CID#709877

Fixes: fa590c222fba ("staging: rts5208: add support for rts5208 and rts5288")
Signed-off-by: Colin Ian King &lt;colin.king@canonical.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: rtsx: remove rtsx_trace() and related code</title>
<updated>2018-06-28T13:10:47Z</updated>
<author>
<name>Arnd Bergmann</name>
<email>arnd@arndb.de</email>
</author>
<published>2018-06-18T14:38:02Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=c238d7b1e5fd6416458d7a7295a6d20ab56a3baa'/>
<id>urn:sha1:c238d7b1e5fd6416458d7a7295a6d20ab56a3baa</id>
<content type='text'>
The driver has rather excessive amount of tracing code, which would be
better done using ftrace. This is obviously not a main feature of the
driver, and it should work just as well without it.

Removing it saves over 1300 lines of code and likely makes the driver
a bit faster by avoiding lots of calls into the timekeeping code.

I came across this while cleaning up the last users of the deprecated
getnstimeofday64() function, of which there is one in the now-removed
get_current_time() function of the rtsx driver that was only used for
tracing.

Signed-off-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
</feed>
