From: David Miller <davem@redhat.com>
To: hau@realtek.com
Cc: netdev@vger.kernel.org, nic_swsd@realtek.com,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH net-next] r8169:add support for RTL8168H and RTL8107E
Date: Thu, 14 Aug 2014 14:23:07 -0700 (PDT) [thread overview]
Message-ID: <20140814.142307.1009368551221010220.davem@redhat.com> (raw)
In-Reply-To: <1407942373-17094-1-git-send-email-hau@realtek.com>
From: Chun-Hao Lin <hau@realtek.com>
Date: Wed, 13 Aug 2014 23:06:13 +0800
> RTL8168H is Realtek PCIe Gigabit Ethernet controller.
> RTL8107E is Realtek PCIe Fast Ethernet controller.
>
> This patch add support for these two chips.
>
> Signed-off-by: Chun-Hao Lin <hau@realtek.com>
Please don't break the indentation like you have here:
> + rtl_w1w0_eri(tp,
> + 0x0dc,
> + ERIAR_MASK_0100,
> + MagicPacket_v2,
> + 0x0000,
> + ERIAR_EXGMAC);
...
> + rtl_w1w0_eri(tp,
> + 0x0dc,
> + ERIAR_MASK_0100,
> + 0x0000,
> + MagicPacket_v2,
> + ERIAR_EXGMAC);
...
> @@ -4495,15 +4791,19 @@ static void rtl8169_hw_reset(struct rtl8169_private *tp)
> tp->mac_version == RTL_GIGA_MAC_VER_31) {
> rtl_udelay_loop_wait_low(tp, &rtl_npq_cond, 20, 42*42);
> } else if (tp->mac_version == RTL_GIGA_MAC_VER_34 ||
> - tp->mac_version == RTL_GIGA_MAC_VER_35 ||
> - tp->mac_version == RTL_GIGA_MAC_VER_36 ||
> - tp->mac_version == RTL_GIGA_MAC_VER_37 ||
> - tp->mac_version == RTL_GIGA_MAC_VER_40 ||
> - tp->mac_version == RTL_GIGA_MAC_VER_41 ||
> - tp->mac_version == RTL_GIGA_MAC_VER_42 ||
> - tp->mac_version == RTL_GIGA_MAC_VER_43 ||
> - tp->mac_version == RTL_GIGA_MAC_VER_44 ||
> - tp->mac_version == RTL_GIGA_MAC_VER_38) {
> + tp->mac_version == RTL_GIGA_MAC_VER_35 ||
> + tp->mac_version == RTL_GIGA_MAC_VER_36 ||
> + tp->mac_version == RTL_GIGA_MAC_VER_37 ||
> + tp->mac_version == RTL_GIGA_MAC_VER_38 ||
> + tp->mac_version == RTL_GIGA_MAC_VER_40 ||
> + tp->mac_version == RTL_GIGA_MAC_VER_41 ||
> + tp->mac_version == RTL_GIGA_MAC_VER_42 ||
> + tp->mac_version == RTL_GIGA_MAC_VER_43 ||
> + tp->mac_version == RTL_GIGA_MAC_VER_44 ||
> + tp->mac_version == RTL_GIGA_MAC_VER_45 ||
> + tp->mac_version == RTL_GIGA_MAC_VER_46 ||
> + tp->mac_version == RTL_GIGA_MAC_VER_47 ||
> + tp->mac_version == RTL_GIGA_MAC_VER_48) {
> RTL_W8(ChipCmd, RTL_R8(ChipCmd) | StopReq);
> rtl_udelay_loop_wait_high(tp, &rtl_txcfg_empty_cond, 100, 666);
> } else {
None of these changes are indented correctly, and in the last hunk the original
code was perfectly indented and you should have not adjusted it.
On a multi-line conditional or function call, the second and subsequent lines
should start exactly at the first column after the openning parenthesis of
the initial line.
You must use the appropriate number of TAB then SPACE characters necessary
to achieve this.
If you are indenting these lines only using TAB characters, you are doing it
incorrectly.
Please audit your entire patch for this problem, thanks.
prev parent reply other threads:[~2014-08-14 21:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-13 15:06 Chun-Hao Lin
2014-08-14 21:23 ` David Miller [this message]
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=20140814.142307.1009368551221010220.davem@redhat.com \
--to=davem@redhat.com \
--cc=hau@realtek.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=nic_swsd@realtek.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
all inboxes | Powered by JetHome®