[rt2x00-users] [RFC/RFT 2/5] rt2800: reset RF using MCU command after firmware load

Ivo Van Doorn ivdoorn at gmail.com
Mon Jan 23 00:06:36 AEDT 2012


On Tue, Jan 17, 2012 at 12:53 PM, Stanislaw Gruszka <sgruszka at redhat.com> wrote:
> Vendor driver do MCU_BOOT_SIGNAL request only once after firmware
> load, and this is commented as RF reset (in rtmp_mcu.c file from 3070
> USB driver sources). So we should not call this in during
> rt2800_enable_radio too, since just before that function we do
> MCU_WAKEUP.
>
> Signed-off-by: Stanislaw Gruszka <sgruszka at redhat.com>

Acked-by: Ivo van Doorn <IvDoorn at gmail.com>

> ---
>  drivers/net/wireless/rt2x00/rt2800lib.c |   10 +++++-----
>  1 files changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/net/wireless/rt2x00/rt2800lib.c b/drivers/net/wireless/rt2x00/rt2800lib.c
> index 3e194b7..658508e 100644
> --- a/drivers/net/wireless/rt2x00/rt2800lib.c
> +++ b/drivers/net/wireless/rt2x00/rt2800lib.c
> @@ -450,6 +450,11 @@ int rt2800_load_firmware(struct rt2x00_dev *rt2x00dev,
>        rt2800_register_write(rt2x00dev, H2M_MAILBOX_CSR, 0);
>        if (rt2x00_is_usb(rt2x00dev))
>                rt2800_register_write(rt2x00dev, H2M_INT_SRC, 0);
> +       /*
> +        * Reset RF using MCU firmware interface.
> +        */
> +       rt2800_mcu_request(rt2x00dev, MCU_BOOT_SIGNAL, 0, 0, 0);
> +
>        msleep(1);
>
>        return 0;
> @@ -3678,11 +3683,6 @@ int rt2800_enable_radio(struct rt2x00_dev *rt2x00dev)
>                     rt2800_init_rfcsr(rt2x00dev)))
>                return -EIO;
>
> -       /*
> -        * Send signal to firmware during boot time.
> -        */
> -       rt2800_mcu_request(rt2x00dev, MCU_BOOT_SIGNAL, 0, 0, 0);
> -
>        if (rt2x00_is_usb(rt2x00dev) &&
>            (rt2x00_rt(rt2x00dev, RT3070) ||
>             rt2x00_rt(rt2x00dev, RT3071) ||
> --
> 1.7.1
>
>
> _______________________________________________
> users mailing list
> users at rt2x00.serialmonkey.com
> http://rt2x00.serialmonkey.com/mailman/listinfo/users_rt2x00.serialmonkey.com




More information about the users mailing list