Search Linux Wireless

Re: [PATCH 2/7] ath5k: Remove opaque pointers from ath5k_hw_attach()

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

 



On 11/1/07, Christoph Hellwig <hch@xxxxxxxxxxxxx> wrote:
> >  struct ath5k_hw {
> >       u32                     ah_magic;
> >
> > -     void                    *ah_sc;
> > -     void __iomem            *ah_sh;
> > +     struct ath5k_softc      *ah_sc;
> > +     void __iomem            *ah_iobase;
> >
> >       enum ath5k_int          ah_imr;
>
> Why do you need separate ath5k_hw and ath5k_softc structures anyway?

CC'ing Michael Taylor.

I hope we don't need both. This will take a bit to remove though.
Because of the old HAL, things that were MadWIfi driver related could
be written to ath5k_softc and the HAL itself was in charge of only
using ath5k_hw (their respective counterparts in MadWifi).

The only thing that might be useful here is perhaps for locking access
to HW parts, so it is nice to have those parts separate. Recently
there was some effort put into MadWifi by Michael Taylor to ensure A
LOT of HAL access routines were spinlocked before being run. You can
see this in if_ath_hal.h. Essentially a macro which does the
spin_lock_irqsave() was being run before many HAL access routines...
whether we need such extensive locking merits some review. Perhaps
this is where some of our current problems lies in.

  Luis
-
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux