<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-toradex.git/include/linux/phy_fixed.h, branch v2.6.38.5</title>
<subtitle>Linux kernel for Apalis and Colibri modules</subtitle>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/'/>
<entry>
<title>phy/fixed.c: rework to not duplicate PHY layer functionality</title>
<updated>2008-01-24T01:33:58+00:00</updated>
<author>
<name>Vitaly Bordug</name>
<email>vitb@kernel.crashing.org</email>
</author>
<published>2007-12-06T22:51:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=a79d8e93d300adb84cccc38ac396cfb118c238ad'/>
<id>a79d8e93d300adb84cccc38ac396cfb118c238ad</id>
<content type='text'>
With that patch fixed.c now fully emulates MDIO bus, thus no need
to duplicate PHY layer functionality. That, in turn, drastically
simplifies the code, and drops down line count.

As an additional bonus, now there is no need to register MDIO bus
for each PHY, all emulated PHYs placed on the platform fixed MDIO bus.
There is also no more need to pre-allocate PHYs via .config option,
this is all now handled dynamically.

Signed-off-by: Anton Vorontsov &lt;avorontsov@ru.mvista.com&gt;
Signed-off-by: Vitaly Bordug &lt;vitb@kernel.crashing.org&gt;
Acked-by: Jeff Garzik &lt;jeff@garzik.org&gt;
Signed-off-by: Kumar Gala &lt;galak@kernel.crashing.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
With that patch fixed.c now fully emulates MDIO bus, thus no need
to duplicate PHY layer functionality. That, in turn, drastically
simplifies the code, and drops down line count.

As an additional bonus, now there is no need to register MDIO bus
for each PHY, all emulated PHYs placed on the platform fixed MDIO bus.
There is also no more need to pre-allocate PHYs via .config option,
this is all now handled dynamically.

Signed-off-by: Anton Vorontsov &lt;avorontsov@ru.mvista.com&gt;
Signed-off-by: Vitaly Bordug &lt;vitb@kernel.crashing.org&gt;
Acked-by: Jeff Garzik &lt;jeff@garzik.org&gt;
Signed-off-by: Kumar Gala &lt;galak@kernel.crashing.org&gt;
</pre>
</div>
</content>
</entry>
<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.toradex.cn/cgit/linux-toradex.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>
