Commit Graph

548134 Commits

Author SHA1 Message Date
Mateusz Kulikowski 5f3cd6e503 staging: rtl8192e: Rename CPUcheck_maincodeok_turnonCPU
Use naming schema found in other rtlwifi devices.
Rename CPUcheck_maincodeok_turnonCPU to _rtl92e_fw_boot_cpu.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-09-29 03:33:44 +02:00
Mateusz Kulikowski d4ad6ef1ff staging: rtl8192e: Rename CPUcheck_firmware_ready
Use naming schema found in other rtlwifi devices.
Rename CPUcheck_firmware_ready to _rtl92e_is_fw_ready.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-09-29 03:33:43 +02:00
Mateusz Kulikowski 615c8d8d53 staging: rtl8192e: Rename MRateToHwRate8190Pci
Use naming schema found in other rtlwifi devices.
Rename MRateToHwRate8190Pci to _rtl92e_rate_mgn_to_hw.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-09-29 03:33:43 +02:00
Mateusz Kulikowski 01d5f56691 staging: rtl8192e: Rename HwRateToMRate90
Use naming schema found in other rtlwifi devices.
Rename HwRateToMRate90 to _rtl92e_rate_hw_to_mgn.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-09-29 03:33:43 +02:00
Mateusz Kulikowski ea2d7059f4 staging: rtl8192e: Rename rtl819x_RxCheckStuck
Use naming schema found in other rtlwifi devices.
Rename rtl819x_RxCheckStuck to _rtl92e_rx_check_stuck.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-09-29 03:33:43 +02:00
Mateusz Kulikowski 0ba8f7c0d4 staging: rtl8192e: Rename rtl8192_rx_normal
Use naming schema found in other rtlwifi devices.
Rename rtl8192_rx_normal to _rtl92e_rx_normal.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-09-29 03:33:43 +02:00
Mateusz Kulikowski c8d8419176 staging: rtl8192e: Rename rtl819x_TxCheckStuck
Use naming schema found in other rtlwifi devices.
Rename rtl819x_TxCheckStuck to _rtl92e_tx_check_stuck.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-09-29 03:33:43 +02:00
Mateusz Kulikowski 6f8d4a7db6 staging: rtl8192e: Rename rtl8192_is_tx_queue_empty
Use naming schema found in other rtlwifi devices.
Rename rtl8192_is_tx_queue_empty to _rtl92e_is_tx_queue_empty.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-09-29 03:33:43 +02:00
Mateusz Kulikowski a67c79040e staging: rtl8192e: Rename rtl8192_tx_resume
Use naming schema found in other rtlwifi devices.
Rename rtl8192_tx_resume to _rtl92e_tx_resume.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-09-29 03:33:42 +02:00
Mateusz Kulikowski ac39265532 staging: rtl8192e: Rename rtl8192_tx_timeout
Use naming schema found in other rtlwifi devices.
Rename rtl8192_tx_timeout to _rtl92e_tx_timeout.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-09-29 03:33:42 +02:00
Mateusz Kulikowski 7effc87bcb staging: rtl8192e: Rename rtl8192_tx_isr
Use naming schema found in other rtlwifi devices.
Rename rtl8192_tx_isr to _rtl92e_tx_isr.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-09-29 03:33:42 +02:00
Mateusz Kulikowski 98208f968c staging: rtl8192e: Rename rtl8192_tx_cmd
Use naming schema found in other rtlwifi devices.
Rename rtl8192_tx_cmd to _rtl92e_tx_cmd.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-09-29 03:33:42 +02:00
Mateusz Kulikowski 374a3c5a5d staging: rtl8192e: Rename rtl8192_tx
Use naming schema found in other rtlwifi devices.
Rename rtl8192_tx to _rtl92e_tx.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-09-29 03:33:41 +02:00
Mateusz Kulikowski ebc36ecde0 staging: rtl8192e: Rename rtl8192_free_tx_ring
Use naming schema found in other rtlwifi devices.
Rename rtl8192_free_tx_ring to _rtl92e_free_tx_ring.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-09-29 03:33:41 +02:00
Mateusz Kulikowski 694f9d30f7 staging: rtl8192e: Rename rtl8192_free_rx_ring
Use naming schema found in other rtlwifi devices.
Rename rtl8192_free_rx_ring to _rtl92e_free_rx_ring.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-09-29 03:33:41 +02:00
Mateusz Kulikowski bf1ddf24d8 staging: rtl8192e: Rename rtl8192_alloc_tx_desc_ring
Use naming schema found in other rtlwifi devices.
Rename rtl8192_alloc_tx_desc_ring to _rtl92e_alloc_tx_ring.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-09-29 03:33:40 +02:00
Mateusz Kulikowski 9d148965eb staging: rtl8192e: Rename rtl8192_alloc_rx_desc_ring
Use naming schema found in other rtlwifi devices.
Rename rtl8192_alloc_rx_desc_ring to _rtl92e_alloc_rx_ring.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-09-29 03:33:40 +02:00
Mateusz Kulikowski 93cc57b5d4 staging: rtl8192e: Rename rtl8192_pci_probe
Use naming schema found in other rtlwifi devices.
Rename rtl8192_pci_probe to _rtl92e_pci_probe.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-09-29 03:33:40 +02:00
Mateusz Kulikowski e482fb542c staging: rtl8192e: Rename rtl8192_pci_module_init
Use naming schema found in other rtlwifi devices.
Rename rtl8192_pci_module_init to _rtl92e_pci_module_init.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-09-29 03:33:40 +02:00
Mateusz Kulikowski d96bde71d8 staging: rtl8192e: Rename rtl8192_pci_module_exit
Use naming schema found in other rtlwifi devices.
Rename rtl8192_pci_module_exit to _rtl92e_pci_module_exit.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-09-29 03:33:39 +02:00
Mateusz Kulikowski 197917a890 staging: rtl8192e: Rename rtl8192_pci_initdescring
Use naming schema found in other rtlwifi devices.
Rename rtl8192_pci_initdescring to _rtl92e_pci_initdescring.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-09-29 03:33:39 +02:00
Mateusz Kulikowski 4a85182159 staging: rtl8192e: Rename rtl8192_pci_disconnect
Use naming schema found in other rtlwifi devices.
Rename rtl8192_pci_disconnect to _rtl92e_pci_disconnect.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-09-29 03:33:39 +02:00
Mateusz Kulikowski 81524bbc17 staging: rtl8192e: Rename _rtl8192_up
Use naming schema found in other rtlwifi devices.
Rename _rtl8192_up to _rtl92e_up.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-09-29 03:33:39 +02:00
Mateusz Kulikowski b1665a67be staging: rtl8192e: Rename rtl8192_up
Use naming schema found in other rtlwifi devices.
Rename rtl8192_up to _rtl92e_try_up.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-09-29 03:33:39 +02:00
Mateusz Kulikowski 78e67df3f3 staging: rtl8192e: Rename rtl8192_restart
Use naming schema found in other rtlwifi devices.
Rename rtl8192_restart to _rtl92e_restart.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-09-29 03:33:38 +02:00
Mateusz Kulikowski 33bec9bd9b staging: rtl8192e: Rename rtl8192_down
Use naming schema found in other rtlwifi devices.
Rename rtl8192_down to _rtl92e_down.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-09-29 03:33:38 +02:00
Mateusz Kulikowski 27cbba60e0 staging: rtl8192e: Rename rtl8192_close
Use naming schema found in other rtlwifi devices.
Rename rtl8192_close to _rtl92e_close.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-09-29 03:33:38 +02:00
Mateusz Kulikowski 27d673b0bc staging: rtl8192e: Rename rtl8192_open
Use naming schema found in other rtlwifi devices.
Rename rtl8192_open to _rtl92e_open.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-09-29 03:33:38 +02:00
Mateusz Kulikowski 09c26de711 staging: rtl8192e: Rename rtl8192_ioctl
Use naming schema found in other rtlwifi devices.
Rename rtl8192_ioctl to _rtl92e_ioctl.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-09-29 03:33:38 +02:00
Mateusz Kulikowski a2743b2cd6 staging: rtl8192e: Rename rtl8192_irq_tx_tasklet
Use naming schema found in other rtlwifi devices.
Rename rtl8192_irq_tx_tasklet to _rtl92e_irq_tx_tasklet.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-09-29 03:33:37 +02:00
Mateusz Kulikowski 2940405b2b staging: rtl8192e: Rename rtl8192_irq_rx_tasklet
Use naming schema found in other rtlwifi devices.
Rename rtl8192_irq_rx_tasklet to _rtl92e_irq_rx_tasklet.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-09-29 03:33:37 +02:00
Mateusz Kulikowski 87e01f2250 staging: rtl8192e: Rename rtl8192_interrupt
Use naming schema found in other rtlwifi devices.
Rename rtl8192_interrupt to _rtl92e_irq.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-09-29 03:33:37 +02:00
Mateusz Kulikowski 414f401f60 staging: rtl8192e: Rename rtl8192_init_priv_variable
Use naming schema found in other rtlwifi devices.
Rename rtl8192_init_priv_variable to _rtl92e_init_priv_variable.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-09-29 03:33:37 +02:00
Mateusz Kulikowski 4ab2a8feae staging: rtl8192e: Rename rtl8192_init_priv_task
Use naming schema found in other rtlwifi devices.
Rename rtl8192_init_priv_task to _rtl92e_init_priv_task.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-09-29 03:33:37 +02:00
Mateusz Kulikowski 529c66c1f1 staging: rtl8192e: Rename rtl8192_init_priv_lock
Use naming schema found in other rtlwifi devices.
Rename rtl8192_init_priv_lock to _rtl92e_init_priv_lock.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-09-29 03:33:37 +02:00
Mateusz Kulikowski b8d0dc3c27 staging: rtl8192e: Rename rtl8192_init_priv_handler
Use naming schema found in other rtlwifi devices.
Rename rtl8192_init_priv_handler to _rtl92e_init_priv_handler.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-09-29 03:33:37 +02:00
Mateusz Kulikowski 6b2aaeaed4 staging: rtl8192e: Rename rtl8192_init_priv_constant
Use naming schema found in other rtlwifi devices.
Rename rtl8192_init_priv_constant to _rtl92e_init_priv_constant.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-09-29 03:33:37 +02:00
Mateusz Kulikowski 6bd5e8e0a2 staging: rtl8192e: Rename rtl8192_init
Use naming schema found in other rtlwifi devices.
Rename rtl8192_init to _rtl92e_init.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-09-29 03:33:37 +02:00
H Hartley Sweeten bc86e82d34 staging: comedi: rtd520: hook up 8254 timer/counter subdevice
There is a standard 8254 Timer/Counter device on the board. Hook up
the subdevice for the user.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-09-29 03:32:22 +02:00
H Hartley Sweeten da6877732d staging: comedi: rtd520: use DIV_ROUND_CLOSEST and DIV_ROUND_UP macros
Use the macros to clarify the divisor calculations.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-09-29 03:32:22 +02:00
H Hartley Sweeten 640da60317 staging: comedi: rtd520: tidy up block comments
Use the preferred block command style.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-09-29 03:32:22 +02:00
H Hartley Sweeten 152eb6cc37 staging: comedi: rtd520: remove unnecessary function desc. block comments
These function description comments are cut-and-paste cruft from the
old skeleton driver. Remove them.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-09-29 03:32:22 +02:00
H Hartley Sweeten 8e0768b184 staging: comedi: rtd520: fix rtd_ao_winsn()
The "comedi range and offset conversions" in this function is
incorrect. According to the hardware manual, the DAC registers
are defined as:

    | D15  | D14-D03     | D02 | | D01 | D00 |
    | Sign | 12-bit data | (see manual)      |

The extended 'Sign' bit is only used for bipolar ranges to indicate
negative 12-bit data values.

The current code actually flips the sign for all bipolar data
values instead of just munging the value to 2's complement and
extending the sign bit.

Fix the function to correctly munge the comedi offset binary
values into 2's complement and extended the sign when bipolar
ranges are specified.

For aesthetics, rename this function and tidy it up a bit.

Save the readback value after the conversion is complete.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-09-29 03:32:22 +02:00
H Hartley Sweeten 78c1652c7e staging: comedi: rtd520: convert DAC register defines to macros
For aesthetics, convert the defines for the various DAC registers into
macros that take the comedi channel and return the correct offset.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-09-29 03:32:22 +02:00
H Hartley Sweeten 4ddf02bfd8 staging: comedi: rtd520: remove unnecessary comments from rtd_ao_winsn()
These comments are cut-and-paste from the old skeleton driver. Remove
them.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-09-29 03:32:21 +02:00
H Hartley Sweeten e7211492e3 staging: comedi: rtd520: move constants to right side of comparisons
Fix the checkpatch.pl issues about:

WARNING: Comparisons should place the constant on the right side of the test

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-09-29 03:32:21 +02:00
H Hartley Sweeten fd62ef0058 staging: comedi: rtd520: rename rtd520Boards
For aesthetics, rename this CamelCase array.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-09-29 03:32:21 +02:00
H Hartley Sweeten 120bdac737 staging: comedi: rtd529: usleep_range is preferred over udelay
Fix checkpatch issue: "CHECK: usleep_range is preferred over udelay; see
Documentation/timers/timers-howto.txt".  `udelay()` is only used in the
firmware upload process.  Replace them with `usleep_range()` with a
reasonable upper limit.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-09-29 03:32:21 +02:00
H Hartley Sweeten c3aea01259 staging: comedi: rtd520: fix logical continuations
Fix the checkpatch.pl issues about:

CHECK: Logical continuations should be on the previous line

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-09-29 03:32:21 +02:00
H Hartley Sweeten 267d2e0741 staging: comedi: rtd520: prefer using the BIT macro
Use the BIT macro to define the register bits.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-09-29 03:32:21 +02:00