Octavian Purdila
f10d843420
goldfish: add support for 64bit to the virtual bus
...
This patchs adds a new register to pass the upper 32bits for the
device name address when running in 64bit mode.
Signed-off-by: Octavian Purdila <octavian.purdila@intel.com >
Signed-off-by: Jun Tian <jun.j.tian@intel.com >
Signed-off-by: Alan Cox <alan@linux.intel.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-15 13:19:00 -07:00
Jun Tian
25c72c786c
goldfish: fix kernel panic when using multiple adb connection
...
When using multiple adb on 64 bit kernel to transfer data,
the goldfish pipe interrupt will crash the kernel.
Signed-off-by: Jun Tian <jun.j.tian@intel.com >
Signed-off-by: Alan Cox <alan@linux.intel.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-15 13:19:00 -07:00
Jun Tian
49a75c444f
goldfish: 64-bit pipe driver for goldfish platform
...
Support 64-bit channel and address for the goldfish pipe driver.
Signed-off-by: Jun Tian <jun.j.tian@intel.com >
Signed-off-by: Octavian Purdila <octavian.purdila@intel.com >
Signed-off-by: Brian Wood <brian.j.wood@intel.com >
Signed-off-by: Alan Cox <alan@linux.intel.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-15 13:19:00 -07:00
Christian Engelmayer
0cc6c3ab3c
staging: rtl8723au: Remove unused pointer in rtw_wdev_free()
...
Pointer 'pwdev_priv' in function rtw_wdev_free() is unused - thus remove it.
Signed-off-by: Christian Engelmayer <cengelma@gmx.at >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-15 13:17:31 -07:00
Dan Carpenter
1b3b9af100
staging: rtl8723au: fix some confusing indenting
...
The break and the "unknown++" are at the same indent level so my static
checker complains. The if statement should be indented more.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com >
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-15 13:12:03 -07:00
Jes Sorensen
ef05499a75
staging: rtl8723au: Remove unused struct odm_ra_info
...
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-15 13:12:03 -07:00
Jes Sorensen
baa76831d1
staging: rtl8723au: Since struct odm_sta_info isn't used, remove it completely
...
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-15 13:12:03 -07:00
Jes Sorensen
9f40993754
staging: rtl8723au: Remove unused variable IOTPeer
...
For bizarre reason we have unused variables IOTPeer both in struct
sta_info and struct odm_sta_info.
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-15 13:12:03 -07:00
Jes Sorensen
299bcd779a
staging: rtl8723au: struct odm_mac_info isn't used
...
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-15 13:12:03 -07:00
Jes Sorensen
c7fff4e43c
staging: rtl8723au: struct phy_info and struct odm_phy_info are identical
...
We don't need two copies of the same struct, it just leads to
pointless typecasts.
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-15 13:12:03 -07:00
Jes Sorensen
d095789ae6
staging: rtl8723au: Remove empty *_free_xmit_priv() and friends
...
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-15 13:12:03 -07:00
Jes Sorensen
099a845251
staging: rtl8723au: Eliminate no-op function rtl8723au_init_recvbuf()
...
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-15 13:12:02 -07:00
Jes Sorensen
a61b32289a
staging: rtl8723au: Remove another unused queue from struct recv_priv
...
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-15 13:12:02 -07:00
Jes Sorensen
208ceb8307
staging: rtl8723au: Remove some unused lists from struct sta_priv
...
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-15 13:12:02 -07:00
Jes Sorensen
d8ab7e840d
staging: rtl8723au: rtw_pwrctrl.c: Reduce spaghettification
...
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-15 13:12:02 -07:00
Jes Sorensen
561fb403ba
staging: rtl8723au: pattrib->priority can't be > 15, no need for CHKBIT()
...
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-15 13:12:02 -07:00
Jes Sorensen
7855848ecd
staging: rtl8723au: qos_asm23a(): Don't pass through an invalid priority
...
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-15 13:12:02 -07:00
Jes Sorensen
c06209d948
staging: rtl8723au: set_qos() keep userpriority in a u8
...
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-15 13:12:02 -07:00
Jes Sorensen
d7f2c23adf
staging: rtl8723au: Another case of missing 'tid' bounds checking.
...
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-15 13:12:02 -07:00
Jes Sorensen
4e489d91b4
staging: rtl8723au: 'keyid' is always 0-3, no need for CHKBIT()
...
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-15 13:12:02 -07:00
Jes Sorensen
5a44389331
staging: rtl8723au: No need for CHKBIT since 16 + 12 is still < 32
...
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-15 13:12:02 -07:00
Jes Sorensen
072fc84dce
staging: rtl8723au: tid is 4 bits, so we need a 16 bit value to hold a bitmap
...
Remove unused add_enable_bitmap and candidate_tid_bitmap from struct
mlme_ext_info.
In addition we don't need to use CHKBIT when we know we are dealing
with a value in the range 0-15.
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-15 13:12:02 -07:00
Jes Sorensen
405c9f5089
staging: rtl8723au: Remove local #define BIT()
...
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-15 13:12:01 -07:00
Jes Sorensen
00cf86c997
staging: rtl8723au: Call c2h_handler_8723a() directly instead of via HAL interface
...
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-15 13:12:01 -07:00
Jes Sorensen
227ca8c4c4
staging: rtl8723au: The driver only has one c2h_id_filter
...
Since we only have one function for this, there is no point in keeping
the HAL silliness.
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-15 13:12:01 -07:00
Jes Sorensen
849befad33
staging: rtl8723au: c2h_evt_hdl() is always called with 3rd argument = NULL
...
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-15 13:12:01 -07:00
Jes Sorensen
ab281e3ba9
staging: rtl8723au: Declare c2h_evt_hdl static
...
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-15 13:12:01 -07:00
Jes Sorensen
95b0f20008
staging: rtl8723au: Move rtw_do_join23a() prototype to rtw_ioctl_set.h
...
rtw_do_join23a() is declared in rtw_ioctl_set.c so move the prototype
to it's correct place, and remove duplicate protoype from rtw_mlme.c
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-15 13:12:01 -07:00
Jes Sorensen
7871778259
staging: rtl8723au: Move {WPA,RSN}_TKIP_CIPHER23A to rtw_wlan_util.c and mark them static
...
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-15 13:12:01 -07:00
Jes Sorensen
f85bd05247
staging: rtl8723au: Move REALTEK96B_IE23A to rtw_mlme_ext.c and mark it static
...
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-15 13:12:01 -07:00
Jes Sorensen
d39518a4b5
staging: rtl8723au: Remove unused ADPT_{FMT,AGR} macros
...
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-15 13:12:01 -07:00
Jes Sorensen
a790d58e68
staging: rtl8723au: Get rid of FUNC_NDEV_{FMT,ARG}
...
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-15 13:12:01 -07:00
Jes Sorensen
9cd613c739
staging: rtl8723au: Remove FUNC_ADPT_{FMT,ARG}
...
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-15 13:12:00 -07:00
Jes Sorensen
dc24abd409
staging: rtl8723au: Get rid of NDEV_FMT/NDEV_ARG macros
...
Silly use-once macros that simply obfuscates the code.
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-15 13:12:00 -07:00
Jes Sorensen
5e3a829996
staging: rtl8723au: Remove some unused prototypes
...
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-15 13:12:00 -07:00
Jes Sorensen
be4c50604d
staging: rtl8723au: Eliminate RTW_STATUS_CODE23a()
...
Inline the parsing of status codes. Long term we should pass back the
proper status codes and get rid of the ugly _FAIL/_SUCCESS mess. This
is one small step in that direction.
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-15 13:12:00 -07:00
Jes Sorensen
794ff0530e
staging: rtl8723au: Eliminate _rtw_queue_empty23a()
...
This was just a silly wrapper around list_empty()
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-15 13:12:00 -07:00
Jes Sorensen
c5779a0d1f
staging: rtl8723au: rtw_free_recvframe23a() is always passed precvpriv->free_recv_queue
...
No point in passing in the pointer to free_recv_queue, when we always
pass in the same value.
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-15 13:12:00 -07:00
Jes Sorensen
a954a18f46
staging: rtl8723au: Remove unused semaphore 'allrxreturnevt'
...
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-15 13:12:00 -07:00
Jes Sorensen
6f43d3bd9c
staging: rtl8723au: Remove ugly vmalloc() wrappers
...
Finally with the last user converted, get rid of ugly vmalloc wrappers
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-15 13:12:00 -07:00
Jes Sorensen
fd6d1c111b
staging: rtl8723au: Use kmalloc instead of vmalloc to allocate recv_frame pool
...
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-15 13:12:00 -07:00
Jes Sorensen
269746a4f3
staging: rtl723au: Remove some obsolete misleading comments
...
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-15 13:12:00 -07:00
Jes Sorensen
3a35058f2e
stating: rtl8723au: Use kmalloc instead of vmalloc to allocate pool of xmit_frame_ext
...
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-15 13:12:00 -07:00
Jes Sorensen
251ccc2d86
staging: rtl8723au: Use kmalloc() rather than vmalloc() to allocate xmit_frames
...
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-15 13:11:59 -07:00
Jes Sorensen
6042cbfddb
staging: rtl8723au: Declare rtw_alloc_xmitframe() static
...
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-15 13:11:59 -07:00
Christian Engelmayer
086f7a4d17
staging: rtl8723au: fix potential leak in update_bcn_wps_ie()
...
Fix a potential leak in the error path of function update_bcn_wps_ie().
Move the affected input verification to the beginning of the function so
that it may return directly without leaking already allocated memory.
Detected by Coverity - CID 1077718.
Signed-off-by: Christian Engelmayer <cengelma@gmx.at >
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-15 13:11:59 -07:00
Jes Sorensen
6e8bc71df6
staging: rtl8723au: Add GFP argument to rtw_alloc_stainfo23a()
...
No need to allocate GFP_ATOMIC when we don't need to.
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-15 13:11:59 -07:00
Jes Sorensen
2ad7c3d940
staging: rtl8723au: Use kernel memory allocator for sta_priv allocations
...
The kernel has a great memory allocator, use it instead of hacking up
something in the driver.
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-15 13:11:59 -07:00
Jes Sorensen
6964213a94
staging: rtl8723au: Eliminate stainfo_by_offset spaghetti
...
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-15 13:11:59 -07:00
Jes Sorensen
ec838b0bc9
staging: rtl8723au: add GFP argument to rtw_alloc_network()
...
This allows us to use GFP_KERNEL when calling from a work handler.
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-15 13:11:59 -07:00