diff mbox

[net-next] e1000e: restore call to pci_clear_master()

Message ID 20130612174747.7449.40767.email-sent-by-dnelson@teal
State Changes Requested, archived
Delegated to: David Miller
Headers show

Commit Message

Dean Nelson June 12, 2013, 5:47 p.m. UTC
In attempting to resolve a minor merge conflict, commit e5f2ef7ab4690d2e8faa
accidently dropped a call to pci_clear_master() that was intended to remain
in place.

Commit 4e0855dff094b0d56d6b replaced a call to pci_disable_device() by one to
pci_clear_master(). And then commit 66148babe728f3e00e13 deleted a number of
lines starting two lines following that call.

This patch restores the call to pci_clear_master() in __e1000_shutdown().

Signed-off-by: Dean Nelson <dnelson@redhat.com>
---
Both stable 3.8.y and 3.9.y appear to have the call to pci_clear_master() in
__e1000_shutdown() as desired.  I'm not sure how they avoided the conflict.

 drivers/net/ethernet/intel/e1000e/netdev.c | 2 ++
 1 file changed, 2 insertions(+)

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Sergei Shtylyov June 12, 2013, 6:38 p.m. UTC | #1
Hello.

On 06/12/2013 09:47 PM, Dean Nelson wrote:

> In attempting to resolve a minor merge conflict, commit e5f2ef7ab4690d2e8faa
> accidently dropped a call to pci_clear_master() that was intended to remain
> in place.

> Commit 4e0855dff094b0d56d6b replaced a call to pci_disable_device() by one to

    Please specify the summary line in parens for both commmits you're 
mentioning.

> pci_clear_master(). And then commit 66148babe728f3e00e13 deleted a number of
> lines starting two lines following that call.

> This patch restores the call to pci_clear_master() in __e1000_shutdown().

> Signed-off-by: Dean Nelson <dnelson@redhat.com>

WBR, Sergei


--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Dean Nelson June 12, 2013, 6:53 p.m. UTC | #2
On 06/12/2013 01:38 PM, Sergei Shtylyov wrote:
> Hello.
>
> On 06/12/2013 09:47 PM, Dean Nelson wrote:
>
>> In attempting to resolve a minor merge conflict, commit
>> e5f2ef7ab4690d2e8faa
>> accidently dropped a call to pci_clear_master() that was intended to
>> remain
>> in place.
>
>> Commit 4e0855dff094b0d56d6b replaced a call to pci_disable_device() by
>> one to
>
>     Please specify the summary line in parens for both commmits you're
> mentioning.

Sorry, I'm not understanding fully. Are you asking me to repost the
patch with the changelog modified, such that each of the commits
mentioned has their summary statement following, enclosed in parens?


>> pci_clear_master(). And then commit 66148babe728f3e00e13 deleted a
>> number of
>> lines starting two lines following that call.
>
>> This patch restores the call to pci_clear_master() in __e1000_shutdown().
>
>> Signed-off-by: Dean Nelson <dnelson@redhat.com>
>
> WBR, Sergei
>
>

Also, I mistyped Jeff Kirsher's email address. It's corrected above. 
(Sorry, Jeff.)
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Sergei Shtylyov June 12, 2013, 7:05 p.m. UTC | #3
On 06/12/2013 10:53 PM, Dean Nelson wrote:

>>> In attempting to resolve a minor merge conflict, commit
>>> e5f2ef7ab4690d2e8faa
>>> accidently dropped a call to pci_clear_master() that was intended to
>>> remain
>>> in place.

>>> Commit 4e0855dff094b0d56d6b replaced a call to pci_disable_device() by
>>> one to

>>     Please specify the summary line in parens for both commmits you're
>> mentioning.

> Sorry, I'm not understanding fully. Are you asking me to repost the
> patch with the changelog modified, such that each of the commits
> mentioned has their summary statement following, enclosed in parens?

    Exactly.

>>> pci_clear_master(). And then commit 66148babe728f3e00e13 deleted a
>>> number of
>>> lines starting two lines following that call.

>>> This patch restores the call to pci_clear_master() in
>>> __e1000_shutdown().

>>> Signed-off-by: Dean Nelson <dnelson@redhat.com>

[...]

> Also, I mistyped Jeff Kirsher's email address. It's corrected above.
> (Sorry, Jeff.)

    When reposting, you'll have a chance to fix up his email as well. :-)

WBR, Sergei

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Kirsher, Jeffrey T June 12, 2013, 7:41 p.m. UTC | #4
On Wed, 2013-06-12 at 13:53 -0500, Dean Nelson wrote:
> On 06/12/2013 01:38 PM, Sergei Shtylyov wrote:
> > Hello.
> >
> > On 06/12/2013 09:47 PM, Dean Nelson wrote:
> >
> >> In attempting to resolve a minor merge conflict, commit
> >> e5f2ef7ab4690d2e8faa
> >> accidently dropped a call to pci_clear_master() that was intended to
> >> remain
> >> in place.
> >
> >> Commit 4e0855dff094b0d56d6b replaced a call to pci_disable_device() by
> >> one to
> >
> >     Please specify the summary line in parens for both commmits you're
> > mentioning.
> 
> Sorry, I'm not understanding fully. Are you asking me to repost the
> patch with the changelog modified, such that each of the commits
> mentioned has their summary statement following, enclosed in parens?
> 
> 
> >> pci_clear_master(). And then commit 66148babe728f3e00e13 deleted a
> >> number of
> >> lines starting two lines following that call.
> >
> >> This patch restores the call to pci_clear_master() in __e1000_shutdown().
> >
> >> Signed-off-by: Dean Nelson <dnelson@redhat.com>
> >
> > WBR, Sergei
> >
> >
> 
> Also, I mistyped Jeff Kirsher's email address. It's corrected above. 
> (Sorry, Jeff.)

No problem, will you be sending a v2 based on Sergei's feedback?  Just
need to know if I add this patch to my queue or wait for v2.
Dean Nelson June 12, 2013, 7:45 p.m. UTC | #5
On 06/12/2013 02:41 PM, Jeff Kirsher wrote:
> On Wed, 2013-06-12 at 13:53 -0500, Dean Nelson wrote:
>> On 06/12/2013 01:38 PM, Sergei Shtylyov wrote:
>>> Hello.
>>>
>>> On 06/12/2013 09:47 PM, Dean Nelson wrote:
>>>
>>>> In attempting to resolve a minor merge conflict, commit
>>>> e5f2ef7ab4690d2e8faa
>>>> accidently dropped a call to pci_clear_master() that was intended to
>>>> remain
>>>> in place.
>>>
>>>> Commit 4e0855dff094b0d56d6b replaced a call to pci_disable_device() by
>>>> one to
>>>
>>>      Please specify the summary line in parens for both commmits you're
>>> mentioning.
>>
>> Sorry, I'm not understanding fully. Are you asking me to repost the
>> patch with the changelog modified, such that each of the commits
>> mentioned has their summary statement following, enclosed in parens?
>>
>>
>>>> pci_clear_master(). And then commit 66148babe728f3e00e13 deleted a
>>>> number of
>>>> lines starting two lines following that call.
>>>
>>>> This patch restores the call to pci_clear_master() in __e1000_shutdown().
>>>
>>>> Signed-off-by: Dean Nelson <dnelson@redhat.com>
>>>
>>> WBR, Sergei
>>>
>>>
>>
>> Also, I mistyped Jeff Kirsher's email address. It's corrected above.
>> (Sorry, Jeff.)
>
> No problem, will you be sending a v2 based on Sergei's feedback?  Just
> need to know if I add this patch to my queue or wait for v2.

Yes, I just sent it.


>

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/net/ethernet/intel/e1000e/netdev.c b/drivers/net/ethernet/intel/e1000e/netdev.c
index 77f81cb..5475cf4 100644
--- a/drivers/net/ethernet/intel/e1000e/netdev.c
+++ b/drivers/net/ethernet/intel/e1000e/netdev.c
@@ -5995,6 +5995,8 @@  static int __e1000_shutdown(struct pci_dev *pdev, bool runtime)
 	 */
 	e1000e_release_hw_control(adapter);
 
+	pci_clear_master(pdev);
+
 	/* The pci-e switch on some quad port adapters will report a
 	 * correctable error when the MAC transitions from D0 to D3.  To
 	 * prevent this we need to mask off the correctable errors on the