Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 234997
b: refs/heads/master
c: 8d7b1c7
h: refs/heads/master
i:
  234995: b56f22e
v: v3
  • Loading branch information
Joe Perches authored and Jeff Garzik committed Mar 14, 2011
1 parent 820bf02 commit 72f43ab
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 21 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a17139b6f63709b2d409c027f8ab401f5aa136d3
refs/heads/master: 8d7b1c70b3c1aac4b63109f5c73f732f1d63fad6
7 changes: 4 additions & 3 deletions trunk/drivers/ata/pata_hpt366.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* Look into engine reset on timeout errors. Should not be required.
*/

#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt

#include <linux/kernel.h>
#include <linux/module.h>
Expand All @@ -25,7 +26,7 @@
#include <linux/libata.h>

#define DRV_NAME "pata_hpt366"
#define DRV_VERSION "0.6.10"
#define DRV_VERSION "0.6.11"

struct hpt_clock {
u8 xfer_mode;
Expand Down Expand Up @@ -160,8 +161,8 @@ static int hpt_dma_blacklisted(const struct ata_device *dev, char *modestr,

while (list[i] != NULL) {
if (!strcmp(list[i], model_num)) {
pr_warning(DRV_NAME ": %s is not supported for %s.\n",
modestr, list[i]);
pr_warn("%s is not supported for %s\n",
modestr, list[i]);
return 1;
}
i++;
Expand Down
23 changes: 12 additions & 11 deletions trunk/drivers/ata/pata_hpt37x.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* Look into engine reset on timeout errors. Should not be required.
*/

#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt

#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/pci.h>
Expand All @@ -24,7 +26,7 @@
#include <linux/libata.h>

#define DRV_NAME "pata_hpt37x"
#define DRV_VERSION "0.6.22"
#define DRV_VERSION "0.6.23"

struct hpt_clock {
u8 xfer_speed;
Expand Down Expand Up @@ -229,8 +231,8 @@ static int hpt_dma_blacklisted(const struct ata_device *dev, char *modestr,

while (list[i] != NULL) {
if (!strcmp(list[i], model_num)) {
pr_warning(DRV_NAME ": %s is not supported for %s.\n",
modestr, list[i]);
pr_warn("%s is not supported for %s\n",
modestr, list[i]);
return 1;
}
i++;
Expand Down Expand Up @@ -863,8 +865,8 @@ static int hpt37x_init_one(struct pci_dev *dev, const struct pci_device_id *id)
chip_table = &hpt372;
break;
default:
pr_err(DRV_NAME ": Unknown HPT366 subtype, "
"please report (%d).\n", rev);
pr_err("Unknown HPT366 subtype, please report (%d)\n",
rev);
return -ENODEV;
}
break;
Expand Down Expand Up @@ -904,8 +906,7 @@ static int hpt37x_init_one(struct pci_dev *dev, const struct pci_device_id *id)
*ppi = &info_hpt374_fn1;
break;
default:
pr_err(DRV_NAME ": PCI table is bogus, please report (%d).\n",
dev->device);
pr_err("PCI table is bogus, please report (%d)\n", dev->device);
return -ENODEV;
}
/* Ok so this is a chip we support */
Expand Down Expand Up @@ -953,7 +954,7 @@ static int hpt37x_init_one(struct pci_dev *dev, const struct pci_device_id *id)
u8 sr;
u32 total = 0;

pr_warning(DRV_NAME ": BIOS has not set timing clocks.\n");
pr_warn("BIOS has not set timing clocks\n");

/* This is the process the HPT371 BIOS is reported to use */
for (i = 0; i < 128; i++) {
Expand Down Expand Up @@ -1009,15 +1010,15 @@ static int hpt37x_init_one(struct pci_dev *dev, const struct pci_device_id *id)
(f_high << 16) | f_low | 0x100);
}
if (adjust == 8) {
pr_err(DRV_NAME ": DPLL did not stabilize!\n");
pr_err("DPLL did not stabilize!\n");
return -ENODEV;
}
if (dpll == 3)
private_data = (void *)hpt37x_timings_66;
else
private_data = (void *)hpt37x_timings_50;

pr_info(DRV_NAME ": bus clock %dMHz, using %dMHz DPLL.\n",
pr_info("bus clock %dMHz, using %dMHz DPLL\n",
MHz[clock_slot], MHz[dpll]);
} else {
private_data = (void *)chip_table->clocks[clock_slot];
Expand All @@ -1032,7 +1033,7 @@ static int hpt37x_init_one(struct pci_dev *dev, const struct pci_device_id *id)
if (clock_slot < 2 && ppi[0] == &info_hpt370a)
ppi[0] = &info_hpt370a_33;

pr_info(DRV_NAME ": %s using %dMHz bus clock.\n",
pr_info("%s using %dMHz bus clock\n",
chip_table->name, MHz[clock_slot]);
}

Expand Down
13 changes: 7 additions & 6 deletions trunk/drivers/ata/pata_hpt3x2n.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
* Work out best PLL policy
*/

#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt

#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/pci.h>
Expand All @@ -25,7 +27,7 @@
#include <linux/libata.h>

#define DRV_NAME "pata_hpt3x2n"
#define DRV_VERSION "0.3.14"
#define DRV_VERSION "0.3.15"

enum {
HPT_PCI_FAST = (1 << 31),
Expand Down Expand Up @@ -418,7 +420,7 @@ static int hpt3x2n_pci_clock(struct pci_dev *pdev)
u16 sr;
u32 total = 0;

pr_warning(DRV_NAME ": BIOS clock data not set.\n");
pr_warn("BIOS clock data not set\n");

/* This is the process the HPT371 BIOS is reported to use */
for (i = 0; i < 128; i++) {
Expand Down Expand Up @@ -528,8 +530,7 @@ static int hpt3x2n_init_one(struct pci_dev *dev, const struct pci_device_id *id)
ppi[0] = &info_hpt372n;
break;
default:
pr_err(DRV_NAME ": PCI table is bogus, please report (%d).\n",
dev->device);
pr_err("PCI table is bogus, please report (%d)\n", dev->device);
return -ENODEV;
}

Expand Down Expand Up @@ -578,11 +579,11 @@ static int hpt3x2n_init_one(struct pci_dev *dev, const struct pci_device_id *id)
pci_write_config_dword(dev, 0x5C, (f_high << 16) | f_low);
}
if (adjust == 8) {
pr_err(DRV_NAME ": DPLL did not stabilize!\n");
pr_err("DPLL did not stabilize!\n");
return -ENODEV;
}

pr_info(DRV_NAME ": bus clock %dMHz, using 66MHz DPLL.\n", pci_mhz);
pr_info("bus clock %dMHz, using 66MHz DPLL\n", pci_mhz);

/*
* Set our private data up. We only need a few flags
Expand Down

0 comments on commit 72f43ab

Please sign in to comment.