From: Ivo van Doorn <ivdoorn@gmail.com>
To: Gertjan van Wingerde <gwingerde@gmail.com>
Cc: users@rt2x00.serialmonkey.com, linux-wireless@vger.kernel.org,
John Linville <linville@tuxdriver.com>,
Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Subject: Re: [PATCH] rt2x00: Move interface type assignments to generic code.
Date: Sun, 8 Nov 2009 13:38:18 +0100 [thread overview]
Message-ID: <200911081338.19315.IvDoorn@gmail.com> (raw)
In-Reply-To: <1257679814-25233-1-git-send-email-gwingerde@gmail.com>
On Sunday 08 November 2009, Gertjan van Wingerde wrote:
> Make sure all drivers can benefit of the assignment of the interface type of an adapter, instead of
> keeping it for rt2800 only.
>
> Signed-off-by: Gertjan van Wingerde <gwingerde@gmail.com>
Acked-by: Ivo van Doorn <IvDoorn@gmail.com>
> ---
> drivers/net/wireless/rt2x00/rt2800pci.c | 2 --
> drivers/net/wireless/rt2x00/rt2800usb.c | 2 --
> drivers/net/wireless/rt2x00/rt2x00pci.c | 2 ++
> drivers/net/wireless/rt2x00/rt2x00soc.c | 5 +++++
> drivers/net/wireless/rt2x00/rt2x00usb.c | 2 ++
> 5 files changed, 9 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/net/wireless/rt2x00/rt2800pci.c b/drivers/net/wireless/rt2x00/rt2800pci.c
> index 3c5b875..bff8707 100644
> --- a/drivers/net/wireless/rt2x00/rt2800pci.c
> +++ b/drivers/net/wireless/rt2x00/rt2800pci.c
> @@ -1465,8 +1465,6 @@ static int rt2800pci_probe_hw(struct rt2x00_dev *rt2x00dev)
> {
> int retval;
>
> - rt2x00_set_chip_intf(rt2x00dev, RT2X00_CHIP_INTF_PCI);
> -
> rt2x00dev->priv = (void *)&rt2800pci_rt2800_ops;
>
> /*
> diff --git a/drivers/net/wireless/rt2x00/rt2800usb.c b/drivers/net/wireless/rt2x00/rt2800usb.c
> index ce2e893..3168ad4 100644
> --- a/drivers/net/wireless/rt2x00/rt2800usb.c
> +++ b/drivers/net/wireless/rt2x00/rt2800usb.c
> @@ -1074,8 +1074,6 @@ static int rt2800usb_probe_hw(struct rt2x00_dev *rt2x00dev)
> {
> int retval;
>
> - rt2x00_set_chip_intf(rt2x00dev, RT2X00_CHIP_INTF_USB);
> -
> rt2x00dev->priv = (void *)&rt2800usb_rt2800_ops;
>
> /*
> diff --git a/drivers/net/wireless/rt2x00/rt2x00pci.c b/drivers/net/wireless/rt2x00/rt2x00pci.c
> index cdd5154..ece70d7 100644
> --- a/drivers/net/wireless/rt2x00/rt2x00pci.c
> +++ b/drivers/net/wireless/rt2x00/rt2x00pci.c
> @@ -310,6 +310,8 @@ int rt2x00pci_probe(struct pci_dev *pci_dev, const struct pci_device_id *id)
> rt2x00dev->irq = pci_dev->irq;
> rt2x00dev->name = pci_name(pci_dev);
>
> + rt2x00_set_chip_intf(rt2x00dev, RT2X00_CHIP_INTF_PCI);
> +
> /*
> * Determine RT chipset by reading PCI header.
> */
> diff --git a/drivers/net/wireless/rt2x00/rt2x00soc.c b/drivers/net/wireless/rt2x00/rt2x00soc.c
> index 539568c..4abcfa6 100644
> --- a/drivers/net/wireless/rt2x00/rt2x00soc.c
> +++ b/drivers/net/wireless/rt2x00/rt2x00soc.c
> @@ -93,6 +93,11 @@ int rt2x00soc_probe(struct platform_device *pdev,
> rt2x00dev->irq = platform_get_irq(pdev, 0);
> rt2x00dev->name = pdev->dev.driver->name;
>
> + /*
> + * SoC devices mimic PCI behavior.
> + */
> + rt2x00_set_chip_intf(rt2x00dev, RT2X00_CHIP_INTF_PCI);
> +
> rt2x00_set_chip_rt(rt2x00dev, chipset);
>
> retval = rt2x00soc_alloc_reg(rt2x00dev);
> diff --git a/drivers/net/wireless/rt2x00/rt2x00usb.c b/drivers/net/wireless/rt2x00/rt2x00usb.c
> index c9cbdaa..aa6c31d 100644
> --- a/drivers/net/wireless/rt2x00/rt2x00usb.c
> +++ b/drivers/net/wireless/rt2x00/rt2x00usb.c
> @@ -653,6 +653,8 @@ int rt2x00usb_probe(struct usb_interface *usb_intf,
> rt2x00dev->ops = ops;
> rt2x00dev->hw = hw;
>
> + rt2x00_set_chip_intf(rt2x00dev, RT2X00_CHIP_INTF_USB);
> +
> retval = rt2x00usb_alloc_reg(rt2x00dev);
> if (retval)
> goto exit_free_device;
next prev parent reply other threads:[~2009-11-08 12:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-08 11:30 [PATCH] rt2x00: Move interface type assignments to generic code Gertjan van Wingerde
2009-11-08 12:38 ` Ivo van Doorn [this message]
2009-11-08 12:39 ` Bartlomiej Zolnierkiewicz
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=200911081338.19315.IvDoorn@gmail.com \
--to=ivdoorn@gmail.com \
--cc=bzolnier@gmail.com \
--cc=gwingerde@gmail.com \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=users@rt2x00.serialmonkey.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;
as well as URLs for NNTP newsgroup(s).