Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 13 additions & 8 deletions arch/arm/configs/htcleo_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ CONFIG_BROKEN_ON_SMP=y
CONFIG_LOCK_KERNEL=y
CONFIG_INIT_ENV_ARG_LIMIT=32
CONFIG_CROSS_COMPILE=""
CONFIG_LOCALVERSION="-marc1706s_jb_0.1.3"
CONFIG_LOCALVERSION="-walter79"
# CONFIG_LOCALVERSION_AUTO is not set
CONFIG_HAVE_KERNEL_GZIP=y
CONFIG_HAVE_KERNEL_LZMA=y
Expand All @@ -52,7 +52,8 @@ CONFIG_SWAP=y
# CONFIG_POSIX_MQUEUE is not set
# CONFIG_BSD_PROCESS_ACCT is not set
# CONFIG_TASKSTATS is not set
# CONFIG_AUDIT is not set
CONFIG_AUDIT=y
CONFIG_AUDITSYSCALL=y

#
# RCU Subsystem
Expand Down Expand Up @@ -1205,6 +1206,7 @@ CONFIG_BCM4329_NVRAM_PATH="/proc/calibration"
# CONFIG_BCM4330 is not set
# CONFIG_BCMDHD is not set


#
# Enable WiMAX (Networking options) to see the WiMAX drivers
#
Expand Down Expand Up @@ -1605,8 +1607,8 @@ CONFIG_MSM_KGSL_MMU=y
CONFIG_MSM_KGSL_PAGE_TABLE_SIZE=0xFFF0000
CONFIG_MSM_KGSL_MMU_PAGE_FAULT=y
# CONFIG_MSM_KGSL_DISABLE_SHADOW_WRITES is not set
CONFIG_ION=y
CONFIG_ION_MSM=y
# CONFIG_ION is not set
# CONFIG_ION_MSM is not set
# CONFIG_VGASTATE is not set
CONFIG_VIDEO_OUTPUT_CONTROL=y
CONFIG_FB=y
Expand Down Expand Up @@ -1971,7 +1973,7 @@ CONFIG_EXT3_FS_SECURITY=y
CONFIG_EXT4_FS=y
CONFIG_EXT4_FS_XATTR=y
# CONFIG_EXT4_FS_POSIX_ACL is not set
# CONFIG_EXT4_FS_SECURITY is not set
CONFIG_EXT4_FS_SECURITY=y
# CONFIG_EXT4_DEBUG is not set
CONFIG_JBD=y
# CONFIG_JBD_DEBUG is not set
Expand Down Expand Up @@ -2229,14 +2231,17 @@ CONFIG_ARM_UNWIND=y
# Security options
#
# CONFIG_KEYS is not set
# CONFIG_SECURITY is not set
CONFIG_SECURITY=y
# CONFIG_SECURITYFS is not set
# CONFIG_DEFAULT_SECURITY_SELINUX is not set
CONFIG_DEFAULT_SECURITY_SELINUX=y
# CONFIG_DEFAULT_SECURITY_SMACK is not set
# CONFIG_DEFAULT_SECURITY_TOMOYO is not set
CONFIG_DEFAULT_SECURITY_DAC=y
# CONFIG_DEFAULT_SECURITY_DAC is not set
CONFIG_DEFAULT_SECURITY=""
CONFIG_CRYPTO=y
CONFIG_SECURITY_NETWORK=y
CONFIG_LSM_MMAP_MIN_ADDR=4096
CONFIG_SECURITY_SELINUX=y

#
# Crypto core or helper
Expand Down
7 changes: 4 additions & 3 deletions drivers/net/wireless/bcmdhd/bcmsdh.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* software in any way with any other Broadcom software provided under a license
* other than the GPL, without Broadcom's express prior written consent.
*
* $Id: bcmsdh.c 300445 2011-12-03 05:37:20Z $
* $Id: bcmsdh.c 344235 2012-07-11 23:47:18Z $
*/

/**
Expand Down Expand Up @@ -362,9 +362,10 @@ bcmsdh_cis_read(void *sdh, uint func, uint8 *cis, uint length)
}
bcopy(cis, tmp_buf, length);
for (tmp_ptr = tmp_buf, ptr = cis; ptr < (cis + length - 4); tmp_ptr++) {
ptr += sprintf((char*)ptr, "%.2x ", *tmp_ptr & 0xff);
ptr += snprintf((char*)ptr, (cis + length - ptr - 4),
"%.2x ", *tmp_ptr & 0xff);
if ((((tmp_ptr - tmp_buf) + 1) & 0xf) == 0)
ptr += sprintf((char *)ptr, "\n");
ptr += snprintf((char *)ptr, (cis + length - ptr -4), "\n");
}
MFREE(bcmsdh->osh, tmp_buf, length);
}
Expand Down
7 changes: 6 additions & 1 deletion drivers/net/wireless/bcmdhd/bcmsdh_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* software in any way with any other Broadcom software provided under a license
* other than the GPL, without Broadcom's express prior written consent.
*
* $Id: bcmsdh_linux.c 312788 2012-02-03 23:06:32Z $
* $Id: bcmsdh_linux.c 343302 2012-07-06 13:07:38Z $
*/

/**
Expand Down Expand Up @@ -684,6 +684,11 @@ extern int sd_uhsimode;
module_param(sd_uhsimode, int, 0);
#endif

#ifdef BCMSDIOH_TXGLOM
extern uint sd_txglom;
module_param(sd_txglom, uint, 0);
#endif

#ifdef BCMSDH_MODULE
EXPORT_SYMBOL(bcmsdh_attach);
EXPORT_SYMBOL(bcmsdh_detach);
Expand Down
54 changes: 31 additions & 23 deletions drivers/net/wireless/bcmdhd/bcmsdh_sdmmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* software in any way with any other Broadcom software provided under a license
* other than the GPL, without Broadcom's express prior written consent.
*
* $Id: bcmsdh_sdmmc.c 314904 2012-02-14 21:36:04Z $
* $Id: bcmsdh_sdmmc.c 344243 2012-07-12 00:06:23Z $
*/
#include <typedefs.h>

Expand Down Expand Up @@ -799,41 +799,49 @@ sdioh_request_byte(sdioh_info_t *sd, uint rw, uint func, uint regaddr, uint8 *by
#if defined(MMC_SDIO_ABORT)
/* to allow abort command through F1 */
else if (regaddr == SDIOD_CCCR_IOABORT) {
sdio_claim_host(gInstance->func[func]);
/*
* this sdio_f0_writeb() can be replaced with another api
* depending upon MMC driver change.
* As of this time, this is temporaray one
*/
sdio_writeb(gInstance->func[func], *byte, regaddr, &err_ret);
sdio_release_host(gInstance->func[func]);
if (gInstance->func[func]) {
sdio_claim_host(gInstance->func[func]);
/*
* this sdio_f0_writeb() can be replaced with another api
* depending upon MMC driver change.
* As of this time, this is temporaray one
*/
sdio_writeb(gInstance->func[func],
*byte, regaddr, &err_ret);
sdio_release_host(gInstance->func[func]);
}
}
#endif /* MMC_SDIO_ABORT */
else if (regaddr < 0xF0) {
sd_err(("bcmsdh_sdmmc: F0 Wr:0x%02x: write disallowed\n", regaddr));
} else {
/* Claim host controller, perform F0 write, and release */
sdio_claim_host(gInstance->func[func]);
sdio_f0_writeb(gInstance->func[func], *byte, regaddr, &err_ret);
sdio_release_host(gInstance->func[func]);
if (gInstance->func[func]) {
sdio_claim_host(gInstance->func[func]);
sdio_f0_writeb(gInstance->func[func],
*byte, regaddr, &err_ret);
sdio_release_host(gInstance->func[func]);
}
}
} else {
/* Claim host controller, perform Fn write, and release */
sdio_claim_host(gInstance->func[func]);
sdio_writeb(gInstance->func[func], *byte, regaddr, &err_ret);
sdio_release_host(gInstance->func[func]);
if (gInstance->func[func]) {
sdio_claim_host(gInstance->func[func]);
sdio_writeb(gInstance->func[func], *byte, regaddr, &err_ret);
sdio_release_host(gInstance->func[func]);
}
}
} else { /* CMD52 Read */
/* Claim host controller, perform Fn read, and release */
sdio_claim_host(gInstance->func[func]);

if (func == 0) {
*byte = sdio_f0_readb(gInstance->func[func], regaddr, &err_ret);
} else {
*byte = sdio_readb(gInstance->func[func], regaddr, &err_ret);
if (gInstance->func[func]) {
sdio_claim_host(gInstance->func[func]);
if (func == 0) {
*byte = sdio_f0_readb(gInstance->func[func], regaddr, &err_ret);
} else {
*byte = sdio_readb(gInstance->func[func], regaddr, &err_ret);
}
sdio_release_host(gInstance->func[func]);
}

sdio_release_host(gInstance->func[func]);
}

if (err_ret) {
Expand Down
4 changes: 1 addition & 3 deletions drivers/net/wireless/bcmdhd/bcmsdh_sdmmc_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* software in any way with any other Broadcom software provided under a license
* other than the GPL, without Broadcom's express prior written consent.
*
* $Id: bcmsdh_sdmmc_linux.c 312783 2012-02-03 22:53:56Z $
* $Id: bcmsdh_sdmmc_linux.c 331154 2012-05-04 00:41:40Z $
*/

#include <typedefs.h>
Expand Down Expand Up @@ -188,7 +188,6 @@ static int bcmsdh_sdmmc_suspend(struct device *pdev)

if (dhd_os_check_wakelock(bcmsdh_get_drvdata()))
return -EBUSY;

sdio_flags = sdio_get_host_pm_caps(func);

if (!(sdio_flags & MMC_PM_KEEP_POWER)) {
Expand All @@ -202,7 +201,6 @@ static int bcmsdh_sdmmc_suspend(struct device *pdev)
sd_err(("%s: error while trying to keep power\n", __FUNCTION__));
return ret;
}

#if defined(OOB_INTR_ONLY)
bcmsdh_oob_intr_set(0);
#endif /* defined(OOB_INTR_ONLY) */
Expand Down
7 changes: 4 additions & 3 deletions drivers/net/wireless/bcmdhd/dhd.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* software in any way with any other Broadcom software provided under a license
* other than the GPL, without Broadcom's express prior written consent.
*
* $Id: dhd.h 333052 2012-05-12 02:09:28Z $
* $Id: dhd.h 344123 2012-07-11 09:33:49Z $
*/

/****************
Expand Down Expand Up @@ -251,7 +251,7 @@ typedef struct dhd_cmn {
SMP_RD_BARRIER_DEPENDS(); \
while (dhd_mmc_suspend && retry++ != b) { \
SMP_RD_BARRIER_DEPENDS(); \
wait_event_interruptible_timeout(a, !dhd_mmc_suspend, HZ/100); \
wait_event_interruptible_timeout(a, !dhd_mmc_suspend, 1); \
} \
} while (0)
#define DHD_PM_RESUME_WAIT(a) _DHD_PM_RESUME_WAIT(a, 200)
Expand All @@ -263,7 +263,7 @@ typedef struct dhd_cmn {
#define SPINWAIT_SLEEP(a, exp, us) do { \
uint countdown = (us) + 9999; \
while ((exp) && (countdown >= 10000)) { \
wait_event_interruptible_timeout(a, FALSE, HZ/100); \
wait_event_interruptible_timeout(a, FALSE, 1); \
countdown -= 10000; \
} \
} while (0)
Expand Down Expand Up @@ -431,6 +431,7 @@ extern void dhd_os_sdunlock_sndup_rxq(dhd_pub_t * pub);
extern void dhd_os_sdlock_eventq(dhd_pub_t * pub);
extern void dhd_os_sdunlock_eventq(dhd_pub_t * pub);
extern bool dhd_os_check_hang(dhd_pub_t *dhdp, int ifidx, int ret);
extern int dhd_os_send_hang_message(dhd_pub_t *dhdp);
extern int net_os_send_hang_message(struct net_device *dev);
extern void dhd_set_version_info(dhd_pub_t *pub, char *fw);

Expand Down
13 changes: 9 additions & 4 deletions drivers/net/wireless/bcmdhd/dhd_cfg80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ s32 dhd_cfg80211_down(struct wl_priv *wl)
return 0;
}

/*
* dhd_cfg80211_set_p2p_info : gets called when GO or GC created
*/
s32 dhd_cfg80211_set_p2p_info(struct wl_priv *wl, int val)
{
dhd_pub_t *dhd = (dhd_pub_t *)(wl->pub);
Expand All @@ -83,7 +86,7 @@ s32 dhd_cfg80211_set_p2p_info(struct wl_priv *wl, int val)
dhd_arp_offload_set(dhd, 0);
dhd_arp_offload_enable(dhd, false);
#endif /* ARP_OFFLOAD_SUPPORT */

/* diable all filtering in p2p mode */
dhd_os_set_packet_filter(dhd, 0);

/* Setup timeout if Beacons are lost and roam is off to report link down */
Expand All @@ -94,6 +97,9 @@ s32 dhd_cfg80211_set_p2p_info(struct wl_priv *wl, int val)
return 0;
}

/*
* dhd_cfg80211_clean_p2p_info : gets called when GO or GC terminated
*/
s32 dhd_cfg80211_clean_p2p_info(struct wl_priv *wl)
{
dhd_pub_t *dhd = (dhd_pub_t *)(wl->pub);
Expand All @@ -108,7 +114,6 @@ s32 dhd_cfg80211_clean_p2p_info(struct wl_priv *wl)
dhd_arp_offload_set(dhd, dhd_arp_mode);
dhd_arp_offload_enable(dhd, true);
#endif /* ARP_OFFLOAD_SUPPORT */

dhd_os_set_packet_filter(dhd, 1);

/* Setup timeout if Beacons are lost and roam is off to report link down */
Expand Down Expand Up @@ -433,7 +438,7 @@ static void wl_cfg80211_bt_handler(struct work_struct *work)
__FUNCTION__));
btcx_inf->bt_state = BT_DHCP_OPPR_WIN;
mod_timer(&btcx_inf->timer,
jiffies + BT_DHCP_OPPR_WIN_TIME*HZ/1000);
jiffies + msecs_to_jiffies(BT_DHCP_OPPR_WIN_TIME));
btcx_inf->timer_on = 1;
break;

Expand All @@ -453,7 +458,7 @@ static void wl_cfg80211_bt_handler(struct work_struct *work)
wl_cfg80211_bt_setflag(btcx_inf->dev, TRUE);
btcx_inf->bt_state = BT_DHCP_FLAG_FORCE_TIMEOUT;
mod_timer(&btcx_inf->timer,
jiffies + BT_DHCP_FLAG_FORCE_TIME*HZ/1000);
jiffies + msecs_to_jiffies(BT_DHCP_FLAG_FORCE_TIME));
btcx_inf->timer_on = 1;
break;

Expand Down
6 changes: 3 additions & 3 deletions drivers/net/wireless/bcmdhd/dhd_custom_gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* software in any way with any other Broadcom software provided under a license
* other than the GPL, without Broadcom's express prior written consent.
*
* $Id: dhd_custom_gpio.c,v 1.2.42.1 2010-10-19 00:41:09 Exp $
* $Id: dhd_custom_gpio.c 339054 2012-06-15 04:56:55Z $
*/

#include <typedefs.h>
Expand Down Expand Up @@ -97,13 +97,13 @@ int dhd_customer_oob_irq_map(unsigned long *irq_flags_ptr)
#endif /* CUSTOMER_HW2 */

if (dhd_oob_gpio_num < 0) {
WL_ERROR(("%s: ERROR customer specific Host GPIO is NOT defined \n",
WL_ERROR(("%s: ERROR customer specific Host GPIO is NOT defined\n",
__FUNCTION__));
return (dhd_oob_gpio_num);
}

WL_ERROR(("%s: customer specific Host GPIO number is (%d)\n",
__FUNCTION__, dhd_oob_gpio_num));
__FUNCTION__, dhd_oob_gpio_num));

#if defined CUSTOMER_HW
host_oob_irq = MSM_GPIO_TO_INT(dhd_oob_gpio_num);
Expand Down
Loading