Updated from Linux LTS 3.10.21 to 3.10.22
This commit is contained in:
@@ -61,6 +61,9 @@
|
||||
#include <media/lirc_dev.h>
|
||||
#include <media/lirc.h>
|
||||
|
||||
/* Max transfer size done by I2C transfer functions */
|
||||
#define MAX_XFER_SIZE 64
|
||||
|
||||
struct IR;
|
||||
|
||||
struct IR_rx {
|
||||
@@ -941,7 +944,14 @@ static ssize_t read(struct file *filep, char *outbuf, size_t n, loff_t *ppos)
|
||||
schedule();
|
||||
set_current_state(TASK_INTERRUPTIBLE);
|
||||
} else {
|
||||
unsigned char buf[rbuf->chunk_size];
|
||||
unsigned char buf[MAX_XFER_SIZE];
|
||||
|
||||
if (rbuf->chunk_size > sizeof(buf)) {
|
||||
zilog_error("chunk_size is too big (%d)!\n",
|
||||
rbuf->chunk_size);
|
||||
ret = -EINVAL;
|
||||
break;
|
||||
}
|
||||
m = lirc_buffer_read(rbuf, buf);
|
||||
if (m == rbuf->chunk_size) {
|
||||
ret = copy_to_user((void *)outbuf+written, buf,
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
menuconfig TIDSPBRIDGE
|
||||
tristate "DSP Bridge driver"
|
||||
depends on ARCH_OMAP3 && !ARCH_MULTIPLATFORM
|
||||
depends on ARCH_OMAP3 && !ARCH_MULTIPLATFORM && BROKEN
|
||||
select OMAP_MBOX_FWK
|
||||
help
|
||||
DSP/BIOS Bridge is designed for platforms that contain a GPP and
|
||||
|
||||
@@ -941,6 +941,7 @@ int BBbVT3184Init(struct vnt_private *pDevice)
|
||||
u8 * pbyAgc;
|
||||
u16 wLengthAgc;
|
||||
u8 abyArray[256];
|
||||
u8 data;
|
||||
|
||||
ntStatus = CONTROLnsRequestIn(pDevice,
|
||||
MESSAGE_TYPE_READ,
|
||||
@@ -1106,6 +1107,16 @@ else {
|
||||
ControlvWriteByte(pDevice,MESSAGE_REQUEST_BBREG,0x0D,0x01);
|
||||
|
||||
RFbRFTableDownload(pDevice);
|
||||
|
||||
/* Fix for TX USB resets from vendors driver */
|
||||
CONTROLnsRequestIn(pDevice, MESSAGE_TYPE_READ, USB_REG4,
|
||||
MESSAGE_REQUEST_MEM, sizeof(data), &data);
|
||||
|
||||
data |= 0x2;
|
||||
|
||||
CONTROLnsRequestOut(pDevice, MESSAGE_TYPE_WRITE, USB_REG4,
|
||||
MESSAGE_REQUEST_MEM, sizeof(data), &data);
|
||||
|
||||
return true;//ntStatus;
|
||||
}
|
||||
|
||||
|
||||
@@ -66,6 +66,8 @@
|
||||
|
||||
#define VIAUSB20_PACKET_HEADER 0x04
|
||||
|
||||
#define USB_REG4 0x604
|
||||
|
||||
typedef struct _CMD_MESSAGE
|
||||
{
|
||||
u8 byData[256];
|
||||
|
||||
@@ -430,7 +430,12 @@ static struct page *get_next_page(struct page *page)
|
||||
return next;
|
||||
}
|
||||
|
||||
/* Encode <page, obj_idx> as a single handle value */
|
||||
/*
|
||||
* Encode <page, obj_idx> as a single handle value.
|
||||
* On hardware platforms with physical memory starting at 0x0 the pfn
|
||||
* could be 0 so we ensure that the handle will never be 0 by adjusting the
|
||||
* encoded obj_idx value before encoding.
|
||||
*/
|
||||
static void *obj_location_to_handle(struct page *page, unsigned long obj_idx)
|
||||
{
|
||||
unsigned long handle;
|
||||
@@ -441,17 +446,21 @@ static void *obj_location_to_handle(struct page *page, unsigned long obj_idx)
|
||||
}
|
||||
|
||||
handle = page_to_pfn(page) << OBJ_INDEX_BITS;
|
||||
handle |= (obj_idx & OBJ_INDEX_MASK);
|
||||
handle |= ((obj_idx + 1) & OBJ_INDEX_MASK);
|
||||
|
||||
return (void *)handle;
|
||||
}
|
||||
|
||||
/* Decode <page, obj_idx> pair from the given object handle */
|
||||
/*
|
||||
* Decode <page, obj_idx> pair from the given object handle. We adjust the
|
||||
* decoded obj_idx back to its original value since it was adjusted in
|
||||
* obj_location_to_handle().
|
||||
*/
|
||||
static void obj_handle_to_location(unsigned long handle, struct page **page,
|
||||
unsigned long *obj_idx)
|
||||
{
|
||||
*page = pfn_to_page(handle >> OBJ_INDEX_BITS);
|
||||
*obj_idx = handle & OBJ_INDEX_MASK;
|
||||
*obj_idx = (handle & OBJ_INDEX_MASK) - 1;
|
||||
}
|
||||
|
||||
static unsigned long obj_idx_to_offset(struct page *page,
|
||||
|
||||
Reference in New Issue
Block a user