Search Linux Wireless

Re: [PATCH v4] Add new mac80211 driver mwlwifi.

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

 



On Wed, 2015-07-01 at 14:42 +0000, David Lin wrote:
> > We can leave both selectable by developer testing as per your
> suggestion, and assume users/integrators will know how to put the 
> driver they want in their system. We were warned about causing 
> confusion hence the conditioning in CONFIG. Do you feel there's no 
> concern leaving both driver in, not checking each other's presence? 
> We can comply either way.

I think you should just leave both selectable.

> > > > This looks OK, though I get a very strange dependency loop 
> > > > warning
> > > > from Kconfig here.
> 
> For the next patch, we will modify the code to still work even though 
> the target does not support DTS. So we can remove "select OF" from 
> Kconfig file.

If the driver needs OF don't bother - the dependency loop is very long
and the warning is rather strange.

> > > > > writew(0x00, (void __iomem *)&priv->pcmd_buf[1]);
> > > > 
> > > > cannot be right. This memory isn't __iomem, it's 
> > > > dma_alloc_coherent,
> > > > so a simple write should be done.
> > > > 
> 
> Without this casting, C=2 will cause a warning message like this: 
> "Warning: incorrect type in argument 2 (different address spaces)"

Yes, but the warning is correct and the cast is wrong. This isn't
__iomem, it's simply mapped, so you should just do a
	(u32 *)pcmd_buf[1] = 0;

or something like that. The writev() to such a pointer cannot be right.

> johannes
--
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 Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux