···882S: USA883884N: Randy Dunlap885-E: rddunlap@osdl.org886W: http://www.xenotime.net/linux/linux.html887W: http://www.linux-usb.org888D: Linux-USB subsystem, USB core/UHCI/printer/storage drivers889D: x86 SMP, ACPI, bootflag hacking890-S: 12725 SW Millikan Way, Suite 400891-S: Beaverton, Oregon 97005892S: USA893894N: Bob Dunlop
···882S: USA883884N: Randy Dunlap885+E: rdunlap@xenotime.net886W: http://www.xenotime.net/linux/linux.html887W: http://www.linux-usb.org888D: Linux-USB subsystem, USB core/UHCI/printer/storage drivers889D: x86 SMP, ACPI, bootflag hacking890+S: (ask for current address)0891S: USA892893N: Bob Dunlop
+1-1
arch/i386/pci/fixup.c
···253#define MAX_PCIEROOT 6254static int quirk_aspm_offset[MAX_PCIEROOT << 3];255256-#define GET_INDEX(a, b) (((a - PCI_DEVICE_ID_INTEL_MCH_PA) << 3) + b)257258static int quirk_pcie_aspm_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *value)259{
···253#define MAX_PCIEROOT 6254static int quirk_aspm_offset[MAX_PCIEROOT << 3];255256+#define GET_INDEX(a, b) ((((a) - PCI_DEVICE_ID_INTEL_MCH_PA) << 3) + ((b) & 7))257258static int quirk_pcie_aspm_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *value)259{
+2
arch/ppc/kernel/setup.c
···753 strlcpy(saved_command_line, cmd_line, COMMAND_LINE_SIZE);754 *cmdline_p = cmd_line;75500756 /* set up the bootmem stuff with available memory */757 do_init_bootmem();758 if ( ppc_md.progress ) ppc_md.progress("setup_arch: bootmem", 0x3eab);
···753 strlcpy(saved_command_line, cmd_line, COMMAND_LINE_SIZE);754 *cmdline_p = cmd_line;755756+ parse_early_param();757+758 /* set up the bootmem stuff with available memory */759 do_init_bootmem();760 if ( ppc_md.progress ) ppc_md.progress("setup_arch: bootmem", 0x3eab);
···52 if ((buffer_size - length <= 0) || (i >= num_envp))53 return -ENOMEM;54000000000055 envp[i] = NULL;5657 return 0;58}59-60-static int pci_visit_bus (struct pci_visit * fn, struct pci_bus_wrapped *wrapped_bus, struct pci_dev_wrapped *wrapped_parent)61-{62- struct list_head *ln;63- struct pci_dev *dev;64- struct pci_dev_wrapped wrapped_dev;65- int result = 0;66-67- pr_debug("PCI: Scanning bus %04x:%02x\n", pci_domain_nr(wrapped_bus->bus),68- wrapped_bus->bus->number);69-70- if (fn->pre_visit_pci_bus) {71- result = fn->pre_visit_pci_bus(wrapped_bus, wrapped_parent);72- if (result)73- return result;74- }75-76- ln = wrapped_bus->bus->devices.next; 77- while (ln != &wrapped_bus->bus->devices) {78- dev = pci_dev_b(ln);79- ln = ln->next;80-81- memset(&wrapped_dev, 0, sizeof(struct pci_dev_wrapped));82- wrapped_dev.dev = dev;83-84- result = pci_visit_dev(fn, &wrapped_dev, wrapped_bus);85- if (result)86- return result;87- }88-89- if (fn->post_visit_pci_bus)90- result = fn->post_visit_pci_bus(wrapped_bus, wrapped_parent);91-92- return result;93-}94-95-static int pci_visit_bridge (struct pci_visit * fn,96- struct pci_dev_wrapped *wrapped_dev,97- struct pci_bus_wrapped *wrapped_parent)98-{99- struct pci_bus *bus;100- struct pci_bus_wrapped wrapped_bus;101- int result = 0;102-103- pr_debug("PCI: Scanning bridge %s\n", pci_name(wrapped_dev->dev));104-105- if (fn->visit_pci_dev) {106- result = fn->visit_pci_dev(wrapped_dev, wrapped_parent);107- if (result)108- return result;109- }110-111- bus = wrapped_dev->dev->subordinate;112- if (bus) {113- memset(&wrapped_bus, 0, sizeof(struct pci_bus_wrapped));114- wrapped_bus.bus = bus;115-116- result = pci_visit_bus(fn, &wrapped_bus, wrapped_dev);117- }118- return result;119-}120-121-/**122- * pci_visit_dev - scans the pci buses.123- * @fn: callback functions that are called while visiting124- * @wrapped_dev: the device to scan125- * @wrapped_parent: the bus where @wrapped_dev is connected to126- *127- * Every bus and every function is presented to a custom128- * function that can act upon it.129- */130-int pci_visit_dev(struct pci_visit *fn, struct pci_dev_wrapped *wrapped_dev,131- struct pci_bus_wrapped *wrapped_parent)132-{133- struct pci_dev* dev = wrapped_dev ? wrapped_dev->dev : NULL;134- int result = 0;135-136- if (!dev)137- return 0;138-139- if (fn->pre_visit_pci_dev) {140- result = fn->pre_visit_pci_dev(wrapped_dev, wrapped_parent);141- if (result)142- return result;143- }144-145- switch (dev->class >> 8) {146- case PCI_CLASS_BRIDGE_PCI:147- result = pci_visit_bridge(fn, wrapped_dev,148- wrapped_parent);149- if (result)150- return result;151- break;152- default:153- pr_debug("PCI: Scanning device %s\n", pci_name(dev));154- if (fn->visit_pci_dev) {155- result = fn->visit_pci_dev (wrapped_dev,156- wrapped_parent);157- if (result)158- return result;159- }160- }161-162- if (fn->post_visit_pci_dev)163- result = fn->post_visit_pci_dev(wrapped_dev, wrapped_parent);164-165- return result;166-}167-EXPORT_SYMBOL(pci_visit_dev);
···130 u8 slot_bus; /* Bus where the slots handled by this controller sit */131 u8 ctrlcap;132 u16 vendor_id;0133};134135struct irq_mapping {
···130 u8 slot_bus; /* Bus where the slots handled by this controller sit */131 u8 ctrlcap;132 u16 vendor_id;133+ u8 cap_base;134};135136struct irq_mapping {
···32extern unsigned char pci_bus_max_busnr(struct pci_bus *bus);33extern int pci_bus_find_capability (struct pci_bus *bus, unsigned int devfn, int cap);3435-struct pci_dev_wrapped {36- struct pci_dev *dev;37- void *data;38-};39-40-struct pci_bus_wrapped {41- struct pci_bus *bus;42- void *data;43-};44-45-struct pci_visit {46- int (* pre_visit_pci_bus) (struct pci_bus_wrapped *,47- struct pci_dev_wrapped *);48- int (* post_visit_pci_bus) (struct pci_bus_wrapped *,49- struct pci_dev_wrapped *);50-51- int (* pre_visit_pci_dev) (struct pci_dev_wrapped *,52- struct pci_bus_wrapped *);53- int (* visit_pci_dev) (struct pci_dev_wrapped *,54- struct pci_bus_wrapped *);55- int (* post_visit_pci_dev) (struct pci_dev_wrapped *,56- struct pci_bus_wrapped *);57-};58-59-extern int pci_visit_dev(struct pci_visit *fn,60- struct pci_dev_wrapped *wrapped_dev,61- struct pci_bus_wrapped *wrapped_parent);62extern void pci_remove_legacy_files(struct pci_bus *bus);6364/* Lock for read/write access to pci device and bus lists */
···32extern unsigned char pci_bus_max_busnr(struct pci_bus *bus);33extern int pci_bus_find_capability (struct pci_bus *bus, unsigned int devfn, int cap);3400000000000000000000000000035extern void pci_remove_legacy_files(struct pci_bus *bus);3637/* Lock for read/write access to pci device and bus lists */
···347 */348 if ((dev->flags & ATA_DFLAG_LBA48) &&349 ((dev->flags & ATA_DFLAG_LOCK_SECTORS) == 0)) {350+ /*351+ * do not overwrite sdev->host->max_sectors, since352+ * other drives on this host may not support LBA48353+ */354 blk_queue_max_sectors(sdev->request_queue, 2048);355 }356 }
+1-1
drivers/scsi/sata_svw.c
···395396 /* Clear a magic bit in SCR1 according to Darwin, those help397 * some funky seagate drives (though so far, those were already398- * set by the firmware on the machines I had access to399 */400 writel(readl(mmio_base + K2_SATA_SICR1_OFFSET) & ~0x00040000,401 mmio_base + K2_SATA_SICR1_OFFSET);
···395396 /* Clear a magic bit in SCR1 according to Darwin, those help397 * some funky seagate drives (though so far, those were already398+ * set by the firmware on the machines I had access to)399 */400 writel(readl(mmio_base + K2_SATA_SICR1_OFFSET) & ~0x00040000,401 mmio_base + K2_SATA_SICR1_OFFSET);
···225 int errno)226{227 char nbuf[16];228+ const char *errstr;229230+ /* Special case: if the error is EROFS, and we're not already231+ * inside a transaction, then there's really no point in logging232+ * an error. */233+ if (errno == -EROFS && journal_current_handle() == NULL &&234+ (sb->s_flags & MS_RDONLY))235+ return;236+237+ errstr = ext3_decode_error(sb, errno, nbuf);238 printk (KERN_CRIT "EXT3-fs error (device %s) in %s: %s\n",239 sb->s_id, function, errstr);240