All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH, net-next] r8169:  On RTL 8101 series bit SYSErr is reserved.
@ 2015-08-24 18:12 Corcodel Marian
  2015-08-24 18:38 ` David Miller
  0 siblings, 1 reply; 3+ messages in thread
From: Corcodel Marian @ 2015-08-24 18:12 UTC (permalink / raw)
  To: netdev; +Cc: Corcodel Marian

On RTL 8101 series bit SYSErr is reserved.

Signed-off-by: Corcodel Marian <corcodel.marian@gmail.com>

diff --git a/drivers/net/ethernet/realtek/r8169.c b/drivers/net/ethernet/realtek/r8169.c
index 5693e65..32d2072 100644
--- a/drivers/net/ethernet/realtek/r8169.c
+++ b/drivers/net/ethernet/realtek/r8169.c
@@ -8256,6 +8256,14 @@ static int rtl_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
 	RTL_W8(Config1, RTL_R8(Config1) | PMEnable);
 	RTL_W8(Config5, RTL_R8(Config5) & (BWF | MWF | UWF | LanWake | PMEStatus));*/
 	switch (tp->mac_version) {
+	case RTL_GIGA_MAC_VER_07:
+	case RTL_GIGA_MAC_VER_08:
+	case RTL_GIGA_MAC_VER_09:
+	case RTL_GIGA_MAC_VER_10:
+	case RTL_GIGA_MAC_VER_13:
+	case RTL_GIGA_MAC_VER_16:
+		pci_write_config_word(pdev, PCI_COMMAND, ~PCI_COMMAND_SERR); 
+		break;
 	case RTL_GIGA_MAC_VER_34:
 	case RTL_GIGA_MAC_VER_35:
 	case RTL_GIGA_MAC_VER_36:
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH, net-next] r8169: On RTL 8101 series bit SYSErr is reserved.
  2015-08-24 18:12 [PATCH, net-next] r8169: On RTL 8101 series bit SYSErr is reserved Corcodel Marian
@ 2015-08-24 18:38 ` David Miller
  2015-08-25  4:44   ` Marian Corcodel
  0 siblings, 1 reply; 3+ messages in thread
From: David Miller @ 2015-08-24 18:38 UTC (permalink / raw)
  To: corcodel.marian; +Cc: netdev

From: Corcodel Marian <corcodel.marian@gmail.com>
Date: Mon, 24 Aug 2015 21:12:53 +0300

> diff --git a/drivers/net/ethernet/realtek/r8169.c b/drivers/net/ethernet/realtek/r8169.c
> index 5693e65..32d2072 100644
> --- a/drivers/net/ethernet/realtek/r8169.c
> +++ b/drivers/net/ethernet/realtek/r8169.c
> @@ -8256,6 +8256,14 @@ static int rtl_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
>  	RTL_W8(Config1, RTL_R8(Config1) | PMEnable);
>  	RTL_W8(Config5, RTL_R8(Config5) & (BWF | MWF | UWF | LanWake | PMEStatus));*/
>  	switch (tp->mac_version) {
> +	case RTL_GIGA_MAC_VER_07:
> +	case RTL_GIGA_MAC_VER_08:
> +	case RTL_GIGA_MAC_VER_09:
> +	case RTL_GIGA_MAC_VER_10:
> +	case RTL_GIGA_MAC_VER_13:
> +	case RTL_GIGA_MAC_VER_16:
> +		pci_write_config_word(pdev, PCI_COMMAND, ~PCI_COMMAND_SERR); 

You're writing all sorts of bits you definitely don't want to set here.

Furthermore, there is no need to clear a bit that shouldn't be set
in the first place.

Your patches are really full of major errors, and unsuitable for
upstream.

Yes, all of them.

So please stop posting your r8169 changes here, because if you don't
care if your patches get included or not, then you should not be
posting them here.  This isn't a place to just dump ramdom patches,
sorry.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH, net-next] r8169: On RTL 8101 series bit SYSErr is reserved.
  2015-08-24 18:38 ` David Miller
@ 2015-08-25  4:44   ` Marian Corcodel
  0 siblings, 0 replies; 3+ messages in thread
From: Marian Corcodel @ 2015-08-25  4:44 UTC (permalink / raw)
  To: David Miller; +Cc: netdev

May be entire program must
rewritten due multiple errors.

2015-08-24 21:38 GMT+03:00, David Miller <davem@davemloft.net>:
> From: Corcodel Marian <corcodel.marian@gmail.com>
> Date: Mon, 24 Aug 2015 21:12:53 +0300
>
>> diff --git a/drivers/net/ethernet/realtek/r8169.c
>> b/drivers/net/ethernet/realtek/r8169.c
>> index 5693e65..32d2072 100644
>> --- a/drivers/net/ethernet/realtek/r8169.c
>> +++ b/drivers/net/ethernet/realtek/r8169.c
>> @@ -8256,6 +8256,14 @@ static int rtl_init_one(struct pci_dev *pdev, const
>> struct pci_device_id *ent)
>>  	RTL_W8(Config1, RTL_R8(Config1) | PMEnable);
>>  	RTL_W8(Config5, RTL_R8(Config5) & (BWF | MWF | UWF | LanWake |
>> PMEStatus));*/
>>  	switch (tp->mac_version) {
>> +	case RTL_GIGA_MAC_VER_07:
>> +	case RTL_GIGA_MAC_VER_08:
>> +	case RTL_GIGA_MAC_VER_09:
>> +	case RTL_GIGA_MAC_VER_10:
>> +	case RTL_GIGA_MAC_VER_13:
>> +	case RTL_GIGA_MAC_VER_16:
>> +		pci_write_config_word(pdev, PCI_COMMAND, ~PCI_COMMAND_SERR);
>
> You're writing all sorts of bits you definitely don't want to set here.
>
> Furthermore, there is no need to clear a bit that shouldn't be set
> in the first place.
>
> Your patches are really full of major errors, and unsuitable for
> upstream.
>
> Yes, all of them.
>
> So please stop posting your r8169 changes here, because if you don't
> care if your patches get included or not, then you should not be
> posting them here.  This isn't a place to just dump ramdom patches,
> sorry.
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-08-25  4:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-24 18:12 [PATCH, net-next] r8169: On RTL 8101 series bit SYSErr is reserved Corcodel Marian
2015-08-24 18:38 ` David Miller
2015-08-25  4:44   ` Marian Corcodel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.