<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/drivers/block/ide.c, branch v2023.07.01</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/u-boot.git/atom/drivers/block/ide.c?h=v2023.07.01</id>
<link rel='self' href='http://cgit.235523.xyz/u-boot.git/atom/drivers/block/ide.c?h=v2023.07.01'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<updated>2023-04-27T17:51:07Z</updated>
<entry>
<title>ide: Make use of U-Boot types</title>
<updated>2023-04-27T17:51:07Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2023-04-25T16:54:55Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=22a7ae3675899985964eaec418474ab525975c0e'/>
<id>urn:sha1:22a7ae3675899985964eaec418474ab525975c0e</id>
<content type='text'>
Use standard U-Boot types in the file to make the code less verbose.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>ide: Simplify expressions and hex values</title>
<updated>2023-04-27T17:51:07Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2023-04-25T16:54:54Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=79543e61c6c2dd39cd4e37a82dd674b3d65b86f1'/>
<id>urn:sha1:79543e61c6c2dd39cd4e37a82dd674b3d65b86f1</id>
<content type='text'>
The code has quite a few unnecessary brackets and comparisons to zero,
etc. Fix these up as well as some upper-case hex values and use of 0x in
printf() strings.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>ide: Convert to use log_debug()</title>
<updated>2023-04-27T17:51:07Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2023-04-25T16:54:53Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=692bccb14d370ff9f999d35e7a43adae293c17c7'/>
<id>urn:sha1:692bccb14d370ff9f999d35e7a43adae293c17c7</id>
<content type='text'>
Avoid the use of the function name in a few of the debug() calls, since
this causes a checkpatch warning. Convert all other calls too.

Use lower-case hex consistently.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>ide: Tidy up ide_reset()</title>
<updated>2023-04-27T17:51:07Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2023-04-25T16:54:52Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=9666de8332a59ff53544ffeee7f864c56a99791a'/>
<id>urn:sha1:9666de8332a59ff53544ffeee7f864c56a99791a</id>
<content type='text'>
Avoid using #ifdef and use a single function declaration, so it is easier
to read.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>ide: Correct LBA setting</title>
<updated>2023-04-27T17:51:07Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2023-04-25T16:54:51Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=49aa778406a28f45dafdeb6df30f7f378ccb3925'/>
<id>urn:sha1:49aa778406a28f45dafdeb6df30f7f378ccb3925</id>
<content type='text'>
Fix a longstanding bug where the LBA is calculated as the size of the
media instead of the number of blocks. This was perhaps not noticed
earlier since it prints the correct value first, before setting the wrong
value.

Drop the unnecessary blksz variable while we are here.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
Fixes: 68e6f221ed0 ("block: ide: Fix block read/write with driver model")
</content>
</entry>
<entry>
<title>ide: Use a single local blk_desc for ide_ident()</title>
<updated>2023-04-27T17:51:07Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2023-04-25T16:54:50Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=d7d57436e7a65cb724d04d987cd00428aea995a5'/>
<id>urn:sha1:d7d57436e7a65cb724d04d987cd00428aea995a5</id>
<content type='text'>
We only use one member of the ide_dev_desc[] array at a time and it does
not stick around outside ide_probe(). Use a single element instead.

Copy over the missing members of blk_desc at the same, since this was
missing from the previous code.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
Fixes: 68e6f221ed0 ("block: ide: Fix block read/write with driver model")
</content>
</entry>
<entry>
<title>ide: Move all blk_desc init into ide_ident()</title>
<updated>2023-04-27T17:51:07Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2023-04-25T16:54:49Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=960831180380e8060d8a6af5317ae756b9f6d186'/>
<id>urn:sha1:960831180380e8060d8a6af5317ae756b9f6d186</id>
<content type='text'>
Rather than having the caller fill some of this in, do it all in the
ide_ident() function, since it knows all the values.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>ide: Make ide_ident() return an error code</title>
<updated>2023-04-27T17:51:07Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2023-04-25T16:54:48Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=038590af89eee321ea5a28e97a8aba078a7af4e2'/>
<id>urn:sha1:038590af89eee321ea5a28e97a8aba078a7af4e2</id>
<content type='text'>
Update ide_ident() to indicate whether it finds a device or not. Use
that to decide whether to create a block device for it, rather than
looking DEV_TYPE_UNKNOWN.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>ide: Use desc consistently for struct blk_desc</title>
<updated>2023-04-27T17:51:06Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2023-04-25T16:54:47Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=ce99e297e52712040266b4e389bba76ae74b7c4c'/>
<id>urn:sha1:ce99e297e52712040266b4e389bba76ae74b7c4c</id>
<content type='text'>
Most of the code uses 'desc' as the variable name for a blk descriptor.
Change ide to do the same.

Tidy up some extra brackets and types while we are here.

Leave the code in ide_probe() alone since it is about to be refactored.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>ide: Combine the two loops in ide_probe()</title>
<updated>2023-04-27T17:51:06Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2023-04-25T16:54:46Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=f0af25a10822ece736b0711a2339731fd0d3140d'/>
<id>urn:sha1:f0af25a10822ece736b0711a2339731fd0d3140d</id>
<content type='text'>
The two loops in this function operate on the same ide_dev_desc[] array.
Combine them to reduce duplication.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
</feed>
