Re: [PATCH] libata: Handle bay devices in dock stations

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andrew Morton
Date: Wednesday, May 28, 2008 - 8:02 pm

On Wed, 28 May 2008 16:38:57 +0200 Holger Macht <hmacht@suse.de> wrote:


This might look nicer (and safer) if it used the

	union acpi_object arg = {
		.foo = bar,
		...
	};

form.  However this can cause gcc to emit poor code.


It would be better if the printk were to self-identify where it is
coming from.  If your kernel just blurts "Failed to evaluate _EJ0!"
it's a bit of a head-scratcher.

"libata-acpi: failed to evaluate _EJ0", perhaps?



I guess the significance of `dev==0' is known to those who are steeped
in ata_acpi_handle_hotplug() knowledge, but it's pretty inscrutable to
the occasional visitor.  Some comments would help.


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] libata: Handle bay devices in dock stations, Holger Macht, (Wed May 28, 7:38 am)
Re: [PATCH] libata: Handle bay devices in dock stations, Andrew Morton, (Wed May 28, 8:02 pm)
Re: [PATCH] libata: Handle bay devices in dock stations, Matthew Garrett, (Thu May 29, 6:22 am)
Re: [PATCH] libata: Handle bay devices in dock stations, Matthew Garrett, (Thu May 29, 6:32 am)
Re: [PATCH] libata: Handle bay devices in dock stations, Holger Macht, (Thu May 29, 6:33 am)
Re: [PATCH] libata: Handle bay devices in dock stations, Holger Macht, (Thu May 29, 6:39 am)
Re: [PATCH] libata: Handle bay devices in dock stations, Matthew Garrett, (Thu May 29, 6:40 am)
Re: [PATCH] libata: Handle bay devices in dock stations, Matthew Garrett, (Thu May 29, 7:02 am)
Re: [PATCH] libata: Handle bay devices in dock stations, Holger Macht, (Thu May 29, 7:14 am)
Re: [PATCH] libata: Handle bay devices in dock stations, Matthew Garrett, (Thu May 29, 7:35 am)
Re: [PATCH] libata: Handle bay devices in dock stations, Matthew Garrett, (Thu May 29, 7:49 am)
Re: [PATCH] libata: Handle bay devices in dock stations, Holger Macht, (Thu May 29, 9:32 am)
Re: [PATCH] libata: Handle bay devices in dock stations, Holger Macht, (Thu May 29, 9:46 am)
Re: [PATCH] libata: Handle bay devices in dock stations, Henrique de Moraes H ..., (Thu May 29, 10:51 am)
Re: [PATCH] libata: Handle bay devices in dock stations, Matthew Garrett, (Tue Jun 3, 11:13 am)
Re: [PATCH] libata: Handle bay devices in dock stations, Holger Macht, (Tue Jun 3, 11:23 am)
Re: [PATCH] libata: Handle bay devices in dock stations, Holger Macht, (Tue Jun 3, 11:27 am)
Re: [PATCH] libata: Handle bay devices in dock stations, Matthew Garrett, (Tue Jun 3, 11:29 am)
Re: [PATCH] libata: Handle bay devices in dock stations, Matthew Garrett, (Sun Jun 8, 6:48 pm)