diff options
author | Felipe Contreras <felipe.contreras@gmail.com> | 2010-05-16 16:31:07 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-05-20 16:21:49 -0400 |
commit | 39f2f080b39ceb7ccbc0da4bc13fea5698f7fa3a (patch) | |
tree | 88661978a83a3b2921df9728a88c1fdf63998c86 /drivers/usb | |
parent | cbd3af54642ec1146bac0479538d495fc474318e (diff) |
usb-storage: always print quirks
Right now quirks are printed only when the are manually overriden with
the module parameters. It's not so useful to remind the user that his
parameters are correctly applied; what is useful is to print out the
quirks the user is not aware are being applied.
So let's do the smart thing and print the quirks when they are present.
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Cc: Alan Stern <stern@rowland.harvard.edu>
Cc: Matthew Dharm <mdharm-usb@one-eyed-alien.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/storage/usb.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/usb/storage/usb.c b/drivers/usb/storage/usb.c index 55c526b81c7c..a7d0bf9d92a7 100644 --- a/drivers/usb/storage/usb.c +++ b/drivers/usb/storage/usb.c | |||
@@ -498,9 +498,6 @@ static void adjust_quirks(struct us_data *us) | |||
498 | } | 498 | } |
499 | } | 499 | } |
500 | us->fflags = (us->fflags & ~mask) | f; | 500 | us->fflags = (us->fflags & ~mask) | f; |
501 | dev_info(&us->pusb_intf->dev, "Quirks match for " | ||
502 | "vid %04x pid %04x: %x\n", | ||
503 | vid, pid, f); | ||
504 | } | 501 | } |
505 | 502 | ||
506 | /* Get the unusual_devs entries and the string descriptors */ | 503 | /* Get the unusual_devs entries and the string descriptors */ |
@@ -535,6 +532,12 @@ static int get_device_info(struct us_data *us, const struct usb_device_id *id, | |||
535 | if (dev->speed != USB_SPEED_HIGH) | 532 | if (dev->speed != USB_SPEED_HIGH) |
536 | us->fflags &= ~US_FL_GO_SLOW; | 533 | us->fflags &= ~US_FL_GO_SLOW; |
537 | 534 | ||
535 | if (us->fflags) | ||
536 | dev_info(pdev, "Quirks match for vid %04x pid %04x: %lx\n", | ||
537 | le16_to_cpu(dev->descriptor.idVendor), | ||
538 | le16_to_cpu(dev->descriptor.idProduct), | ||
539 | us->fflags); | ||
540 | |||
538 | /* Log a message if a non-generic unusual_dev entry contains an | 541 | /* Log a message if a non-generic unusual_dev entry contains an |
539 | * unnecessary subclass or protocol override. This may stimulate | 542 | * unnecessary subclass or protocol override. This may stimulate |
540 | * reports from users that will help us remove unneeded entries | 543 | * reports from users that will help us remove unneeded entries |