Re: agrsm working to Ubuntu Feisty now

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I think is best comment line 2046 too.

#ifdef CONFIG_MCA
   /*
    * Don't probe for MCA ports on non-MCA machines.
    */
//    if (up->port.flags & UPF_BOOT_ONLYMCA && !MCA_bus)
//       return;
#endif

Or I prefer:

#if LINUX_VERSION_CODE < KERNEL_VERSION (2, 6, 19)
    if (up->port.flags & UPF_BOOT_ONLYMCA && !MCA_bus)
       return;
#endif

to older kernels compatibility.

Because at least the piece of code are executed:

#ifndef AGERE_SOFT_MODEM
   if (up->port.flags & UPF_RESOURCES) {
       ret = serial8250_request_std_resource(up, &res_std);
       if (ret < 0)
           return;

       ret = serial8250_request_rsa_resource(up, &res_rsa);
       if (ret < 0)
           probeflags &= ~PROBE_RSA;
   } else {
#endif
       probeflags &= ~PROBE_RSA;
#ifndef AGERE_SOFT_MODEM
   }
#endif
   if (flags & UART_CONFIG_TYPE)
       autoconfig(up, probeflags);
   if (up->port.type != PORT_UNKNOWN && flags & UART_CONFIG_IRQ)
       autoconfig_irq(up);

   /*
    * If the port wasn't an RSA port, release the resource.
    */
   if (up->port.type != PORT_RSA && res_rsa)
       release_resource(res_rsa);

   if (up->port.type == PORT_UNKNOWN && res_std)
       release_resource(res_std);

Marvin Stodolsky wrote:
Ludi

Read the README.1st in the attached,
test and report to the List

MarvS

On 8/3/07, Ludi Maciel <iludi@xxxxxxxxxx> wrote:
Please, can you send me your modules?
I could test it with my 11c1:0620 (Pinball) here.

Cheers,

Ludi


Em Sex, 2007-08-03 às 12:24 -0300, Hugo Leonardo Canalli escreveu:
First I use patch -i patch-20070702 to agrsm alpha

I use make modules and get the error:


serial26.c:2045: error: 'UPF_BOOT_ONLYMCA' undeclared (first use in this
function)

And I comment the line 2045:

if (up->port.flags & UPF_BOOT_ONLYMCA && !MCA_bus)

is now:

//if (up->port.flags & UPF_BOOT_ONLYMCA && !MCA_bus)

And I get compiled sucess

I use sudo modprobe agrmodem and sudo modprobe agrserial
I type dmesg | grep agr and get the messases:

agrmodem: module license 'Proprietary' taints kernel.
agrsm: created 0 infos
agrserial: Loading module Agere Modem Interface driver version
2.1.60.0.Linspire (2005-11-16)


Same whithout modem hardware because I'm using a Virtual Machine
(Virtual Box) with Ubuntu Feisty instaled.

I think is best use to the code:

#if LINUX_VERSION_CODE < KERNEL_VERSION (2, 6, 19)
    if (up->port.flags & UPF_BOOT_ONLYMCA && !MCA_bus)
        return
#endif

correct?







[Index of Archives]     [Linux Media Development]     [Asterisk]     [DCCP]     [Netdev]     [X.org]     [Xfree86]     [Fedora Women]     [Linux USB]

  Powered by Linux