<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/linux.git/drivers/net/phy/fixed.c, branch v2.6.32</title>
<subtitle>Linux kernel stable tree (mirror)</subtitle>
<id>https://git.radix-linux.su/kernel/linux.git/atom?h=v2.6.32</id>
<link rel='self' href='https://git.radix-linux.su/kernel/linux.git/atom?h=v2.6.32'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/'/>
<updated>2009-04-11T08:52:29+00:00</updated>
<entry>
<title>phy: error handling for platform_device_register_simple()</title>
<updated>2009-04-11T08:52:29+00:00</updated>
<author>
<name>Dan Carpenter</name>
<email>error27@gmail.com</email>
</author>
<published>2009-04-11T08:52:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=57401d5e36d2966247e9c06b94f5133609c8da21'/>
<id>urn:sha1:57401d5e36d2966247e9c06b94f5133609c8da21</id>
<content type='text'>
platform_device_register_simple() returns ERR_PTR() and not NULL.

Found by smatch (http://repo.or.cz/w/smatch.git).  Compile tested.

Signed-off-by: Dan Carpenter &lt;error27@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>phylib: two dynamic mii_bus allocation fallout fixes</title>
<updated>2008-10-09T16:45:04+00:00</updated>
<author>
<name>Lennert Buytenhek</name>
<email>buytenh@marvell.com</email>
</author>
<published>2008-10-09T16:45:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=ec2a5652ea53c102306f08cdf516f98e32bd4b61'/>
<id>urn:sha1:ec2a5652ea53c102306f08cdf516f98e32bd4b61</id>
<content type='text'>
1. arch/powerpc/platforms/pasemi/gpio_mdio.c also needs to be
   converted over to mdiobus_{alloc,free}().

2. drivers/net/phy/fixed.c used to embed a struct mii_bus into its
   struct fixed_mdio_bus and then use container_of() to go from the
   former to the latter.  Since mii bus structures are no longer
   embedded, we need to do something like use the mii bus private
   pointer to go from mii_bus to fixed_mdio_bus instead.

Signed-off-by: Lennert Buytenhek &lt;buytenh@marvell.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>phylib: move to dynamic allocation of struct mii_bus</title>
<updated>2008-10-08T23:29:57+00:00</updated>
<author>
<name>Lennert Buytenhek</name>
<email>buytenh@marvell.com</email>
</author>
<published>2008-10-08T23:29:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=298cf9beb9679522de995e249eccbd82f7c51999'/>
<id>urn:sha1:298cf9beb9679522de995e249eccbd82f7c51999</id>
<content type='text'>
This patch introduces mdiobus_alloc() and mdiobus_free(), and
makes all mdio bus drivers use these functions to allocate their
struct mii_bus'es dynamically.

Signed-off-by: Lennert Buytenhek &lt;buytenh@marvell.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
Acked-by: Andy Fleming &lt;afleming@freescale.com&gt;
</content>
</entry>
<entry>
<title>phylib: rename mii_bus::dev to mii_bus::parent</title>
<updated>2008-10-08T23:27:49+00:00</updated>
<author>
<name>Lennert Buytenhek</name>
<email>buytenh@wantstofly.org</email>
</author>
<published>2008-10-01T15:41:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=18ee49ddb0d242ed1d0e273038d5e4f6de7379d3'/>
<id>urn:sha1:18ee49ddb0d242ed1d0e273038d5e4f6de7379d3</id>
<content type='text'>
In preparation of giving mii_bus objects a device tree presence of
their own, rename struct mii_bus's -&gt;dev argument to -&gt;parent, since
having a 'struct device *dev' that points to our parent device
conflicts with introducing a 'struct device dev' representing our own
device.

Signed-off-by: Lennert Buytenhek &lt;buytenh@marvell.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
Acked-by: Andy Fleming &lt;afleming@freescale.com&gt;
</content>
</entry>
<entry>
<title>phy: Change mii_bus id field to a string</title>
<updated>2008-04-17T00:09:35+00:00</updated>
<author>
<name>Andy Fleming</name>
<email>afleming@freescale.com</email>
</author>
<published>2008-04-10T00:38:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=9d9326d3bc0ea9a8bbe40bf3e5e66c7b9858caa0'/>
<id>urn:sha1:9d9326d3bc0ea9a8bbe40bf3e5e66c7b9858caa0</id>
<content type='text'>
Having the id field be an int was making more complex bus topologies
excessively difficult.  For now, just convert it to a string, and
change all instances of "bus-&gt;id = val" to
snprintf(id, MII_BUS_ID_LEN, "%x", val).

Signed-off-by: Andy Fleming &lt;afleming@freescale.com&gt;
Signed-off-by: Jeff Garzik &lt;jgarzik@redhat.com&gt;
</content>
</entry>
<entry>
<title>net/phy/fixed.c: fix a use-after-free</title>
<updated>2008-02-11T16:15:36+00:00</updated>
<author>
<name>Adrian Bunk</name>
<email>bunk@kernel.org</email>
</author>
<published>2008-02-02T21:15:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=651be3a2ba95bc30fcb737985741736e63231cdf'/>
<id>urn:sha1:651be3a2ba95bc30fcb737985741736e63231cdf</id>
<content type='text'>
This patch fixes a use-after-free introduced by
commit a79d8e93d300adb84cccc38ac396cfb118c238ad and spotted by the
Coverity checker.

Signed-off-by: Adrian Bunk &lt;bunk@kernel.org&gt;
Signed-off-by: Jeff Garzik &lt;jeff@garzik.org&gt;
</content>
</entry>
<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.radix-linux.su/kernel/linux.git/commit/?id=a79d8e93d300adb84cccc38ac396cfb118c238ad'/>
<id>urn:sha1: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>
</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.radix-linux.su/kernel/linux.git/commit/?id=7c32f470f4f6a0fdc6944cefcd22f288e59a0ae2'/>
<id>urn:sha1: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>
</entry>
<entry>
<title>fix compiler warning in fixed.c</title>
<updated>2007-05-24T21:20:49+00:00</updated>
<author>
<name>Denver Gingerich</name>
<email>denver@ossguy.com</email>
</author>
<published>2007-05-23T21:34:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=239dc572b8e6ecde91afe96d2426ddc2afd4695d'/>
<id>urn:sha1:239dc572b8e6ecde91afe96d2426ddc2afd4695d</id>
<content type='text'>
Correct the following compiler warning (and warnings resulting from
the correction):
warning: 'fixed_mdio_register_device' defined but not used

Signed-off-by: Denver Gingerich &lt;denver@ossguy.com&gt;
Cc: Vitaly Bordug &lt;vbordug@ru.mvista.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Jeff Garzik &lt;jeff@garzik.org&gt;
</content>
</entry>
<entry>
<title>PHY: remove rwsem use from phy core</title>
<updated>2007-04-27T17:57:31+00:00</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@suse.de</email>
</author>
<published>2007-04-09T15:52:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=87aebe078e450795d336d20304d01095251ff9fa'/>
<id>urn:sha1:87aebe078e450795d336d20304d01095251ff9fa</id>
<content type='text'>
The subsystem rwsem is not used by the driver core at all, so the use of
it in the phy code doesn't make any sense.  They might possibly
want to use a local lock, but I am unsure about that.

Cc: netdev &lt;netdev@vger.kernel.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
</feed>
