netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 1/2] net-next: sundance: Add netconsole logging support
@ 2013-08-16 17:00 Denis Kirjanov
  2013-08-16 17:00 ` [PATCH net-next 2/2] net-next: sundance: Add myself as an maintainer Signed-off-by: Denis Kirjanov <kda@linux-powerpc.org> Denis Kirjanov
  2013-08-16 23:46 ` [PATCH net-next 1/2] net-next: sundance: Add netconsole logging support Sergei Shtylyov
  0 siblings, 2 replies; 4+ messages in thread
From: Denis Kirjanov @ 2013-08-16 17:00 UTC (permalink / raw)
  To: netdev, davem; +Cc: Denis Kirjanov

Signed-off-by: Denis Kirjanov <kda@linux-powerpc.org>
---
 drivers/net/ethernet/dlink/sundance.c | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/drivers/net/ethernet/dlink/sundance.c b/drivers/net/ethernet/dlink/sundance.c
index 50d9c63..2688a84 100644
--- a/drivers/net/ethernet/dlink/sundance.c
+++ b/drivers/net/ethernet/dlink/sundance.c
@@ -469,6 +469,17 @@ static void sundance_reset(struct net_device *dev, unsigned long reset_cmd)
 	}
 }
 
+#ifdef CONFIG_NET_POLL_CONTROLLER
+static void sundance_poll_controller(struct net_device *dev)
+{
+	struct netdev_private *np = netdev_priv(dev);
+
+	disable_irq(np->pci_dev->irq);
+	intr_handler(np->pci_dev->irq, dev);
+	enable_irq(np->pci_dev->irq);
+}
+#endif
+
 static const struct net_device_ops netdev_ops = {
 	.ndo_open		= netdev_open,
 	.ndo_stop		= netdev_close,
@@ -480,6 +491,9 @@ static const struct net_device_ops netdev_ops = {
 	.ndo_change_mtu		= change_mtu,
 	.ndo_set_mac_address 	= sundance_set_mac_addr,
 	.ndo_validate_addr	= eth_validate_addr,
+#ifdef CONFIG_NET_POLL_CONTROLLER
+	.ndo_poll_controller = sundance_poll_controller,
+#endif
 };
 
 static int sundance_probe1(struct pci_dev *pdev,
-- 
1.8.0.2

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

* [PATCH net-next 2/2] net-next: sundance: Add myself as an maintainer Signed-off-by: Denis Kirjanov <kda@linux-powerpc.org>
  2013-08-16 17:00 [PATCH net-next 1/2] net-next: sundance: Add netconsole logging support Denis Kirjanov
@ 2013-08-16 17:00 ` Denis Kirjanov
  2013-08-16 23:46 ` [PATCH net-next 1/2] net-next: sundance: Add netconsole logging support Sergei Shtylyov
  1 sibling, 0 replies; 4+ messages in thread
From: Denis Kirjanov @ 2013-08-16 17:00 UTC (permalink / raw)
  To: netdev, davem; +Cc: Denis Kirjanov

---
 MAINTAINERS | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/MAINTAINERS b/MAINTAINERS
index 9ee0a8f..1b3fb7c 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -7968,6 +7968,12 @@ F:	arch/m68k/sun3*/
 F:	arch/m68k/include/asm/sun3*
 F:	drivers/net/ethernet/i825xx/sun3*
 
+SUNDANCE NETWORK DRIVER
+M:	Denis Kirjanov <kda@linux-powerpc.org>
+L:	netdev@vger.kernel.org
+S:	Maintained
+F:	drivers/net/ethernet/dlink/sundance.c
+
 SUPERH
 M:	Paul Mundt <lethal@linux-sh.org>
 L:	linux-sh@vger.kernel.org
-- 
1.8.0.2

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

* Re: [PATCH net-next 1/2] net-next: sundance: Add netconsole logging support
  2013-08-16 17:00 [PATCH net-next 1/2] net-next: sundance: Add netconsole logging support Denis Kirjanov
  2013-08-16 17:00 ` [PATCH net-next 2/2] net-next: sundance: Add myself as an maintainer Signed-off-by: Denis Kirjanov <kda@linux-powerpc.org> Denis Kirjanov
@ 2013-08-16 23:46 ` Sergei Shtylyov
  2013-08-17  7:12   ` Denis Kirjanov
  1 sibling, 1 reply; 4+ messages in thread
From: Sergei Shtylyov @ 2013-08-16 23:46 UTC (permalink / raw)
  To: Denis Kirjanov; +Cc: netdev, davem

Hello.

On 08/16/2013 09:00 PM, Denis Kirjanov wrote:

    I'd rather name the patch "sundance: add netpoll support". "net-next:" 
shouldn't be there twice definitely.

> Signed-off-by: Denis Kirjanov <kda@linux-powerpc.org>
> ---
>   drivers/net/ethernet/dlink/sundance.c | 14 ++++++++++++++
>   1 file changed, 14 insertions(+)

> diff --git a/drivers/net/ethernet/dlink/sundance.c b/drivers/net/ethernet/dlink/sundance.c
> index 50d9c63..2688a84 100644
> --- a/drivers/net/ethernet/dlink/sundance.c
> +++ b/drivers/net/ethernet/dlink/sundance.c
[...]
> @@ -480,6 +491,9 @@ static const struct net_device_ops netdev_ops = {
>   	.ndo_change_mtu		= change_mtu,
>   	.ndo_set_mac_address 	= sundance_set_mac_addr,
>   	.ndo_validate_addr	= eth_validate_addr,
> +#ifdef CONFIG_NET_POLL_CONTROLLER
> +	.ndo_poll_controller = sundance_poll_controller,

    Could you align = here with the reset of initializers?

> +#endif

WBR, Sergei

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

* Re: [PATCH net-next 1/2] net-next: sundance: Add netconsole logging support
  2013-08-16 23:46 ` [PATCH net-next 1/2] net-next: sundance: Add netconsole logging support Sergei Shtylyov
@ 2013-08-17  7:12   ` Denis Kirjanov
  0 siblings, 0 replies; 4+ messages in thread
From: Denis Kirjanov @ 2013-08-17  7:12 UTC (permalink / raw)
  To: Sergei Shtylyov; +Cc: Denis Kirjanov, netdev, davem

On 8/17/13, Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> wrote:
> Hello.
>
> On 08/16/2013 09:00 PM, Denis Kirjanov wrote:
>
>     I'd rather name the patch "sundance: add netpoll support". "net-next:"
> shouldn't be there twice definitely.

Right, it was late at night so somehow I added prefix twice.
>
>> Signed-off-by: Denis Kirjanov <kda@linux-powerpc.org>
>> ---
>>   drivers/net/ethernet/dlink/sundance.c | 14 ++++++++++++++
>>   1 file changed, 14 insertions(+)
>
>> diff --git a/drivers/net/ethernet/dlink/sundance.c
>> b/drivers/net/ethernet/dlink/sundance.c
>> index 50d9c63..2688a84 100644
>> --- a/drivers/net/ethernet/dlink/sundance.c
>> +++ b/drivers/net/ethernet/dlink/sundance.c
> [...]
>> @@ -480,6 +491,9 @@ static const struct net_device_ops netdev_ops = {
>>   	.ndo_change_mtu		= change_mtu,
>>   	.ndo_set_mac_address 	= sundance_set_mac_addr,
>>   	.ndo_validate_addr	= eth_validate_addr,
>> +#ifdef CONFIG_NET_POLL_CONTROLLER
>> +	.ndo_poll_controller = sundance_poll_controller,
>
>     Could you align = here with the reset of initializers?

I'll respin.

Thanks!
>> +#endif
>
> 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
>


-- 
Regards,
Denis

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

end of thread, other threads:[~2013-08-17  7:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-16 17:00 [PATCH net-next 1/2] net-next: sundance: Add netconsole logging support Denis Kirjanov
2013-08-16 17:00 ` [PATCH net-next 2/2] net-next: sundance: Add myself as an maintainer Signed-off-by: Denis Kirjanov <kda@linux-powerpc.org> Denis Kirjanov
2013-08-16 23:46 ` [PATCH net-next 1/2] net-next: sundance: Add netconsole logging support Sergei Shtylyov
2013-08-17  7:12   ` Denis Kirjanov

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).