staging: gdm72xx: Add GCT GDM72xx WiMAX driver.
PATCH 1/1 staging: gdm72xx: Add GCT GDM72xx WiMAX driver.
This patch provides the kernel driver for the GDM72xx WiMAX chips developed by GCT Semiconductor, Inc., which enables mobile WiMAX connection on the Linux host.
--- drivers/staging/Kconfig | 2 + drivers/staging/Makefile | 1 + drivers/staging/gdm72xx/ChangeLog | 88 +++ drivers/staging/gdm72xx/Kconfig | 45 ++ drivers/staging/gdm72xx/LICENSE | 26 + drivers/staging/gdm72xx/Makefile | 6 + drivers/staging/gdm72xx/TODO | 5 + drivers/staging/gdm72xx/gdm_qos.c | 453 ++++++++++++++++ drivers/staging/gdm72xx/gdm_qos.h | 86 +++ drivers/staging/gdm72xx/gdm_sdio.c | 747 +++++++++++++++++++++++++ drivers/staging/gdm72xx/gdm_sdio.h | 65 +++ drivers/staging/gdm72xx/gdm_usb.c | 797 +++++++++++++++++++++++++++ drivers/staging/gdm72xx/gdm_usb.h | 78 +++ drivers/staging/gdm72xx/gdm_wimax.c | 1018 +++++++++++++++++++++++++++++++++++ drivers/staging/gdm72xx/gdm_wimax.h | 85 +++ drivers/staging/gdm72xx/hci.h | 211 ++++++++ drivers/staging/gdm72xx/netlink_k.c | 143 +++++ drivers/staging/gdm72xx/netlink_k.h | 17 + drivers/staging/gdm72xx/sdio_boot.c | 152 ++++++ drivers/staging/gdm72xx/sdio_boot.h | 14 + drivers/staging/gdm72xx/usb_boot.c | 397 ++++++++++++++ drivers/staging/gdm72xx/usb_boot.h | 15 + drivers/staging/gdm72xx/usb_ids.h | 75 +++ drivers/staging/gdm72xx/wm_ioctl.h | 90 +++ 24 files changed, 4616 insertions(+), 0 deletions(-) create mode 100644 drivers/staging/gdm72xx/ChangeLog create mode 100644 drivers/staging/gdm72xx/Kconfig create mode 100644 drivers/staging/gdm72xx/LICENSE create mode 100644 drivers/staging/gdm72xx/Makefile create mode 100644 drivers/staging/gdm72xx/TODO create mode 100644 drivers/staging/gdm72xx/gdm_qos.c create mode 100644 drivers/staging/gdm72xx/gdm_qos.h create mode 100644 drivers/staging/gdm72xx/gdm_sdio.c create mode 100644 drivers/staging/gdm72xx/gdm_sdio.h create mode 100644 drivers/staging/gdm72xx/gdm_usb.c create mode 100644 drivers/staging/gdm72xx/gdm_usb.h create mode 100644 drivers/staging/gdm72xx/gdm_wimax.c create mode 100644 drivers/staging/gdm72xx/gdm_wimax.h create mode 100644 drivers/staging/gdm72xx/hci.h create mode 100644 drivers/staging/gdm72xx/netlink_k.c create mode 100644 drivers/staging/gdm72xx/netlink_k.h create mode 100644 drivers/staging/gdm72xx/sdio_boot.c create mode 100644 drivers/staging/gdm72xx/sdio_boot.h create mode 100644 drivers/staging/gdm72xx/usb_boot.c create mode 100644 drivers/staging/gdm72xx/usb_boot.h create mode 100644 drivers/staging/gdm72xx/usb_ids.h create mode 100644 drivers/staging/gdm72xx/wm_ioctl.h
drivers/staging/Kconfig +2 -0
@@ -130,4 +130,6 @@ source "drivers/staging/ozwpan/Kconfig" source "drivers/staging/ipack/Kconfig" +source "drivers/staging/gdm72xx/Kconfig" + endif # STAGING
drivers/staging/Makefile +1 -0
@@ -57,3 +57,4 @@ obj-$(CONFIG_ANDROID) += android/ obj-$(CONFIG_PHONE) += telephony/ obj-$(CONFIG_RAMSTER) += ramster/ obj-$(CONFIG_USB_WPAN_HCD) += ozwpan/ +obj-$(CONFIG_WIMAX_GDM72XX) += gdm72xx/
drivers/staging/gdm72xx/ChangeLog new file +88 -0
88 lines not on this page · raw message
drivers/staging/gdm72xx/Kconfig new file +45 -0
45 lines not on this page · raw message
drivers/staging/gdm72xx/LICENSE new file +26 -0
@@ -0,0 +1,26 @@ +Copyright (c) 2012, GCT Semiconductor, Inc. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + * Neither the name of GCT Semiconductor, Inc. nor + the names of its contributors may be used to endorse or promote + products derived from this software without specific prior written + permission. + + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE.
drivers/staging/gdm72xx/Makefile new file +6 -0
@@ -0,0 +1,6 @@ +obj-$(CONFIG_WIMAX_GDM72XX) := gdmwm.o + +gdmwm-y += gdm_wimax.o netlink_k.o +gdmwm-$(CONFIG_WIMAX_GDM72XX_QOS) += gdm_qos.o +gdmwm-$(CONFIG_WIMAX_GDM72XX_SDIO) += gdm_sdio.o sdio_boot.o +gdmwm-$(CONFIG_WIMAX_GDM72XX_USB) += gdm_usb.o usb_boot.o
drivers/staging/gdm72xx/TODO new file +5 -0
@@ -0,0 +1,5 @@ +TODO: +- Replace kernel_thread with kthread in gdm_usb.c +- Replace hard-coded firmware paths with request_firmware in + sdio_boot.c and usb_boot.c +- Clean up coding style to meet kernel standard.
drivers/staging/gdm72xx/gdm_qos.c new file +453 -0
453 lines not on this page · raw message
drivers/staging/gdm72xx/gdm_qos.h new file +86 -0
86 lines not on this page · raw message
drivers/staging/gdm72xx/gdm_sdio.c new file +747 -0
747 lines not on this page · raw message
drivers/staging/gdm72xx/gdm_sdio.h new file +65 -0
65 lines not on this page · raw message
drivers/staging/gdm72xx/gdm_usb.c new file +797 -0
797 lines not on this page · raw message
drivers/staging/gdm72xx/gdm_usb.h new file +78 -0
78 lines not on this page · raw message
drivers/staging/gdm72xx/gdm_wimax.c new file +1018 -0
594 lines not on this page · raw message
drivers/staging/gdm72xx/gdm_wimax.h new file +85 -0
85 lines not on this page · raw message
drivers/staging/gdm72xx/hci.h new file +211 -0
211 lines not on this page · raw message
drivers/staging/gdm72xx/netlink_k.c new file +143 -0
143 lines not on this page · raw message
drivers/staging/gdm72xx/netlink_k.h new file +17 -0
Lines of this file are not shown. View the raw message.
drivers/staging/gdm72xx/sdio_boot.c new file +152 -0
152 lines not on this page · raw message
drivers/staging/gdm72xx/sdio_boot.h new file +14 -0
Lines of this file are not shown. View the raw message.
drivers/staging/gdm72xx/usb_boot.c new file +397 -0
397 lines not on this page · raw message
drivers/staging/gdm72xx/usb_boot.h new file +15 -0
Lines of this file are not shown. View the raw message.
drivers/staging/gdm72xx/usb_ids.h new file +75 -0
75 lines not on this page · raw message
drivers/staging/gdm72xx/wm_ioctl.h new file +90 -0
90 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
1.7.7.3
Part of the diff is not shown here. View the raw message.
Greg Kroah-Hartman
maintainerQuoted 6 lines · Sage Ahn
This patch provides the kernel driver for the GDM72xx WiMAX chips developed by GCT Semiconductor, Inc., which enables mobile WiMAX connection on the Linux host.
Signed-off-by Sage Ahn <[email protected]>Cc Ben Chan <[email protected]>
Nice.
A few minor comments:
Quoted 1 line
drivers/staging/gdm72xx/ChangeLog | 88 +++
This file is not needed.
Quoted 1 line
drivers/staging/gdm72xx/LICENSE | 26 +
This file should not be needed either.
And that is where this gets wierd, your LICENSE file looks like a BSD-like license:
Quoted 19 lines
drivers/staging/gdm72xx/LICENSE new file +16
-0@@ -0,0 +1,26 @@ +Copyright (c) 2012, GCT Semiconductor, Inc. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + * Neither the name of GCT Semiconductor, Inc. nor + the names of its contributors may be used to endorse or promote + products derived from this software without specific prior written + permission. + + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
drivers/staging/gdm72xx/LICENSE line 26
Quoted 10 lines
drivers/staging/gdm72xx/LICENSE new file +10
-0+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE.
And the code says:
drivers/staging/gdm72xx/gdm_qos.c line 5
Quoted 8 lines
drivers/staging/gdm72xx/gdm_qos.c new file +5
-0@@ -0,0 +1,453 @@ +/* +* Copyright (c) 2012 GCT Semiconductor, Inc. All rights reserved. +* Use of this source code is governed by a BSD-style license that can be +* found in the LICENSE file. +*/
But then you say later on in the file:
drivers/staging/gdm72xx/gdm_qos.c line 6
Quoted 1 line
drivers/staging/gdm72xx/gdm_qos.c new file +1
-0+MODULE_LICENSE ("GPL" );
Which seems to be a contradiction here, don't you agree?
Care to discuss this with your company's lawyers and let us know what they say?
thanks,
greg k-h