<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/ide/pci/cmd640.c, branch master</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
</subtitle>
<id>https://git.shady.money/linux/atom?h=master</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2008-10-21T18:57:23Z</updated>
<entry>
<title>ide: remove useless subdirs from drivers/ide/</title>
<updated>2008-10-21T18:57:23Z</updated>
<author>
<name>Bartlomiej Zolnierkiewicz</name>
<email>bzolnier@gmail.com</email>
</author>
<published>2008-10-21T18:57:23Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=2bfba3c444fe8b2ab1c38112a89d8f03b61136ca'/>
<id>urn:sha1:2bfba3c444fe8b2ab1c38112a89d8f03b61136ca</id>
<content type='text'>
Suggested-by: Ralf Baechle &lt;ralf@linux-mips.org&gt;
Signed-off-by: Bartlomiej Zolnierkiewicz &lt;bzolnier@gmail.com&gt;
</content>
</entry>
<entry>
<title>ide: use 'drive-&gt;dn &amp; 1' instead of drive-&gt;select.b.unit</title>
<updated>2008-10-13T19:39:40Z</updated>
<author>
<name>Bartlomiej Zolnierkiewicz</name>
<email>bzolnier@gmail.com</email>
</author>
<published>2008-10-13T19:39:40Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=123995b97136cb41fa282f0ed2385f2c8066df96'/>
<id>urn:sha1:123995b97136cb41fa282f0ed2385f2c8066df96</id>
<content type='text'>
* Call ide_port_init_devices() in ide_host_register()
  also if 'struct ide_port_info *d' is not available.

* Init drive-&gt;dn in ide_port_init_devices() instead of
  ide_probe_port() so it is valid also in -&gt;init_dev.

* Pass device number to ide_dev_apply_params().

* Use 'drive-&gt;dn &amp; 1' instead of drive-&gt;select.b.unit.

There should be no functional changes caused by this patch.

Signed-off-by: Bartlomiej Zolnierkiewicz &lt;bzolnier@gmail.com&gt;
</content>
</entry>
<entry>
<title>ide: add device flags</title>
<updated>2008-10-13T19:39:36Z</updated>
<author>
<name>Bartlomiej Zolnierkiewicz</name>
<email>bzolnier@gmail.com</email>
</author>
<published>2008-10-13T19:39:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=97100fc816badbbc162644cfde7ad39ae9211fb4'/>
<id>urn:sha1:97100fc816badbbc162644cfde7ad39ae9211fb4</id>
<content type='text'>
Add 'unsigned long dev_flags' to ide_drive_t and convert bitfields
to IDE_DFLAG_* flags.

While at it:
- IDE_DFLAG_ADDRESSING -&gt; IDE_DFLAG_LBA48
- fixup some comments
- remove needless g-&gt;flags zeroing from ide*_probe()

There should be no functional changes caused by this patch.

Signed-off-by: Bartlomiej Zolnierkiewicz &lt;bzolnier@gmail.com&gt;
</content>
</entry>
<entry>
<title>cmd640: add __set_prefetch_mode()</title>
<updated>2008-10-10T20:39:28Z</updated>
<author>
<name>Bartlomiej Zolnierkiewicz</name>
<email>bzolnier@gmail.com</email>
</author>
<published>2008-10-10T20:39:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=af5dfe8cf07b6f4fbd6b7d8ff1aeda718fdd0166'/>
<id>urn:sha1:af5dfe8cf07b6f4fbd6b7d8ff1aeda718fdd0166</id>
<content type='text'>
Factor out the common code from check_prefetch()
and set_prefetch_mode() to __set_prefetch_mode().

Signed-off-by: Bartlomiej Zolnierkiewicz &lt;bzolnier@gmail.com&gt;
</content>
</entry>
<entry>
<title>ide: include &lt;linux/hdreg.h&gt; only when needed</title>
<updated>2008-10-10T20:39:27Z</updated>
<author>
<name>Bartlomiej Zolnierkiewicz</name>
<email>bzolnier@gmail.com</email>
</author>
<published>2008-10-10T20:39:27Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=3ceca727fe3a38dd8d7a3adf938fefda83eee8af'/>
<id>urn:sha1:3ceca727fe3a38dd8d7a3adf938fefda83eee8af</id>
<content type='text'>
* Include &lt;linux/ata.h&gt; directly in &lt;linux/ide.h&gt;
  instead of through &lt;linux/hdreg.h&gt;.

* Include &lt;linux/hdreg.h&gt; only when needed.

Cc: Christoph Hellwig &lt;hch@infradead.org&gt;
Signed-off-by: Bartlomiej Zolnierkiewicz &lt;bzolnier@gmail.com&gt;
</content>
</entry>
<entry>
<title>ide: add ide_host_add() helper</title>
<updated>2008-07-23T17:55:57Z</updated>
<author>
<name>Bartlomiej Zolnierkiewicz</name>
<email>bzolnier@gmail.com</email>
</author>
<published>2008-07-23T17:55:57Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=6f904d015262dfa43eb1cecc00b0998b4c3543f2'/>
<id>urn:sha1:6f904d015262dfa43eb1cecc00b0998b4c3543f2</id>
<content type='text'>
Add ide_host_add() helper which does ide_host_alloc()+ide_host_register(),
then convert ide_setup_pci_device[s](), ide_legacy_device_add() and some
host drivers to use it.

While at it:

* Fix ide_setup_pci_device[s](), ide_arm.c, gayle.c, ide-4drives.c,
  macide.c, q40ide.c, cmd640.c and cs5520.c to return correct error value.

* -ENOENT -&gt; -ENOMEM in rapide.c, ide-h8300.c, ide-generic.c, au1xxx-ide.c
  and pmac.c

* -ENODEV -&gt; -ENOMEM in palm_bk3710.c, ide_platform.c and delkin_cb.c

* -1 -&gt; -ENOMEM in ide-pnp.c

Signed-off-by: Bartlomiej Zolnierkiewicz &lt;bzolnier@gmail.com&gt;
</content>
</entry>
<entry>
<title>ide: add struct ide_host (take 3)</title>
<updated>2008-07-23T17:55:57Z</updated>
<author>
<name>Bartlomiej Zolnierkiewicz</name>
<email>bzolnier@gmail.com</email>
</author>
<published>2008-07-23T17:55:57Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=48c3c1072651922ed153bcf0a33ea82cf20df390'/>
<id>urn:sha1:48c3c1072651922ed153bcf0a33ea82cf20df390</id>
<content type='text'>
* Add struct ide_host which keeps pointers to host's ports.

* Add ide_host_alloc[_all]() and ide_host_remove() helpers.

* Pass 'struct ide_host *host' instead of 'u8 *idx' to
  ide_device_add[_all]() and rename it to ide_host_register[_all]().

* Convert host drivers and core code to use struct ide_host.

* Remove no longer needed ide_find_port().

* Make ide_find_port_slot() static.

* Unexport ide_unregister().

v2:
* Add missing 'struct ide_host *host' to macide.c.

v3:
* Fix build problem in pmac.c (s/ide_alloc_host/ide_host_alloc/)
  (Noticed by Stephen Rothwell).

Signed-off-by: Bartlomiej Zolnierkiewicz &lt;bzolnier@gmail.com&gt;
</content>
</entry>
<entry>
<title>ide: pass hw_regs_t-s to ide_device_add[_all]() (take 3)</title>
<updated>2008-07-23T17:55:50Z</updated>
<author>
<name>Bartlomiej Zolnierkiewicz</name>
<email>bzolnier@gmail.com</email>
</author>
<published>2008-07-23T17:55:50Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=c97c6aca75fd5f718056fde7cff798b8cbdb07c0'/>
<id>urn:sha1:c97c6aca75fd5f718056fde7cff798b8cbdb07c0</id>
<content type='text'>
* Add 'hw_regs_t **hws' argument to ide_device_add[_all]() and convert
  host drivers + ide_legacy_init_one() + ide_setup_pci_device[s]() to use
  it instead of calling ide_init_port_hw() directly.

  [ However if host has &gt; 1 port we must still set hwif-&gt;chipset to hint
    consecutive ide_find_port() call that the previous slot is occupied. ]

* Unexport ide_init_port_hw().

v2:
* Use defines instead of hard-coded values in buddha.c, gayle.c and q40ide.c.
  (Suggested by Geert Uytterhoeven)

* Better patch description.

v3:
* Fix build problem in ide-cs.c. (Noticed by Stephen Rothwell)

There should be no functional changes caused by this patch.

Cc: Geert Uytterhoeven &lt;geert@linux-m68k.org&gt;
Signed-off-by: Bartlomiej Zolnierkiewicz &lt;bzolnier@gmail.com&gt;
</content>
</entry>
<entry>
<title>cmd640: add -&gt;init_dev method</title>
<updated>2008-07-16T18:33:42Z</updated>
<author>
<name>Bartlomiej Zolnierkiewicz</name>
<email>bzolnier@gmail.com</email>
</author>
<published>2008-07-16T18:33:42Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=b48c89a9699f451e4e236fa7313461281c00e69b'/>
<id>urn:sha1:b48c89a9699f451e4e236fa7313461281c00e69b</id>
<content type='text'>
Convert the driver to use -&gt;init_dev method instead of open-coding devices
init in cmd640x_init().

While at it:

- fix printk()-s to use KERN_INFO level instead of the default KERN_ERR

- use DRV_NAME define in printk()-s

- set proper -&gt;pio_mask also for CONFIG_BLK_DEV_CMD640_ENHANCED=n

There should be no functional changes caused by this patch
(except fixing printk()-s levels).

Signed-off-by: Bartlomiej Zolnierkiewicz &lt;bzolnier@gmail.com&gt;
</content>
</entry>
<entry>
<title>cmd640: fix warm-plug support for the secondary interface</title>
<updated>2008-07-16T18:33:41Z</updated>
<author>
<name>Bartlomiej Zolnierkiewicz</name>
<email>bzolnier@gmail.com</email>
</author>
<published>2008-07-16T18:33:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=a698400a1556cf9f0376d1a41e536973dd5c4747'/>
<id>urn:sha1:a698400a1556cf9f0376d1a41e536973dd5c4747</id>
<content type='text'>
Register secondary interface also when user requested not to probe devices.

While at it:

- remove write-only second_port_toggled variable

Signed-off-by: Bartlomiej Zolnierkiewicz &lt;bzolnier@gmail.com&gt;
</content>
</entry>
</feed>
