<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-stable.git/include/linux/phy_fixed.h, branch linux-2.6.24.y</title>
<subtitle>Linux kernel stable tree</subtitle>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/'/>
<entry>
<title>PHY fixed driver: rework release path and update phy_id notation</title>
<updated>2007-10-10T23:53:50+00:00</updated>
<author>
<name>Vitaly Bordug</name>
<email>vitb@kernel.crashing.org</email>
</author>
<published>2007-08-10T21:05:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=7c32f470f4f6a0fdc6944cefcd22f288e59a0ae2'/>
<id>7c32f470f4f6a0fdc6944cefcd22f288e59a0ae2</id>
<content type='text'>
device_bind_driver() error code returning has been fixed.  release()
function has been written, so that to free resources in correct way; the
release path is now clean.

Before the rework, it used to cause
 Device 'fixed@100:1' does not have a release() function, it is broken
 and must be fixed.
 BUG: at drivers/base/core.c:104 device_release()

 Call Trace:
  [&lt;ffffffff802ec380&gt;] kobject_cleanup+0x53/0x7e
  [&lt;ffffffff802ec3ab&gt;] kobject_release+0x0/0x9
  [&lt;ffffffff802ecf3f&gt;] kref_put+0x74/0x81
  [&lt;ffffffff8035493b&gt;] fixed_mdio_register_device+0x230/0x265
  [&lt;ffffffff80564d31&gt;] fixed_init+0x1f/0x35
  [&lt;ffffffff802071a4&gt;] init+0x147/0x2fb
  [&lt;ffffffff80223b6e&gt;] schedule_tail+0x36/0x92
  [&lt;ffffffff8020a678&gt;] child_rip+0xa/0x12
  [&lt;ffffffff80311714&gt;] acpi_ds_init_one_object+0x0/0x83
  [&lt;ffffffff8020705d&gt;] init+0x0/0x2fb
  [&lt;ffffffff8020a66e&gt;] child_rip+0x0/0x12

Also changed the notation of the fixed phy definition on
mdio bus to the form of &lt;speed&gt;+&lt;duplex&gt; to make it able to be used by
gianfar and ucc_geth that define phy_id strictly as "%d:%d" and cleaned up
the whitespace issues.

Signed-off-by: Vitaly Bordug &lt;vitb@kernel.crashing.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Jeff Garzik &lt;jeff@garzik.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
device_bind_driver() error code returning has been fixed.  release()
function has been written, so that to free resources in correct way; the
release path is now clean.

Before the rework, it used to cause
 Device 'fixed@100:1' does not have a release() function, it is broken
 and must be fixed.
 BUG: at drivers/base/core.c:104 device_release()

 Call Trace:
  [&lt;ffffffff802ec380&gt;] kobject_cleanup+0x53/0x7e
  [&lt;ffffffff802ec3ab&gt;] kobject_release+0x0/0x9
  [&lt;ffffffff802ecf3f&gt;] kref_put+0x74/0x81
  [&lt;ffffffff8035493b&gt;] fixed_mdio_register_device+0x230/0x265
  [&lt;ffffffff80564d31&gt;] fixed_init+0x1f/0x35
  [&lt;ffffffff802071a4&gt;] init+0x147/0x2fb
  [&lt;ffffffff80223b6e&gt;] schedule_tail+0x36/0x92
  [&lt;ffffffff8020a678&gt;] child_rip+0xa/0x12
  [&lt;ffffffff80311714&gt;] acpi_ds_init_one_object+0x0/0x83
  [&lt;ffffffff8020705d&gt;] init+0x0/0x2fb
  [&lt;ffffffff8020a66e&gt;] child_rip+0x0/0x12

Also changed the notation of the fixed phy definition on
mdio bus to the form of &lt;speed&gt;+&lt;duplex&gt; to make it able to be used by
gianfar and ucc_geth that define phy_id strictly as "%d:%d" and cleaned up
the whitespace issues.

Signed-off-by: Vitaly Bordug &lt;vitb@kernel.crashing.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Jeff Garzik &lt;jeff@garzik.org&gt;
</pre>
</div>
</content>
</entry>
</feed>
