From: Roland Dreier <rdreier@cisco.com>
To: "Bryan O'Sullivan" <bos@pathscale.com>
Cc: rolandd@cisco.com, gregkh@suse.de, akpm@osdl.org,
davem@davemloft.net, linux-kernel@vger.kernel.org,
openib-general@openib.org
Subject: Re: [PATCH 4 of 20] ipath - support for HyperTransport devices
Date: Thu, 09 Mar 2006 15:01:49 -0800 [thread overview]
Message-ID: <ada3bhrgr36.fsf@cisco.com> (raw)
In-Reply-To: <0b1b4f4c093e2db6153e.1141922817@localhost.localdomain> (Bryan O'Sullivan's message of "Thu, 9 Mar 2006 08:46:57 -0800")
> + /* the HT capability type byte is 3 bytes after the
> + * capability byte.
> + */
> + if (pci_read_config_byte(pdev, pos + 3, &cap_type)) {
> + dev_info(&pdev->dev, "Couldn't read config "
> + "command @ %d\n", pos);
> + continue;
> + }
> + if (!(cap_type & 0xE0)) {
It seems like all these hypertransport magic constants should be in a
general .h somewhere. I'm not sure if it makes sense to put them in
<linux/pci.h>, or start a <linux/hypertransport.h>.
> + else if (linkctrl & (0xf << 8)) {
> + ipath_cdbg(
> + VERBOSE,
> + "Clear linkctrl%d CRC "
> + "Error bits %x\n", i,
> + linkctrl & (0xf << 8));
> + /*
> + * now write them back to clear
> + * the error.
> + */
> + pci_write_config_byte(
> + pdev, link_off,
> + linkctrl & (0xf << 8));
The logic here is pretty hard to follow, and you're getting squeezed
pretty hard by indenting 5 tabs stops. Can ipath_setup_ht_config() be
split up into subfunctions?
next parent reply other threads:[~2006-03-09 23:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <0b1b4f4c093e2db6153e.1141922817@localhost.localdomain>
2006-03-09 23:01 ` Roland Dreier [this message]
2006-03-09 23:21 ` [PATCH 4 of 20] ipath - support for HyperTransport devices Bryan O'Sullivan
2006-03-10 0:35 [PATCH 0 of 20] [RFC] ipath driver - another round for review Bryan O'Sullivan
2006-03-10 0:35 ` [PATCH 4 of 20] ipath - support for HyperTransport devices Bryan O'Sullivan
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=ada3bhrgr36.fsf@cisco.com \
--to=rdreier@cisco.com \
--cc=akpm@osdl.org \
--cc=bos@pathscale.com \
--cc=davem@davemloft.net \
--cc=gregkh@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=openib-general@openib.org \
--cc=rolandd@cisco.com \
/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