linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tejun Heo <tj@kernel.org>
To: Levente Kurusa <levex@linux.com>
Cc: "linux-ide@vger.kernel.org" <linux-ide@vger.kernel.org>
Subject: Re: [PATCH RESEND] ata_piix: minor typo and a printk fix
Date: Fri, 27 Sep 2013 09:53:48 -0400	[thread overview]
Message-ID: <20130927135348.GD3205@htj.dyndns.org> (raw)
In-Reply-To: <52458C14.8010308@linux.com>

Hello,

On Fri, Sep 27, 2013 at 03:45:56PM +0200, Levente Kurusa wrote:
> @@ -1364,38 +1364,56 @@ static const int *piix_init_sata_map(struct
> pci_dev *pdev,
>  	const int *map;
>  	int i, invalid_map = 0;
>  	u8 map_value;
> +	char *mapdata[4];

	char buf[32];
	char *p = buf, *end = buf + sizeof(buf);

> 
>  	pci_read_config_byte(pdev, ICH5_PMR, &map_value);
> 
>  	map = map_db->map[map_value & map_db->mask];
> 
> -	dev_info(&pdev->dev, "MAP [");
>  	for (i = 0; i < 4; i++) {
>  		switch (map[i]) {
>  		case RV:
>  			invalid_map = 1;
> -			pr_cont(" XX");
> +			mapdata[i] = " XX";
>  			break;
> 
>  		case NA:
> -			pr_cont(" --");
> +			mapdata[i] = " --";
>  			break;
> 
>  		case IDE:
>  			WARN_ON((i & 1) || map[i + 1] != IDE);
>  			pinfo[i / 2] = piix_port_info[ich_pata_100];
>  			i++;
> -			pr_cont(" IDE IDE");
> +			mapdata[i] = " IDE IDE";
>  			break;
> 
> +		case P0:
> +			mapdata[i] = " P0";
> +			goto flag;
> +
> +		case P1:
> +			mapdata[i] = " P1";
> +			goto flag;
> +
> +		case P2:
> +			mapdata[i] = " P2";
> +			goto flag;
> +
> +		case P3:
> +			mapdata[i] = " P3";
> +			goto flag;
> +

	p += scnprintf(p, end - p, " P%d", map[i]);

Thanks.

-- 
tejun

  reply	other threads:[~2013-09-27 13:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-27 13:45 [PATCH RESEND] ata_piix: minor typo and a printk fix Levente Kurusa
2013-09-27 13:53 ` Tejun Heo [this message]
2013-09-27 14:04   ` Levente Kurusa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130927135348.GD3205@htj.dyndns.org \
    --to=tj@kernel.org \
    --cc=levex@linux.com \
    --cc=linux-ide@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).