<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/ide, branch v2.6.28</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=v2.6.28</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=v2.6.28'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2008-12-22T22:05:06Z</updated>
<entry>
<title>drivers/ide/{cs5530.c,sc1200.c}: Move a dereference below a NULL test</title>
<updated>2008-12-22T22:05:06Z</updated>
<author>
<name>Julia Lawall</name>
<email>julia@diku.dk</email>
</author>
<published>2008-12-22T22:05:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=9ecab6e5bf87f96dc2fa89cc9e8d5576fbde4325'/>
<id>urn:sha1:9ecab6e5bf87f96dc2fa89cc9e8d5576fbde4325</id>
<content type='text'>
In each case, if the NULL test is necessary, then the dereference should be
moved below the NULL test.

The semantic patch that makes this change is as follows:
(http://www.emn.fr/x-info/coccinelle/)

// &lt;smpl&gt;
@@
type T;
expression E;
identifier i,fld;
statement S;
@@

- T i = E-&gt;fld;
+ T i;
  ... when != E
      when != i
  if (E == NULL) S
+ i = E-&gt;fld;
// &lt;/smpl&gt;

Signed-off-by: Julia Lawall &lt;julia@diku.dk&gt;
Acked-by: Sergei Shtylyov &lt;sshtylyov@ru.mvista.com&gt;
Signed-off-by: Bartlomiej Zolnierkiewicz &lt;bzolnier@gmail.com&gt;
</content>
</entry>
<entry>
<title>[IA64] Clear up section mismatch for ioc4_ide_attach_one.</title>
<updated>2008-12-09T18:08:48Z</updated>
<author>
<name>Robin Holt</name>
<email>holt@sgi.com</email>
</author>
<published>2008-12-08T23:47:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=ecdbc6906e4c31bc387c64490e31ae3e0f929479'/>
<id>urn:sha1:ecdbc6906e4c31bc387c64490e31ae3e0f929479</id>
<content type='text'>
The generic_defconfig has three section mismatches.  This clears up
ioc4_ide_attach_one().

Signed-off-by: Robin Holt &lt;holt@sgi.com&gt;
Signed-off-by: Mike Reid &lt;mdr@sgi.com&gt;
Signed-off-by: Tony Luck &lt;tony.luck@intel.com&gt;
</content>
</entry>
<entry>
<title>ide: build-fix for CONFIG_BLK_DEV_IDEDMA_PMAC=n</title>
<updated>2008-12-08T16:52:05Z</updated>
<author>
<name>Bartlomiej Zolnierkiewicz</name>
<email>bzolnier@gmail.com</email>
</author>
<published>2008-12-08T16:52:05Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=53846574799884a04a4498f6342400d5c1423c79'/>
<id>urn:sha1:53846574799884a04a4498f6342400d5c1423c79</id>
<content type='text'>
IDE pmac host driver build fails with CONFIG_BLK_DEV_IDEDMA_PMAC=n
as reported by Kamalesh:

&gt; drivers/ide/pmac.c: In function 'pmac_ide_set_pio_mode':
&gt; drivers/ide/pmac.c:527: error: implicit declaration of function 'kauai_lookup_timing'
&gt; drivers/ide/pmac.c:527: error: 'shasta_pio_timings' undeclared (first use in this function)
&gt; drivers/ide/pmac.c:527: error: (Each undeclared identifier is reported only once
&gt; drivers/ide/pmac.c:527: error: for each function it appears in.)
&gt; drivers/ide/pmac.c:534: error: 'kauai_pio_timings' undeclared (first use in this function)
&gt; drivers/ide/pmac.c: In function 'pmac_ide_do_resume':
&gt; drivers/ide/pmac.c:914: error: 'IDE_WAKEUP_DELAY' undeclared (first use in this function)
&gt; drivers/ide/pmac.c: At top level:
&gt; drivers/ide/pmac.c:1007: error: 'pmac_ide_init_dma' undeclared here (not in a function)
&gt; drivers/ide/pmac.c: In function 'pmac_ide_setup_device':
&gt; drivers/ide/pmac.c:1107: error: 'IDE_WAKEUP_DELAY' undeclared (first use in this function)
&gt; drivers/ide/pmac.c: In function 'pmac_ide_macio_attach':
&gt; drivers/ide/pmac.c:1209: error: 'pmac_ide_hwif_t' has no member named 'dma_regs'
&gt; drivers/ide/pmac.c:1210: error: 'pmac_ide_hwif_t' has no member named 'dma_regs'
&gt; make[2]: *** [drivers/ide/pmac.o] Error 1

Fix it by removing the superfluous config option.

Reported-and-tested-by: Kamalesh Babulal &lt;kamalesh@linux.vnet.ibm.com&gt;
Cc: Benjamin Herrenschmidt &lt;benh@kernel.crashing.org&gt;
Cc: Sergei Shtylyov &lt;sshtylyov@ru.mvista.com&gt;
Cc: Stephen Rothwell &lt;sfr@canb.auug.org.au&gt;
Signed-off-by: Bartlomiej Zolnierkiewicz &lt;bzolnier@gmail.com&gt;
</content>
</entry>
<entry>
<title>Revert "ide: respect current DMA setting during resume"</title>
<updated>2008-12-08T16:42:35Z</updated>
<author>
<name>Bartlomiej Zolnierkiewicz</name>
<email>bzolnier@gmail.com</email>
</author>
<published>2008-12-08T16:42:35Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=1a659880ee755d96eeabe64bded059abed6d5ef5'/>
<id>urn:sha1:1a659880ee755d96eeabe64bded059abed6d5ef5</id>
<content type='text'>
This reverts commit e9eb8388306364295308132265c00bea685f409f since
it could break resume (thanks to Paul Collins for the report).

I'll look into sorting this out properly for 2.6.29
but for 2.6.28 it is the best to just revert my patch.

Reported-by: Paul Collins &lt;paul@burly.ondioline.org&gt;
Cc: rjw@sisk.pl
Signed-off-by: Bartlomiej Zolnierkiewicz &lt;bzolnier@gmail.com&gt;
</content>
</entry>
<entry>
<title>alim15x3: fix sparse warning</title>
<updated>2008-12-02T19:40:04Z</updated>
<author>
<name>Hannes Eder</name>
<email>hannes@hanneseder.net</email>
</author>
<published>2008-12-02T19:40:04Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=95964018d53f479529dfdc2b46fe30c0a14a00e0'/>
<id>urn:sha1:95964018d53f479529dfdc2b46fe30c0a14a00e0</id>
<content type='text'>
Fix this sparse warning:

  drivers/ide/alim15x3.c:594:2: warning: returning void-valued expression

Signed-off-by: Hannes Eder &lt;hannes@hanneseder.net&gt;
Signed-off-by: Bartlomiej Zolnierkiewicz &lt;bzolnier@gmail.com&gt;
</content>
</entry>
<entry>
<title>ide: remove dead code from drive_is_ready()</title>
<updated>2008-12-02T19:40:04Z</updated>
<author>
<name>Bartlomiej Zolnierkiewicz</name>
<email>bzolnier@gmail.com</email>
</author>
<published>2008-12-02T19:40:04Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=a3663801b1bb1b6f6e2be5198cc81bc16f1558fd'/>
<id>urn:sha1:a3663801b1bb1b6f6e2be5198cc81bc16f1558fd</id>
<content type='text'>
We guarantee 400ns delay at the time of issuing the command.

Acked-by: Sergei Shtylyov &lt;sshtylyov@ru.mvista.com&gt;
Signed-off-by: Bartlomiej Zolnierkiewicz &lt;bzolnier@gmail.com&gt;
</content>
</entry>
<entry>
<title>ide: fix build for DEBUG_PM</title>
<updated>2008-12-02T19:40:03Z</updated>
<author>
<name>Bartlomiej Zolnierkiewicz</name>
<email>bzolnier@gmail.com</email>
</author>
<published>2008-12-02T19:40:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=6b7d8fc36272169d1d07a07174f2c8a7909c025e'/>
<id>urn:sha1:6b7d8fc36272169d1d07a07174f2c8a7909c025e</id>
<content type='text'>
Also while at it:

* Drop unused arguments from ide_complete_power_step().

* Move DEBUG_PM printk() from ide_end_drive_cmd() to
  ide_complete_power_step().

Signed-off-by: Bartlomiej Zolnierkiewicz &lt;bzolnier@gmail.com&gt;
</content>
</entry>
<entry>
<title>ide: respect current DMA setting during resume</title>
<updated>2008-12-02T19:40:03Z</updated>
<author>
<name>Bartlomiej Zolnierkiewicz</name>
<email>bzolnier@gmail.com</email>
</author>
<published>2008-12-02T19:40:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=e9eb8388306364295308132265c00bea685f409f'/>
<id>urn:sha1:e9eb8388306364295308132265c00bea685f409f</id>
<content type='text'>
Respect current DMA setting during resume, otherwise PIO timings
may get destroyed if host uses shared PIO/MWDMA timings.

Signed-off-by: Bartlomiej Zolnierkiewicz &lt;bzolnier@gmail.com&gt;
</content>
</entry>
<entry>
<title>ide: add SAMSUNG SP0822N with firmware WA100-10 to ivb_list[]</title>
<updated>2008-12-02T19:40:03Z</updated>
<author>
<name>Bartlomiej Zolnierkiewicz</name>
<email>bzolnier@gmail.com</email>
</author>
<published>2008-12-02T19:40:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=c7b997b372e8b6e7ee8d91696c74a556754f5fdb'/>
<id>urn:sha1:c7b997b372e8b6e7ee8d91696c74a556754f5fdb</id>
<content type='text'>
Should fix kernel.org bug #10225:
http://bugzilla.kernel.org/show_bug.cgi?id=10225

Reported-by: Matthias B. &lt;haferfrost@web.de&gt;
Cc: Alan Cox &lt;alan@lxorguk.ukuu.org.uk&gt;
Acked-by: Sergei Shtyltov &lt;sshtylyov@ru.mvista.com&gt;
Signed-off-by: Bartlomiej Zolnierkiewicz &lt;bzolnier@gmail.com&gt;
</content>
</entry>
<entry>
<title>amd74xx: workaround unreliable AltStatus register for nVidia controllers</title>
<updated>2008-12-02T19:40:03Z</updated>
<author>
<name>Bartlomiej Zolnierkiewicz</name>
<email>bzolnier@gmail.com</email>
</author>
<published>2008-12-02T19:40:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=6636487e8dc49a1c43fed336bdc4a2f3d7ce6881'/>
<id>urn:sha1:6636487e8dc49a1c43fed336bdc4a2f3d7ce6881</id>
<content type='text'>
It seems that on some nVidia controllers using AltStatus register
can be unreliable so default to Status register if the PCI device
is in Compatibility Mode.  In order to achieve this:

* Add ide_pci_is_in_compatibility_mode() inline helper to &lt;linux/ide.h&gt;.

* Add IDE_HFLAG_BROKEN_ALTSTATUS host flag and set it in amd74xx host
  driver for nVidia controllers in Compatibility Mode.

* Teach actual_try_to_identify() and drive_is_ready() about the new flag.

This fixes the regression caused by removal of CONFIG_IDEPCI_SHARE_IRQ
config option in 2.6.25 and using AltStatus register unconditionally when
available (kernel.org bugs #11659 and #10216).

[ Moreover for CONFIG_IDEPCI_SHARE_IRQ=y (which is what most people
  and distributions use) it never worked correctly. ]

Thanks to Remy LABENE and Lars Winterfeld for help with debugging the problem.

More info at:
http://bugzilla.kernel.org/show_bug.cgi?id=11659
http://bugzilla.kernel.org/show_bug.cgi?id=10216

Reported-by: Remy LABENE &lt;remy.labene@free.fr&gt;
Tested-by: Remy LABENE &lt;remy.labene@free.fr&gt;
Tested-by: Lars Winterfeld &lt;lars.winterfeld@tu-ilmenau.de&gt;
Acked-by: Borislav Petkov &lt;petkovbb@gmail.com&gt;
Signed-off-by: Bartlomiej Zolnierkiewicz &lt;bzolnier@gmail.com&gt;
</content>
</entry>
</feed>
