1 From 7653ccf871836bc9a49f55df82d7f14596115146 Mon Sep 17 00:00:00 2001
2 From: popcornmix <popcornmix@gmail.com>
3 Date: Wed, 3 Jul 2013 11:39:46 +0100
4 Subject: [PATCH 073/174] dwc_otg: fix device attributes and avoid kernel
8 drivers/usb/host/dwc_otg/dwc_otg_attr.c | 12 ++++++------
9 1 file changed, 6 insertions(+), 6 deletions(-)
11 --- a/drivers/usb/host/dwc_otg/dwc_otg_attr.c
12 +++ b/drivers/usb/host/dwc_otg/dwc_otg_attr.c
13 @@ -909,7 +909,7 @@ static ssize_t regdump_show(struct devic
14 return sprintf(buf, "Register Dump\n");
17 -DEVICE_ATTR(regdump, S_IRUGO | S_IWUSR, regdump_show, 0);
18 +DEVICE_ATTR(regdump, S_IRUGO, regdump_show, 0);
21 * Dump global registers and either host or device registers (depending on the
22 @@ -925,7 +925,7 @@ static ssize_t spramdump_show(struct dev
23 return sprintf(buf, "SPRAM Dump\n");
26 -DEVICE_ATTR(spramdump, S_IRUGO | S_IWUSR, spramdump_show, 0);
27 +DEVICE_ATTR(spramdump, S_IRUGO, spramdump_show, 0);
30 * Dump the current hcd state.
31 @@ -940,7 +940,7 @@ static ssize_t hcddump_show(struct devic
32 return sprintf(buf, "HCD Dump\n");
35 -DEVICE_ATTR(hcddump, S_IRUGO | S_IWUSR, hcddump_show, 0);
36 +DEVICE_ATTR(hcddump, S_IRUGO, hcddump_show, 0);
39 * Dump the average frame remaining at SOF. This can be used to
40 @@ -958,7 +958,7 @@ static ssize_t hcd_frrem_show(struct dev
41 return sprintf(buf, "HCD Dump Frame Remaining\n");
44 -DEVICE_ATTR(hcd_frrem, S_IRUGO | S_IWUSR, hcd_frrem_show, 0);
45 +DEVICE_ATTR(hcd_frrem, S_IRUGO, hcd_frrem_show, 0);
48 * Displays the time required to read the GNPTXFSIZ register many times (the
49 @@ -986,7 +986,7 @@ static ssize_t rd_reg_test_show(struct d
50 RW_REG_COUNT, time * MSEC_PER_JIFFIE, time);
53 -DEVICE_ATTR(rd_reg_test, S_IRUGO | S_IWUSR, rd_reg_test_show, 0);
54 +DEVICE_ATTR(rd_reg_test, S_IRUGO, rd_reg_test_show, 0);
57 * Displays the time required to write the GNPTXFSIZ register many times (the
58 @@ -1014,7 +1014,7 @@ static ssize_t wr_reg_test_show(struct d
59 RW_REG_COUNT, time * MSEC_PER_JIFFIE, time);
62 -DEVICE_ATTR(wr_reg_test, S_IRUGO | S_IWUSR, wr_reg_test_show, 0);
63 +DEVICE_ATTR(wr_reg_test, S_IRUGO, wr_reg_test_show, 0);
65 #ifdef CONFIG_USB_DWC_OTG_LPM