Re: [Pcihpd-discuss] [PATCH 1/4] Fix PCIe hotplug for non-ACPI ExpressCard slots (version 2)

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Mark Lord <lkml@...>
Cc: Kristen Carlson Accardi <kristen.c.accardi@...>, Linux Kernel <linux-kernel@...>, Greg KH <greg@...>, Andrew Morton <akpm@...>, Theodore Tso <tytso@...>, <pcihpd-discuss@...>
Date: Tuesday, October 16, 2007 - 11:29 pm

On Tue, Oct 16, 2007 at 09:54:08PM -0400, Mark Lord wrote:

I'd argue these comments fall under "stating the bleedin' obvious", but
that's Kristen's call.


That doesn't seem like an obviously correct change to me.  Can you
explain?


Normal style would be more like ...

	if (((cap_reg & SLOT_IMPL) == 0) ||
	    (((cap_reg & DEV_PORT_TYPE) != 0x0040) &&
	     ((cap_reg & DEV_PORT_TYPE) != 0x0060))) {
		dbg("%s : This is not a root port or the port is not "
		    "connected to a slot\n", __FUNCTION__);


Why did you choose to break the format string?

	info("HPC vendor_id %x device_id %x ss_vid %x ss_did %x\n",
		pdev->vendor, pdev->device,
		pdev->subsystem_vendor, pdev->subsystem_device);


Just delete the | 0x00?


*boggle*
	temp_word |= intr_enable;

-- 
Intel are signing my paycheques ... these opinions are still mine
"Bill, look, we understand that you're interested in selling us this
operating system, but compare it to ours.  We can't possibly take such
a retrograde step."
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: PCIe Hotplug: NFG unless I boot with card already inser..., Kristen Carlson Accardi, (Tue Oct 16, 11:46 am)
Re: PCIe Hotplug: NFG unless I boot with card already inser..., Kristen Carlson Accardi, (Tue Oct 16, 4:29 pm)
Re: PCIe Hotplug: NFG unless I boot with card already inser..., Kristen Carlson Accardi, (Tue Oct 16, 2:43 pm)
Re: PCIe Hotplug: NFG unless I boot with card already inser..., Kristen Carlson Accardi, (Tue Oct 16, 4:07 pm)
Re: [Pcihpd-discuss] [PATCH 1/4] Fix PCIe hotplug for non-AC..., Matthew Wilcox, (Tue Oct 16, 11:29 pm)
Re: [Pcihpd-discuss] [PATCH 2/4] Fix PCIe hotplug for non-AC..., Kristen Carlson Accardi, (Wed Oct 17, 7:54 pm)
Re: [PATCH 4/4] Fix PCIe hotplug for non-ACPI ExpressCard sl..., Kristen Carlson Accardi, (Wed Oct 17, 8:01 pm)
Re: [Pcihpd-discuss] [PATCH] Fix PCIe hotplug for Dell noteb..., Kristen Carlson Accardi, (Tue Oct 16, 6:41 pm)
Re: [PATCH] Fix PCIe hotplug for Dell notebook ExpressCard s..., Kristen Carlson Accardi, (Tue Oct 16, 6:04 pm)
Re: PCIe Hotplug: NFG unless I boot with card already inser..., Kristen Carlson Accardi, (Tue Oct 16, 5:01 pm)
Re: PCIe Hotplug: NFG unless I boot with card already inser..., Kristen Carlson Accardi, (Tue Oct 16, 3:51 pm)