Patchwork pci: maxreadreq: Audio device to chipset devices.

login
register
mail settings
Submitter Alex Hung
Date April 23, 2013, 7:34 a.m.
Message ID <1366702460-32305-1-git-send-email-alex.hung@canonical.com>
Download mbox | patch
Permalink /patch/238775/
State Accepted
Headers show

Comments

Alex Hung - April 23, 2013, 7:34 a.m.
In Intel chipset databook, Audio's "Max Read Request" is hardwired to 0
enabling 128B maximum read request size.

Signed-off-by: Alex Hung <alex.hung@canonical.com>
---
 src/pci/maxreadreq/maxreadreq.c |    2 ++
 1 file changed, 2 insertions(+)
Colin King - April 23, 2013, 8:16 a.m.
On 23/04/13 08:34, Alex Hung wrote:
> In Intel chipset databook, Audio's "Max Read Request" is hardwired to 0
> enabling 128B maximum read request size.
>
> Signed-off-by: Alex Hung <alex.hung@canonical.com>
> ---
>   src/pci/maxreadreq/maxreadreq.c |    2 ++
>   1 file changed, 2 insertions(+)
>
> diff --git a/src/pci/maxreadreq/maxreadreq.c b/src/pci/maxreadreq/maxreadreq.c
> index 0168356..b95e579 100644
> --- a/src/pci/maxreadreq/maxreadreq.c
> +++ b/src/pci/maxreadreq/maxreadreq.c
> @@ -103,6 +103,8 @@ static int maxreadreq_test1(fwts_framework *fw)
>   			continue;
>   		if (strcmp(current_type, "System peripheral")==0)
>   			continue;
> +		if (strcmp(current_type, "Audio device")==0)
> +			continue;
>
>   		c = strstr(line, "MaxReadReq ");
>   		if (c) {
>
Acked-by: Colin Ian King <colin.king@canonical.com>
Ivan Hu - April 24, 2013, 8:32 a.m.
On 04/23/2013 03:34 PM, Alex Hung wrote:
> In Intel chipset databook, Audio's "Max Read Request" is hardwired to 0
> enabling 128B maximum read request size.
>
> Signed-off-by: Alex Hung <alex.hung@canonical.com>
> ---
>   src/pci/maxreadreq/maxreadreq.c |    2 ++
>   1 file changed, 2 insertions(+)
>
> diff --git a/src/pci/maxreadreq/maxreadreq.c b/src/pci/maxreadreq/maxreadreq.c
> index 0168356..b95e579 100644
> --- a/src/pci/maxreadreq/maxreadreq.c
> +++ b/src/pci/maxreadreq/maxreadreq.c
> @@ -103,6 +103,8 @@ static int maxreadreq_test1(fwts_framework *fw)
>   			continue;
>   		if (strcmp(current_type, "System peripheral")==0)
>   			continue;
> +		if (strcmp(current_type, "Audio device")==0)
> +			continue;
>
>   		c = strstr(line, "MaxReadReq ");
>   		if (c) {
>

Acked-by: Ivan Hu <ivan.hu@canonical.com>

Patch

diff --git a/src/pci/maxreadreq/maxreadreq.c b/src/pci/maxreadreq/maxreadreq.c
index 0168356..b95e579 100644
--- a/src/pci/maxreadreq/maxreadreq.c
+++ b/src/pci/maxreadreq/maxreadreq.c
@@ -103,6 +103,8 @@  static int maxreadreq_test1(fwts_framework *fw)
 			continue;
 		if (strcmp(current_type, "System peripheral")==0)
 			continue;
+		if (strcmp(current_type, "Audio device")==0)
+			continue;
 
 		c = strstr(line, "MaxReadReq ");
 		if (c) {