Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wirel...
authorJohn W. Linville <linville@tuxdriver.com>
Fri, 8 Jul 2011 15:03:36 +0000 (11:03 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 8 Jul 2011 15:03:36 +0000 (11:03 -0400)
1  2 
drivers/Kconfig
drivers/Makefile
drivers/net/wireless/iwlwifi/iwl-dev.h
drivers/net/wireless/rt2x00/rt2800pci.c
drivers/net/wireless/rt2x00/rt2x00.h
drivers/net/wireless/wl12xx/io.h
drivers/net/wireless/wl12xx/spi.c
net/core/sock.c

diff --combined drivers/Kconfig
index 3bb154d8c8cc778713c28e0d335282cb715594a2,a56b0b83872e34762b5ce4f34b8f807615fe7c4c..258473ce8d01edacad70ac3238612a5298ba44f2
@@@ -54,8 -54,6 +54,8 @@@ source "drivers/spi/Kconfig
  
  source "drivers/pps/Kconfig"
  
 +source "drivers/ptp/Kconfig"
 +
  source "drivers/gpio/Kconfig"
  
  source "drivers/w1/Kconfig"
@@@ -94,8 -92,6 +94,6 @@@ source "drivers/memstick/Kconfig
  
  source "drivers/leds/Kconfig"
  
- source "drivers/nfc/Kconfig"
  source "drivers/accessibility/Kconfig"
  
  source "drivers/infiniband/Kconfig"
diff --combined drivers/Makefile
index 09f3232bcdcddd2ff2ce042cd0a7a977320356c4,843cd31a849e382e2e83209f65778bd60ab24d26..1bc896571a3a19762163d2cd215b87d8f55172d9
@@@ -17,9 -17,6 +17,9 @@@ obj-$(CONFIG_SFI)             += sfi
  # was used and do nothing if so
  obj-$(CONFIG_PNP)             += pnp/
  obj-$(CONFIG_ARM_AMBA)                += amba/
 +# Many drivers will want to use DMA so this has to be made available
 +# really early.
 +obj-$(CONFIG_DMA_ENGINE)      += dma/
  
  obj-$(CONFIG_VIRTIO)          += virtio/
  obj-$(CONFIG_XEN)             += xen/
@@@ -67,10 -64,11 +67,10 @@@ obj-$(CONFIG_ATA_OVER_ETH) += block/aoe
  obj-$(CONFIG_PARIDE)          += block/paride/
  obj-$(CONFIG_TC)              += tc/
  obj-$(CONFIG_UWB)             += uwb/
 -obj-$(CONFIG_USB_OTG_UTILS)   += usb/otg/
 +obj-$(CONFIG_USB_OTG_UTILS)   += usb/
  obj-$(CONFIG_USB)             += usb/
 -obj-$(CONFIG_USB_MUSB_HDRC)   += usb/musb/
  obj-$(CONFIG_PCI)             += usb/
 -obj-$(CONFIG_USB_GADGET)      += usb/gadget/
 +obj-$(CONFIG_USB_GADGET)      += usb/
  obj-$(CONFIG_SERIO)           += input/serio/
  obj-$(CONFIG_GAMEPORT)                += input/gameport/
  obj-$(CONFIG_INPUT)           += input/
@@@ -78,7 -76,6 +78,7 @@@ obj-$(CONFIG_I2O)             += message
  obj-$(CONFIG_RTC_LIB)         += rtc/
  obj-y                         += i2c/ media/
  obj-$(CONFIG_PPS)             += pps/
 +obj-$(CONFIG_PTP_1588_CLOCK)  += ptp/
  obj-$(CONFIG_W1)              += w1/
  obj-$(CONFIG_POWER_SUPPLY)    += power/
  obj-$(CONFIG_HWMON)           += hwmon/
@@@ -95,9 -92,10 +95,9 @@@ obj-$(CONFIG_EISA)           += eisa
  obj-y                         += lguest/
  obj-$(CONFIG_CPU_FREQ)                += cpufreq/
  obj-$(CONFIG_CPU_IDLE)                += cpuidle/
 -obj-$(CONFIG_DMA_ENGINE)      += dma/
  obj-$(CONFIG_MMC)             += mmc/
  obj-$(CONFIG_MEMSTICK)                += memstick/
 -obj-$(CONFIG_NEW_LEDS)                += leds/
 +obj-y                         += leds/
  obj-$(CONFIG_INFINIBAND)      += infiniband/
  obj-$(CONFIG_SGI_SN)          += sn/
  obj-y                         += firmware/
@@@ -122,3 -120,4 +122,4 @@@ obj-y                              += ieee802154
  obj-y                         += clk/
  
  obj-$(CONFIG_HWSPINLOCK)      += hwspinlock/
+ obj-$(CONFIG_NFC)             += nfc/
index f1b1128ee1c4dc6de3cd1eaff16084c291bbf68d,f4501f836155e2e7f04fbf4493dfac2834f7572e..c6560e97a62b5705015ee7ba573a4c87a607162c
@@@ -31,7 -31,6 +31,7 @@@
  #ifndef __iwl_dev_h__
  #define __iwl_dev_h__
  
 +#include <linux/interrupt.h>
  #include <linux/pci.h> /* for struct pci_device_id */
  #include <linux/kernel.h>
  #include <linux/wait.h>
@@@ -666,7 -665,6 +666,6 @@@ struct iwl_hw_params 
        u16 max_rxq_size;
        u16 max_rxq_log;
        u32 rx_page_order;
-       u32 rx_wrt_ptr_reg;
        u8  max_stations;
        u8  ht40_channel;
        u8  max_beacon_itrvl;   /* in 1024 ms */
@@@ -1228,6 -1226,25 +1227,25 @@@ struct iwl_bus 
        unsigned int irq;
  };
  
+ struct iwl_trans;
+ /**
+  * struct iwl_trans_ops - transport specific operations
+  * @rx_init: inits the rx memory, allocate it if needed
+  * @rx_free: frees the rx memory
+  * @tx_init:inits the tx memory, allocate if needed
+  */
+ struct iwl_trans_ops {
+       int (*rx_init)(struct iwl_priv *priv);
+       void (*rx_free)(struct iwl_priv *priv);
+       int (*tx_init)(struct iwl_priv *priv);
+ };
+ struct iwl_trans {
+       const struct iwl_trans_ops *ops;
+ };
  struct iwl_priv {
  
        /* ieee device used by generic ieee processing code */
        struct mutex mutex;
  
        struct iwl_bus bus;     /* bus specific data */
+       struct iwl_trans trans;
  
        /* microcode/device supports multiple contexts */
        u8 valid_contexts;
  
        /* command queue number */
        u8 cmd_queue;
-       u8 last_sync_cmd_id;
  
        /* max number of station keys */
        u8 sta_key_max_num;
index 9ccc53733bae556a9ea4e7e4a47a64cf16ec6c10,5319ed921a88c1a77f446a60776f412b85976756..ebc17ad61dec4612d0bbe872588c4f0e751d4fb4
@@@ -219,7 -219,7 +219,7 @@@ static void rt2800pci_start_queue(struc
                break;
        default:
                break;
 -      };
 +      }
  }
  
  static void rt2800pci_kick_queue(struct data_queue *queue)
@@@ -1031,6 -1031,7 +1031,7 @@@ static const struct ieee80211_ops rt280
        .flush                  = rt2x00mac_flush,
        .get_survey             = rt2800_get_survey,
        .get_ringparam          = rt2x00mac_get_ringparam,
+       .tx_frames_pending      = rt2x00mac_tx_frames_pending,
  };
  
  static const struct rt2800_ops rt2800pci_rt2800_ops = {
@@@ -1160,6 -1161,7 +1161,7 @@@ static DEFINE_PCI_DEVICE_TABLE(rt2800pc
  #endif
  #ifdef CONFIG_RT2800PCI_RT53XX
        { PCI_DEVICE(0x1814, 0x5390) },
+       { PCI_DEVICE(0x1814, 0x539f) },
  #endif
        { 0, }
  };
index 4efaf886fb8971cf0d49c6e0610935ff69355f88,db435abbd57a980c56b549fc39ab5089e247a662..f82bfeb79ebb67dc73c8d85cb434ab0b0cdacb7e
@@@ -29,7 -29,6 +29,7 @@@
  #define RT2X00_H
  
  #include <linux/bitops.h>
 +#include <linux/interrupt.h>
  #include <linux/skbuff.h>
  #include <linux/workqueue.h>
  #include <linux/firmware.h>
@@@ -1277,6 -1276,7 +1277,7 @@@ int rt2x00mac_set_antenna(struct ieee80
  int rt2x00mac_get_antenna(struct ieee80211_hw *hw, u32 *tx_ant, u32 *rx_ant);
  void rt2x00mac_get_ringparam(struct ieee80211_hw *hw,
                             u32 *tx, u32 *tx_max, u32 *rx, u32 *rx_max);
+ bool rt2x00mac_tx_frames_pending(struct ieee80211_hw *hw);
  
  /*
   * Driver allocation handlers.
index 20b00319e444af4ce3903b23318e06a576140def,cfb3588a4ddf39d558ad44ac9e8fda71085d00d5..a2fe4f506adaf88335b47c5806507ca3a7310b91
@@@ -25,7 -25,6 +25,7 @@@
  #ifndef __IO_H__
  #define __IO_H__
  
 +#include <linux/irqreturn.h>
  #include "reg.h"
  
  #define HW_ACCESS_MEMORY_MAX_RANGE    0x1FFC0
@@@ -129,6 -128,20 +129,20 @@@ static inline void wl1271_write(struct 
        wl1271_raw_write(wl, physical, buf, len, fixed);
  }
  
+ static inline void wl1271_read_hwaddr(struct wl1271 *wl, int hwaddr,
+                                     void *buf, size_t len, bool fixed)
+ {
+       int physical;
+       int addr;
+       /* Addresses are stored internally as addresses to 32 bytes blocks */
+       addr = hwaddr << 5;
+       physical = wl1271_translate_addr(wl, addr);
+       wl1271_raw_read(wl, physical, buf, len, fixed);
+ }
  static inline u32 wl1271_read32(struct wl1271 *wl, int addr)
  {
        return wl1271_raw_read32(wl, wl1271_translate_addr(wl, addr));
index beebf64c535927ca43173a9cb66507ad6e2ad003,b73cee117adaee7aa0ecbb4f78d1cadf363455b0..e0b3736d7e1921886d7b3e1882efb9eed11beaaa
@@@ -21,7 -21,6 +21,7 @@@
   *
   */
  
 +#include <linux/interrupt.h>
  #include <linux/irq.h>
  #include <linux/module.h>
  #include <linux/crc7.h>
@@@ -436,8 -435,6 +436,6 @@@ static int __devinit wl1271_probe(struc
        if (ret)
                goto out_irq;
  
-       wl1271_notice("initialized");
        return 0;
  
   out_irq:
@@@ -474,23 -471,12 +472,12 @@@ static struct spi_driver wl1271_spi_dri
  
  static int __init wl1271_init(void)
  {
-       int ret;
-       ret = spi_register_driver(&wl1271_spi_driver);
-       if (ret < 0) {
-               wl1271_error("failed to register spi driver: %d", ret);
-               goto out;
-       }
- out:
-       return ret;
+       return spi_register_driver(&wl1271_spi_driver);
  }
  
  static void __exit wl1271_exit(void)
  {
        spi_unregister_driver(&wl1271_spi_driver);
-       wl1271_notice("unloaded");
  }
  
  module_init(wl1271_init);
diff --combined net/core/sock.c
index 76c40314675038f35669ca3642fcf73fbce89d67,84d6de80935256a9d2deddb10b7b686b06821a60..bc745d00ea4dd31177445dcc4282afd669a33cb6
  
  #include <linux/filter.h>
  
 +#include <trace/events/sock.h>
 +
  #ifdef CONFIG_INET
  #include <net/tcp.h>
  #endif
@@@ -160,7 -158,7 +160,7 @@@ static const char *const af_family_key_
    "sk_lock-AF_TIPC"  , "sk_lock-AF_BLUETOOTH", "sk_lock-IUCV"        ,
    "sk_lock-AF_RXRPC" , "sk_lock-AF_ISDN"     , "sk_lock-AF_PHONET"   ,
    "sk_lock-AF_IEEE802154", "sk_lock-AF_CAIF" , "sk_lock-AF_ALG"      ,
-   "sk_lock-AF_MAX"
+   "sk_lock-AF_NFC"   , "sk_lock-AF_MAX"
  };
  static const char *const af_family_slock_key_strings[AF_MAX+1] = {
    "slock-AF_UNSPEC", "slock-AF_UNIX"     , "slock-AF_INET"     ,
    "slock-AF_TIPC"  , "slock-AF_BLUETOOTH", "slock-AF_IUCV"     ,
    "slock-AF_RXRPC" , "slock-AF_ISDN"     , "slock-AF_PHONET"   ,
    "slock-AF_IEEE802154", "slock-AF_CAIF" , "slock-AF_ALG"      ,
-   "slock-AF_MAX"
+   "slock-AF_NFC"   , "slock-AF_MAX"
  };
  static const char *const af_family_clock_key_strings[AF_MAX+1] = {
    "clock-AF_UNSPEC", "clock-AF_UNIX"     , "clock-AF_INET"     ,
    "clock-AF_TIPC"  , "clock-AF_BLUETOOTH", "clock-AF_IUCV"     ,
    "clock-AF_RXRPC" , "clock-AF_ISDN"     , "clock-AF_PHONET"   ,
    "clock-AF_IEEE802154", "clock-AF_CAIF" , "clock-AF_ALG"      ,
-   "clock-AF_MAX"
+   "clock-AF_NFC"   , "clock-AF_MAX"
  };
  
  /*
@@@ -294,7 -292,6 +294,7 @@@ int sock_queue_rcv_skb(struct sock *sk
        if (atomic_read(&sk->sk_rmem_alloc) + skb->truesize >=
            (unsigned)sk->sk_rcvbuf) {
                atomic_inc(&sk->sk_drops);
 +              trace_sock_rcvqueue_full(sk, skb);
                return -ENOMEM;
        }
  
@@@ -1739,8 -1736,6 +1739,8 @@@ suppress_allocation
                        return 1;
        }
  
 +      trace_sock_exceed_buf_limit(sk, prot, allocated);
 +
        /* Alas. Undo changes. */
        sk->sk_forward_alloc -= amt * SK_MEM_QUANTUM;
        atomic_long_sub(amt, prot->memory_allocated);