2014-12-04 01:24:08

by Greg Kroah-Hartman

[permalink] [raw]
Subject: Ralink 6570 / Mediatek MT7601STA (was Re: Addition of a wifi kernel module to the linux source tree)

On Sun, Nov 30, 2014 at 06:55:12PM +0000, Parth Sane wrote:
> Hi Greg,
> You can find the source code attached as a tarball. It works and I have tested
> it myself. You only need to use make and make install for this.

This really looks like a variant of some existing devices, the rt2x00,
Ralink driver.

I've copied the maintainers of that driver here.

Is anyone working on support for the following devices in the existing
rt2x00 USB driver:

{USB_DEVICE(0x148f, 0x6570)}, /* Ralink 6570 */
{USB_DEVICE(0x148f, 0x7650)}, /* MT7650 */
{USB_DEVICE(0x148f, 0x6370)}, /* Ralink 6370 */
{USB_DEVICE(0x148f, 0x7601)}, /* MT 6370 */

thanks,

greg k-h


2014-12-04 10:09:04

by Oleksij Rempel

[permalink] [raw]
Subject: Re: Ralink 6570 / Mediatek MT7601STA (was Re: Addition of a wifi kernel module to the linux source tree)

Am 04.12.2014 um 10:26 schrieb Parth Sane:
> Hi,
> Guys I'll be using my other account on my private domain laer.in now
> onwards. Be sure to add me in your contacts. My new email is
> [email protected]
> -Parth
>
> On 4 December 2014 at 14:19, Oleksij Rempel <[email protected]> wrote:
>> Am 04.12.2014 um 09:23 schrieb Stanislaw Gruszka:
>>> On Thu, Dec 04, 2014 at 03:52:52PM +1100, Julian Calaby wrote:
>>>> On Thu, Dec 4, 2014 at 3:39 PM, Greg Kroah-Hartman
>>>> <[email protected]> wrote:
>>>>> On Thu, Dec 04, 2014 at 07:07:58AM +0530, Parth Sane wrote:
>>>>>> Hi,
>>>>>> I'd say I'm midway through with c programming(part of my computer
>>>>>> engineering degree course) and know a decent amount of git. So yes I'm
>>>>>> comfortable writing code.
>>>>>
>>>>> Ok great, let's see if it's just a matter of some changes to the
>>>>> existing kernel driver before we decide to add the whole huge tarball
>>>>> to the staging tree as fixing it up will be a lot of work.
>>>>
>>>> I believe some people (CC'd) may have been working on / had an
>>>> interest in writing such a driver. I'm not sure what the status of
>>>> that effort is though.
>>>
>>> Right. Felix is working on new linux friendly driver for new Mediatek
>>> chips.
>>
>> So far i know, Felix is working on abgn+ac (MT7662 and MT7612) devices.
>> MT7601STA is (a)bgn. Are there similar regs?
>>
>> In mt7601 code i see parts like "if (IS_RT3290(pAd) || IS_RT65XX(pAd) ||
>> IS_MT7601(pAd))". RT3290 is supported by rt2x00.

Am 04.12.2014 um 10:54 schrieb [email protected]:> Hi again,
> Please note my new email [email protected] . Also If you guys don't know
> there's a working source supplied by mediatek for mt7601. Please find
> the attached tarball. Also please apply this patch I mentioned about
> earlier. It's at https://gist.github.com/Boggartfly/b18bd86b8eb60fabe160
>
> rt_linux.h has the following path in the driver directory.
>
> /include/os/rt_linux.h
>
> After you replace the patched file everything works and compiles
> successfully!! Any pointers on what should be done to make it kernel
> compatible?

Well, there is no kernel compatible part in this driver. With other
words it should be completely rewritten or cleaned up. As match as
possible of existing kernel code should be reused.

PS. please keep the topic.

--
Regards,
Oleksij


Attachments:
signature.asc (213.00 B)
OpenPGP digital signature

2014-12-04 04:53:13

by Julian Calaby

[permalink] [raw]
Subject: Re: Ralink 6570 / Mediatek MT7601STA (was Re: Addition of a wifi kernel module to the linux source tree)

Hi Greg,

On Thu, Dec 4, 2014 at 3:39 PM, Greg Kroah-Hartman
<[email protected]> wrote:
> On Thu, Dec 04, 2014 at 07:07:58AM +0530, Parth Sane wrote:
>> Hi,
>> I'd say I'm midway through with c programming(part of my computer
>> engineering degree course) and know a decent amount of git. So yes I'm
>> comfortable writing code.
>
> Ok great, let's see if it's just a matter of some changes to the
> existing kernel driver before we decide to add the whole huge tarball
> to the staging tree as fixing it up will be a lot of work.

I believe some people (CC'd) may have been working on / had an
interest in writing such a driver. I'm not sure what the status of
that effort is though.

Thanks,

--
Julian Calaby

Email: [email protected]
Profile: http://www.google.com/profiles/julian.calaby/

2014-12-04 08:50:15

by Oleksij Rempel

[permalink] [raw]
Subject: Re: Ralink 6570 / Mediatek MT7601STA (was Re: Addition of a wifi kernel module to the linux source tree)

Am 04.12.2014 um 09:23 schrieb Stanislaw Gruszka:
> On Thu, Dec 04, 2014 at 03:52:52PM +1100, Julian Calaby wrote:
>> On Thu, Dec 4, 2014 at 3:39 PM, Greg Kroah-Hartman
>> <[email protected]> wrote:
>>> On Thu, Dec 04, 2014 at 07:07:58AM +0530, Parth Sane wrote:
>>>> Hi,
>>>> I'd say I'm midway through with c programming(part of my computer
>>>> engineering degree course) and know a decent amount of git. So yes I'm
>>>> comfortable writing code.
>>>
>>> Ok great, let's see if it's just a matter of some changes to the
>>> existing kernel driver before we decide to add the whole huge tarball
>>> to the staging tree as fixing it up will be a lot of work.
>>
>> I believe some people (CC'd) may have been working on / had an
>> interest in writing such a driver. I'm not sure what the status of
>> that effort is though.
>
> Right. Felix is working on new linux friendly driver for new Mediatek
> chips.

So far i know, Felix is working on abgn+ac (MT7662 and MT7612) devices.
MT7601STA is (a)bgn. Are there similar regs?

In mt7601 code i see parts like "if (IS_RT3290(pAd) || IS_RT65XX(pAd) ||
IS_MT7601(pAd))". RT3290 is supported by rt2x00.

--
Regards,
Oleksij


Attachments:
signature.asc (213.00 B)
OpenPGP digital signature

2014-12-04 01:37:59

by Parth Sane

[permalink] [raw]
Subject: Re: Ralink 6570 / Mediatek MT7601STA (was Re: Addition of a wifi kernel module to the linux source tree)

Hi,
I'd say I'm midway through with c programming(part of my computer
engineering degree course) and know a decent amount of git. So yes I'm
comfortable writing code.
Also here's the link to an eBay listing for the same hardware.
http://www.ebay.com/itm/like/231051816145?lpid=82&item=231051816145&lgeo=1&vectorid=229466

I think that should do the trick.
Cheers,
-Parth

On 04/12/2014, Greg Kroah-Hartman <[email protected]> wrote:
> On Sun, Nov 30, 2014 at 06:55:12PM +0000, Parth Sane wrote:
>> Hi Greg,
>> You can find the source code attached as a tarball. It works and I have
>> tested
>> it myself. You only need to use make and make install for this.
>
> This really looks like a variant of some existing devices, the rt2x00,
> Ralink driver.
>
> I've copied the maintainers of that driver here.
>
> Is anyone working on support for the following devices in the existing
> rt2x00 USB driver:
>
> {USB_DEVICE(0x148f, 0x6570)}, /* Ralink 6570 */
> {USB_DEVICE(0x148f, 0x7650)}, /* MT7650 */
> {USB_DEVICE(0x148f, 0x6370)}, /* Ralink 6370 */
> {USB_DEVICE(0x148f, 0x7601)}, /* MT 6370 */
>
> thanks,
>
> greg k-h
>

2014-12-04 08:27:09

by Stanislaw Gruszka

[permalink] [raw]
Subject: Re: Ralink 6570 / Mediatek MT7601STA (was Re: Addition of a wifi kernel module to the linux source tree)

On Thu, Dec 04, 2014 at 03:52:52PM +1100, Julian Calaby wrote:
> On Thu, Dec 4, 2014 at 3:39 PM, Greg Kroah-Hartman
> <[email protected]> wrote:
> > On Thu, Dec 04, 2014 at 07:07:58AM +0530, Parth Sane wrote:
> >> Hi,
> >> I'd say I'm midway through with c programming(part of my computer
> >> engineering degree course) and know a decent amount of git. So yes I'm
> >> comfortable writing code.
> >
> > Ok great, let's see if it's just a matter of some changes to the
> > existing kernel driver before we decide to add the whole huge tarball
> > to the staging tree as fixing it up will be a lot of work.
>
> I believe some people (CC'd) may have been working on / had an
> interest in writing such a driver. I'm not sure what the status of
> that effort is though.

Right. Felix is working on new linux friendly driver for new Mediatek
chips.

Stanislaw

2014-12-04 04:41:09

by Greg Kroah-Hartman

[permalink] [raw]
Subject: Re: Ralink 6570 / Mediatek MT7601STA (was Re: Addition of a wifi kernel module to the linux source tree)

On Thu, Dec 04, 2014 at 07:07:58AM +0530, Parth Sane wrote:
> Hi,
> I'd say I'm midway through with c programming(part of my computer
> engineering degree course) and know a decent amount of git. So yes I'm
> comfortable writing code.

Ok great, let's see if it's just a matter of some changes to the
existing kernel driver before we decide to add the whole huge tarball
to the staging tree as fixing it up will be a lot of work.

> Also here's the link to an eBay listing for the same hardware.
> http://www.ebay.com/itm/like/231051816145?lpid=82&item=231051816145&lgeo=1&vectorid=229466

Thanks, I've ordered a few that look like this, hopefully some will
actually show up.

thanks,

greg k-h

2014-12-04 14:39:25

by Stanislaw Gruszka

[permalink] [raw]
Subject: Re: Ralink 6570 / Mediatek MT7601STA (was Re: Addition of a wifi kernel module to the linux source tree)

On Thu, Dec 04, 2014 at 09:49:53AM +0100, Oleksij Rempel wrote:
> So far i know, Felix is working on abgn+ac (MT7662 and MT7612) devices.
> MT7601STA is (a)bgn. Are there similar regs?

All Mediatek/Ralink devices I know have the same MAC registers, but
different BBP and RF registers.

> In mt7601 code i see parts like "if (IS_RT3290(pAd) || IS_RT65XX(pAd) ||
> IS_MT7601(pAd))". RT3290 is supported by rt2x00.

Hence looks that support for this devices should be added to rt2x00.

Stanislaw


2014-12-04 09:26:41

by Parth Sane

[permalink] [raw]
Subject: Re: Ralink 6570 / Mediatek MT7601STA (was Re: Addition of a wifi kernel module to the linux source tree)

Hi,
Guys I'll be using my other account on my private domain laer.in now
onwards. Be sure to add me in your contacts. My new email is
[email protected]
-Parth

On 4 December 2014 at 14:19, Oleksij Rempel <[email protected]> wrote:
> Am 04.12.2014 um 09:23 schrieb Stanislaw Gruszka:
>> On Thu, Dec 04, 2014 at 03:52:52PM +1100, Julian Calaby wrote:
>>> On Thu, Dec 4, 2014 at 3:39 PM, Greg Kroah-Hartman
>>> <[email protected]> wrote:
>>>> On Thu, Dec 04, 2014 at 07:07:58AM +0530, Parth Sane wrote:
>>>>> Hi,
>>>>> I'd say I'm midway through with c programming(part of my computer
>>>>> engineering degree course) and know a decent amount of git. So yes I'm
>>>>> comfortable writing code.
>>>>
>>>> Ok great, let's see if it's just a matter of some changes to the
>>>> existing kernel driver before we decide to add the whole huge tarball
>>>> to the staging tree as fixing it up will be a lot of work.
>>>
>>> I believe some people (CC'd) may have been working on / had an
>>> interest in writing such a driver. I'm not sure what the status of
>>> that effort is though.
>>
>> Right. Felix is working on new linux friendly driver for new Mediatek
>> chips.
>
> So far i know, Felix is working on abgn+ac (MT7662 and MT7612) devices.
> MT7601STA is (a)bgn. Are there similar regs?
>
> In mt7601 code i see parts like "if (IS_RT3290(pAd) || IS_RT65XX(pAd) ||
> IS_MT7601(pAd))". RT3290 is supported by rt2x00.
>
> --
> Regards,
> Oleksij
>

2014-12-04 10:54:04

by Luca Olivetti

[permalink] [raw]
Subject: Re: Ralink 6570 / Mediatek MT7601STA (was Re: Addition of a wifi kernel module to the linux source tree)

El 04/12/14 a les 02:24, Greg Kroah-Hartman ha escrit:
> On Sun, Nov 30, 2014 at 06:55:12PM +0000, Parth Sane wrote:
>> Hi Greg,
>> You can find the source code attached as a tarball. It works and I have tested
>> it myself. You only need to use make and make install for this.
>
> This really looks like a variant of some existing devices, the rt2x00,
> Ralink driver.

FWIW, if this is the mediatek supplied driver (was this
http://www.spinics.net/lists/linux-driver-devel/msg57929.html the
original message?), it has been discussed here before. It works (when
patched[*]) but (IMHO) it's not suitable for kernel inclusion.

[*] I collected those patches plus a couple I made to make it work with
big endian architecture here:

https://code.google.com/p/mt7601-openwrt/source/browse/#hg%2Fpatches

Bye
--
Luca

2015-02-10 09:27:54

by Parth Sane

[permalink] [raw]
Subject: Re: Ralink 6570 / Mediatek MT7601STA (was Re: Addition of a wifi kernel module to the linux source tree)

Hello everone!
A few months earlier I had requested addition of the MT7601 WiFi
dongle module into the kernel. I was told that the needful would be
done in the rt2x00 driver. Could you guys update me with the status?
Thanks a lot!
-Parth Sane

On 4 December 2014 at 20:06, Stanislaw Gruszka <[email protected]> wrote:
>
> On Thu, Dec 04, 2014 at 09:49:53AM +0100, Oleksij Rempel wrote:
> > So far i know, Felix is working on abgn+ac (MT7662 and MT7612) devices.
> > MT7601STA is (a)bgn. Are there similar regs?
>
> All Mediatek/Ralink devices I know have the same MAC registers, but
> different BBP and RF registers.
>
> > In mt7601 code i see parts like "if (IS_RT3290(pAd) || IS_RT65XX(pAd) ||
> > IS_MT7601(pAd))". RT3290 is supported by rt2x00.
>
> Hence looks that support for this devices should be added to rt2x00.
>
> Stanislaw
>