Looks like phys_addr_t's are fully plumbed in the kernel.
Signed-off-by: Tomas Winkler
---
V2: remove one more comment regarding ion_phys_addr_t
drivers/staging/android/ion/ion.c | 2 +-
drivers/staging/android/ion/ion.h | 12 +++-
drivers/staging/an
Alexander Usyskin (4):
mei: hbm: revamp client connect and disconnection status
mei: fix potential read outside of array bounds
mei: use helper function to find me client by id
mei: make return values consistent across the driver
Tomas Winkler (7):
mei: add mei_hbuf_acquire wrapper
When stopping the MEI, we should remove and potentially unregister
all bus devices queued on the mei_dev linked list.
Signed-off-by: Tomas Winkler
---
drivers/misc/mei/bus.c | 16
drivers/misc/mei/init.c| 2 ++
drivers/misc/mei/mei_dev.h | 1 +
drivers/misc/mei/nfc.c
We can use simply list_for_each_entry if there is no
entry removal
Signed-off-by: Tomas Winkler
---
drivers/misc/mei/amthif.c| 12 +---
drivers/misc/mei/bus.c | 4 ++--
drivers/misc/mei/client.c| 23 +++
drivers/misc/mei/hbm.c | 9
. Change response status enum to have MEI_CL_ prefix
4. Add function to translate response status to a string
for more readable logging
Signed-off-by: Alexander Usyskin
Signed-off-by: Tomas Winkler
---
drivers/misc/mei/client.c | 13 -
drivers/misc/mei/hbm.c| 67
close system call so instead of using
wait_event_interruptible_timeout we can use wait_event_timeout
with reasonable 10 msecs timeout.
Reported-by: Prarit Bhargava
Signed-off-by: Tomas Winkler
---
drivers/misc/mei/interrupt.c | 2 +-
drivers/misc/mei/wd.c| 32
From: Alexander Usyskin
We already have a helper to find me client by id, let's
use it in all relevant places.
Signed-off-by: Alexander Usyskin
Signed-off-by: Tomas Winkler
---
drivers/misc/mei/client.c | 62 +++
drivers/misc/mei/hbm.c
Add reduce credits to wd_send to remove code
repetition and simplify error handling
Signed-off-by: Tomas Winkler
Signed-off-by: Alexander Usyskin
---
drivers/misc/mei/interrupt.c | 7 +++---
drivers/misc/mei/wd.c| 52 +++-
2 files changed, 30
Connect wd and amthif through regular mei_cl_connect API
as there is no reason to connect in asynchronous mode.
Also use mei_cl_is_connected in order to protect flows
instead of depending on wd_pending and amthif_timer
Now we can remove all the special handling in hbm layer
Signed-off-by: Tomas
From: Alexander Usyskin
1. Propagate ENOTTY to user space if the client is not present
in the system
2. Use ETIME consistently on timeouts
3. Return EIO on write failures
4. Return ENODEV on recoverable device failures such as resets
Signed-off-by: Alexander Usyskin
Signed-off-by: Tomas
From: Alexander Usyskin
Drop not-very-useful check and with this
fix read on index that can be after array end.
Cleanup search function as byproduct.
Signed-off-by: Alexander Usyskin
Signed-off-by: Tomas Winkler
---
drivers/misc/mei/client.c | 23 ++-
1 file changed, 10
Since txe use doorbell and not circular buffer
we have to cheat in write slot counting, txe always consume all the
slots upon write. In order for it to work we need to track
slots using mei_hbuf_empty_slots() instead of tracking it in mei layer
Signed-off-by: Tomas Winkler
---
drivers/misc/mei
Alexander Usyskin (4):
mei: hbm: revamp client connect and disconnection status
mei: fix potential read outside of array bounds
mei: use helper function to find me client by id
mei: make return values consistent across the driver
Tomas Winkler (7):
mei: add mei_hbuf_acquire wrapper
A client has to acquire host buffer
before writing, we add lock like wrapper
to replace the code snippet
if (dev->hbuf_is_ready)
dev->hbuf_is_ready = false;
Signed-off-by: Tomas Winkler
---
drivers/misc/mei/amthif.c| 7 +-
drivers/misc/mei/client.c
not
used [-Wunused-function]
static int mei_me_pci_resume(struct device *device)
Signed-off-by: Alexander Usyskin
Signed-off-by: Tomas Winkler
---
drivers/misc/mei/pci-me.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/misc/mei/pci-me.c b/drivers/misc/mei/pci
PCI suspend resume callbacks should be defined
under CONFIG_PM_SLEEP
Signed-off-by: Tomas Winkler
Signed-off-by: Alexander Usyskin
---
drivers/misc/mei/pci-txe.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/misc/mei/pci-txe.c b/drivers/misc/mei/pci-txe.c
There is a new use case to support secondary head
on mei devices hence we replace misc devices with
char.
Alexander Usyskin (2):
mei: move from misc to char device
mei: add WPT second mei interface
Tomas Winkler (1):
mei: sysfs: add Documentation mei class attributes
Documentation/ABI
From: Alexander Usyskin
Add WPT second mei interface.
In order for correct device numbering we add mei device interface id
to to mei_cfg structure
Signed-off-by: Alexander Usyskin
Signed-off-by: Tomas Winkler
---
drivers/misc/mei/hw-me-regs.h | 1 +
drivers/misc/mei/hw-me.c | 5
Add sysfs attributes Documentation entries
for /sys/class/mei
Signed-off-by: Tomas Winkler
Signed-off-by: Alexander Usyskin
---
Documentation/ABI/testing/sysfs-class-mei | 23 +++
1 file changed, 23 insertions(+)
create mode 100644 Documentation/ABI/testing/sysfs-class-mei
From: Alexander Usyskin
We need to support more then one mei interface
hence the simple misc devices is not longer an option.
We use char device now with to not break application
space we preserve /dev/mei for the first interface.
Signed-off-by: Alexander Usyskin
Signed-off-by: Tomas Winkler
Tomas Winkler (3):
mei: me: fix hw ready reset flow
mei: me: drop harmful wait optimization
mei: me: read H_CSR after asserting reset
drivers/misc/mei/hw-me.c | 25 +++--
1 file changed, 19 insertions(+), 6 deletions(-)
--
1.9.0
--
To unsubscribe from this list
We cleared H_RST for H_CSR on spurious interrupt generated when ME_RDY
while cleared and not while ME_RDY is set. The spurious interrupt
is not delivered on all platforms in this case the
driver may fail to initialize.
Cc: sta...@vger.kernel.org
Signed-off-by: Tomas Winkler
Signed-off-by
According the spec the host should read H_CSR again
after asserting reset H_RST to ensure that reset was
read by the firmware
Cc: sta...@vger.kernel.org
Signed-off-by: Tomas Winkler
Signed-off-by: Alexander Usyskin
---
drivers/misc/mei/hw-me.c | 12
1 file changed, 12 insertions
It my take time till ME_RDY will be cleared after the reset,
so we cannot check the bit before we got the interrupt
Cc: sta...@vger.kernel.org
Signed-off-by: Tomas Winkler
Signed-off-by: Alexander Usyskin
---
drivers/misc/mei/hw-me.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions
From: Alexander Usyskin
Add mei_cfg structure that holds per device configuration
data and hooks, as the first step we add firmware
status register offsets
Signed-off-by: Alexander Usyskin
Signed-off-by: Tomas Winkler
---
drivers/misc/mei/hw-me.c | 34 ++--
drivers/misc/mei
Move quirk FW type detector to cfg structure
Signed-off-by: Alexander Usyskin
Signed-off-by: Tomas Winkler
---
drivers/misc/mei/hw-me.c | 37
drivers/misc/mei/hw-me.h | 2 ++
drivers/misc/mei/mei_dev.h | 2 ++
drivers/misc/mei/pci-me.c | 47
FW type by examining Host FW status registers in order to
unbind the driver.
In this patch we are adding check for ME on Cougar Point, Lynx Point
Devices
Cc: stable # 3.10+
Signed-off-by: Tomas Winkler
---
drivers/misc/mei/hw-me-regs.h | 5 +
drivers/misc/mei/pci-me.c | 30
Set of fixes that covers few corner cases
Alexander Usyskin (5):
mei: reset client connection state on timeout
mei: start disconnect request timer consistently
mei: don't schedule suspend in pm idle
mei: nfc: clean nfc internal struct on host exit
mei: fix return value on disconnect time
From: Alexander Usyskin
Fetch FW status registers, as they are important in
in understanding of FW reset reasons
Signed-off-by: Alexander Usyskin
Signed-off-by: Tomas Winkler
---
drivers/misc/mei/hw-me.c | 55 ++
drivers/misc/mei/hw-txe-regs.h
From: Alexander Usyskin
Follow-up for bits missed in
commit 7ca96aa278f8b9983184e318b06a0ed9ad0297b8
mei: make return values consistent across the driver
Signed-off-by: Alexander Usyskin
Signed-off-by: Tomas Winkler
---
drivers/misc/mei/bus.c| 2 +-
drivers/misc/mei/client.c | 5 ++---
2
already written to the HW and we can safely complete it.
Same pays for wait in poll handler, we do not have to check the state
wake is done after completion list processing.
Cc: sta...@vger.kernel.org
Signed-off-by: Alexander Usyskin
Signed-off-by: Tomas Winkler
---
drivers/misc/mei/interrupt.c
we never freed the mei_clients array on driver shutdown
only on reset
add mei_hbm_reset function that wraps the hbm cleanup
Signed-off-by: Tomas Winkler
---
This should go to stable but it doesn't apply cleanly
using 'git am' so separate patches will be published
drivers/misc/
From: Alexander Usyskin
Add WPT second mei interface.
Signed-off-by: Alexander Usyskin
Signed-off-by: Tomas Winkler
---
V2: use default pch configuration
drivers/misc/mei/hw-me-regs.h | 1 +
drivers/misc/mei/pci-me.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/drivers/misc/mei
From: Alexander Usyskin
We need to support more then one mei interface
hence the simple misc devices is not longer an option
In order not break the user space a device with pci function 0
need to be linked to /dev/mei
Signed-off-by: Alexander Usyskin
Signed-off-by: Tomas Winkler
---
V2: use
Add sysfs attributes Documentation entries
for /sys/class/mei
Signed-off-by: Tomas Winkler
Signed-off-by: Alexander Usyskin
---
V2: remove default device
Documentation/ABI/testing/sysfs-class-mei | 16
1 file changed, 16 insertions(+)
create mode 100644 Documentation/ABI
There is a new use case to support secondary head
on mei devices hence we replace misc devices with
char.
V2: use dynamic minor number allocation
Alexander Usyskin (2):
mei: move from misc to char device
mei: add WPT second mei interface
Tomas Winkler (1):
mei: sysfs: add Documentation
A memory leak was detected in the mei driver,
here are two fixes that should address that.
I suggest this goes to stable as well
Alexander Usyskin (2):
mei: clear write cb from waiting list on reset
mei: don't unset read cb ptr on reset
drivers/misc/mei/client.c | 11 +--
1 file ch
From: Alexander Usyskin
Clear write callbacks sitting in write_waiting list on reset.
Otherwise these callbacks are left dangling and cause memory leak.
Signed-off-by: Alexander Usyskin
Signed-off-by: Tomas Winkler
---
drivers/misc/mei/client.c | 10 +-
1 file changed, 9 insertions
kmemleak_alloc+0x3c/0xa0
[] __kmalloc+0xe7/0x1d0
[] mei_io_cb_alloc_resp_buf+0x2e/0x60
[] mei_cl_read_start+0x12c/0x360
[] mei_read+0x103/0x4e0
[] vfs_read+0x89/0x160
[] SyS_read+0x4f/0x80
[] syscall_call+0x7/0xb
[] 0x
Signed-off-by: Alexander Usyskin
Signed-off-by: To
Propagate error codes from called functions, they are correct.
Signed-off-by: Tomas Winkler
---
drivers/misc/mei/wd.c | 12 ++--
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/misc/mei/wd.c b/drivers/misc/mei/wd.c
index b892143..9e35421 100644
--- a/drivers/misc
From: Alexander Usyskin
Move the unexpected state print to the beginning of mei_reset,
thus printing right state.
Signed-off-by: Alexander Usyskin
Signed-off-by: Tomas Winkler
---
drivers/misc/mei/init.c | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/misc
The flow may reach the err label without freeing cl and cl_info
cl and cl_info weren't assigned to ndev->cl and cl_info
so they weren't freed in mei_nfc_free called on error path
Cc: # 3.10+
Cc: Samuel Ortiz
Signed-off-by: Tomas Winkler
---
drivers/misc/mei/nfc.c | 10 +
no need to change error code value returned by
mei_me_cl_by_id, just propagate it on
Signed-off-by: Tomas Winkler
---
drivers/misc/mei/bus.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/misc/mei/bus.c b/drivers/misc/mei/bus.c
index cd2033c..4bc7d62 100644
--- a
From: Alexander Usyskin
Driver better use dev_dbg, not pr_debug.
Signed-off-by: Alexander Usyskin
Signed-off-by: Tomas Winkler
---
drivers/misc/mei/pci-me.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/misc/mei/pci-me.c b/drivers/misc/mei/pci-me.c
index 1bf300e
Signed-off-by: Tomas Winkler
---
drivers/misc/mei/client.c | 6 --
1 file changed, 6 deletions(-)
diff --git a/drivers/misc/mei/client.c b/drivers/misc/mei/client.c
index 0ccc22c..87c96e4 100644
--- a/drivers/misc/mei/client.c
+++ b/drivers/misc/mei/client.c
@@ -299,12 +299,6 @@ int
make static analyzer happy and
validate dev argument before dereferencing
Signed-off-by: Tomas Winkler
---
drivers/misc/mei/debugfs.c | 12 ++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/drivers/misc/mei/debugfs.c b/drivers/misc/mei/debugfs.c
index e3870f2..9162491
Tomas Winkler (6):
mei: debugfs: validate dev is not null
mei: hbm: validate client index is not exceeding allocated array size
mei: nfc: fix memory leak in error path
mei: wd: host_init propagate error codes from called functions
mei: bus: propagate error code returned by mei_me_cl_by_id
Signed-off-by: Tomas Winkler
---
drivers/misc/mei/hbm.c | 6 --
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/misc/mei/hbm.c b/drivers/misc/mei/hbm.c
index 9b3a0fb..0f5e8ca 100644
--- a/drivers/misc/mei/hbm.c
+++ b/drivers/misc/mei/hbm.c
@@ -228,8 +228,6 @@ static int
Kconfig is not transitive so INTEL_ME_TXE has to depend
on WATCHDOG_CORE as well
ERROR: "watchdog_unregister_device" [drivers/misc/mei/mei.ko]
undefined!
ERROR: "watchdog_register_device" [drivers/misc/mei/mei.ko]
undefined!
Reported-by: Fengguang Wu
Signed-off-by: Tomas W
And Lynx Point H Refresh and Wildcat Point LP
device ids.
Signed-off-by: Tomas Winkler
---
V2: remove duplicated LPT entry
drivers/misc/mei/hw-me-regs.h | 5 -
drivers/misc/mei/pci-me.c | 4 +++-
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/drivers/misc/mei/hw-me
When handling dynamic clients there might be a race
scenario in which two me clients with the same me
address would be linked in the me clients list,
therefore we need to search by both uuid and me address.
Signed-off-by: Tomas Winkler
---
drivers/misc/mei/amthif.c | 1 +
drivers/misc/mei
To support dynamic addition/remove of clients
it is more convenient to use list instead of
static array
Signed-off-by: Tomas Winkler
---
drivers/misc/mei/client.c | 34 ++---
drivers/misc/mei/debugfs.c | 19
drivers/misc/mei/hbm.c | 116
In order to support dynamic addition/removal of me clients we cannot
It is incontinent to use static array and we can use list.
As the first step we change the lookup function to return
me client address instead of the index.
Signed-off-by: Tomas Winkler
---
drivers/misc/mei/amthif.c | 29
Reduce few code lines by using wrappers for sending
simple hbm client messages
Signed-off-by: Tomas Winkler
---
drivers/misc/mei/hbm.c | 51 +-
1 file changed, 25 insertions(+), 26 deletions(-)
diff --git a/drivers/misc/mei/hbm.c b/drivers/misc
: Tomas Winkler
---
V2: fix the commit message
drivers/misc/mei/amthif.c | 29 +++--
drivers/misc/mei/bus.c| 10 +-
drivers/misc/mei/client.c | 43 ---
drivers/misc/mei/client.h | 5 +++--
drivers/misc/mei/hbm.c| 23
From: Alexander Usyskin
In case of many me clients (15 and more) 1K buffer
is not enough for full information print.
Calculate buffer size according to real clients number.
Signed-off-by: Alexander Usyskin
Signed-off-by: Tomas Winkler
---
drivers/misc/mei/debugfs.c | 22
Handle ioctls in a switch statement so we can
add more commands easily
Signed-off-by: Tomas Winkler
---
drivers/misc/mei/main.c | 53 ++---
1 file changed, 28 insertions(+), 25 deletions(-)
diff --git a/drivers/misc/mei/main.c b/drivers/misc/mei
From: Alexander Usyskin
Add hbm state, pg enablement and state to devstate file in debugfs
(/mei/devstate)
Signed-off-by: Alexander Usyskin
Signed-off-by: Tomas Winkler
---
drivers/misc/mei/debugfs.c | 7 ++-
drivers/misc/mei/hbm.c | 16
drivers/misc/mei/hbm.h
There is no need to log memory allocation errors as
this is already done by the memory subsystem.
Signed-off-by: Tomas Winkler
---
drivers/misc/mei/amthif.c| 4 +---
drivers/misc/mei/interrupt.c | 1 -
drivers/misc/mei/main.c | 1 -
3 files changed, 1 insertion(+), 5 deletions(-)
diff
mei_hbm_hder helper function is only used in hbm.c
so there is no need to define it in a header file
Signed-off-by: Tomas Winkler
---
drivers/misc/mei/hbm.c | 16
drivers/misc/mei/hbm.h | 9 -
2 files changed, 16 insertions(+), 9 deletions(-)
diff --git a/drivers/misc
fix style warning:
void function return statements are not generally useful
Signed-off-by: Tomas Winkler
---
drivers/misc/mei/nfc.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/misc/mei/nfc.c b/drivers/misc/mei/nfc.c
index 2888e6f..8cc93e4 100644
--- a/drivers/misc/mei/nfc.c
+++ b
Add indication whether the client operates in single
buffer mode
Signed-off-by: Tomas Winkler
---
drivers/misc/mei/debugfs.c | 7 ---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/drivers/misc/mei/debugfs.c b/drivers/misc/mei/debugfs.c
index ca2a12d..be16c4b 100644
--- a
fix new style warning: Missing a blank line after declarations
Signed-off-by: Tomas Winkler
---
drivers/misc/mei/amthif.c | 1 +
drivers/misc/mei/client.c | 1 +
drivers/misc/mei/debugfs.c | 1 +
drivers/misc/mei/hbm.c | 5 +
drivers/misc/mei/hw-me.c | 12
drivers
Signed-off-by: Tomas Winkler
Signed-off-by: Alexander Usyskin
---
drivers/misc/mei/hw-me.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/misc/mei/hw-me.c b/drivers/misc/mei/hw-me.c
index 498bd42..241eae5 100644
--- a/drivers/misc/mei/hw-me.c
+++ b/drivers/misc
There is no need for dynamic allocation for connect_data.
We can use variable on the stack and make code less
error prone and simple
Signed-off-by: Tomas Winkler
---
drivers/misc/mei/main.c | 21 +
1 file changed, 5 insertions(+), 16 deletions(-)
diff --git a/drivers/misc
mei_hbm_hder helper function is only used in hbm.c
so there is no need to define it in a header file
Signed-off-by: Tomas Winkler
---
V2: fix kdoc
drivers/misc/mei/hbm.c | 16
drivers/misc/mei/hbm.h | 9 -
2 files changed, 16 insertions(+), 9 deletions(-)
diff --git a
Use consistently me_addr name in hbm protocol structures
to represent in firmware client address
Signed-off-by: Tomas Winkler
Signed-off-by: Alexander Usyskin
---
drivers/misc/mei/hbm.c | 6 +++---
drivers/misc/mei/hw.h | 5 ++---
2 files changed, 5 insertions(+), 6 deletions(-)
diff --git a
Handle ioctls in a switch statement so we can
add more commands easily
Signed-off-by: Tomas Winkler
---
drivers/misc/mei/main.c | 53 ++---
1 file changed, 28 insertions(+), 25 deletions(-)
diff --git a/drivers/misc/mei/main.c b/drivers/misc/mei
Usyskin
Signed-off-by: Tomas Winkler
---
drivers/misc/mei/hbm.c | 26 --
drivers/misc/mei/hbm.h | 6 --
drivers/misc/mei/init.c| 2 +-
drivers/misc/mei/mei_dev.h | 2 +-
4 files changed, 22 insertions(+), 14 deletions(-)
diff --git a/drivers/misc/mei
Add mei_hbm_cl_find_by_cmd handler to retrieve
the destination client
Signed-off-by: Tomas Winkler
---
drivers/misc/mei/hbm.c | 74 +-
1 file changed, 43 insertions(+), 31 deletions(-)
diff --git a/drivers/misc/mei/hbm.c b/drivers/misc/mei/hbm.c
Rename mei_cl_irq_close to mei_cl_irq_disconnect
and MEI_FOP_CLOSE to MEI_FOP_DISCONNECT
Remove unused MEI_FOP_OPEN
Signed-off-by: Tomas Winkler
---
drivers/misc/mei/client.c| 3 ++-
drivers/misc/mei/interrupt.c | 8
drivers/misc/mei/mei_dev.h | 6 ++
3 files changed, 8
extract supported hbm features and commands from the hbm version
Signed-off-by: Tomas Winkler
---
drivers/misc/mei/hbm.c | 25 -
drivers/misc/mei/hw-me.c | 6 +-
drivers/misc/mei/mei_dev.h | 4
3 files changed, 29 insertions(+), 6 deletions(-)
diff
There is no need for dynamic allocation for connect_data.
We can use variable on the stack and make code less
error prone and simple
Signed-off-by: Tomas Winkler
---
drivers/misc/mei/main.c | 21 +
1 file changed, 5 insertions(+), 16 deletions(-)
diff --git a/drivers/misc
Both responses have same flow only the client status
update is different. We introduce handler mei_hbm_cl_res()
that handles both responses
Also we use per client wait queue (cl->wait) rather then
global dev->wait_recvd_msg
Signed-off-by: Tomas Winkler
---
drivers/misc/mei/client.c
To support dynamic addition/remove we add wrappers
for removal of me clients
Signed-off-by: Tomas Winkler
---
drivers/misc/mei/client.c | 22 +-
drivers/misc/mei/client.h | 2 ++
drivers/misc/mei/hbm.c| 21 +++--
3 files changed, 38 insertions(+), 7
HBM uses global list of status values
from which the values of particular commands
are derived
Signed-off-by: Tomas Winkler
---
drivers/misc/mei/hbm.c | 22 --
drivers/misc/mei/hw.h | 39 +--
2 files changed, 53 insertions(+), 8 deletions
In order to support testing hw module we remove dependency on
pci from mei module
Tomas Winkler (6):
mei: push all standard settings into mei_device_init
mei: get rid of most of the pci dependencies in mei
mei: move fw_status back to hw ops handlers
mei: remove the reference to pdev from
For purpose of adding testing HW we would like
to get rid of pci dependency in generic mei code.
Signed-off-by: Tomas Winkler
---
drivers/misc/mei/hw-me.c | 3 +--
drivers/misc/mei/hw-txe.c | 3 +--
drivers/misc/mei/mei_dev.h | 2 --
drivers/misc/mei/pci-me.c | 2 +-
drivers/misc/mei/pci
Remove inclusion of linux/pci.h in mei layer
however we need to include the headers that before
got included implicitly from linux/pci.h.
Signed-off-by: Tomas Winkler
---
drivers/misc/mei/amthif.c| 2 +-
drivers/misc/mei/bus.c | 1 -
drivers/misc/mei/client.c| 2 +-
drivers/misc
fw status retrieval has pci specific implementation
so we push it back to the hw layer
Signed-off-by: Tomas Winkler
---
drivers/misc/mei/hw-me.c | 28
drivers/misc/mei/hw-txe.c | 30 ++
drivers/misc/mei/init.c| 21
Setting of hw_ops and device has should be in
mei_device_init.
We add reference to the parent device and remove
pci dependent cfg
Signed-off-by: Tomas Winkler
Signed-off-by: Alexander Usyskin
---
drivers/misc/mei/hw-me.c | 6 ++
drivers/misc/mei/hw-txe.c | 5 ++---
drivers/misc/mei
Device specific configurations are currently only needed by me hw
so we can remove it from txe
Signed-off-by: Tomas Winkler
---
drivers/misc/mei/hw-me.c | 7 +--
drivers/misc/mei/hw-me.h | 26 +-
drivers/misc/mei/hw-txe.c | 22 +++---
drivers
For purpose of adding testing HW we would like
to get rid of pci dependency in generic mei code
This patch provides only straight forward changes
FW status and prob quirks need to be handled separately
Signed-off-by: Tomas Winkler
---
drivers/misc/mei/amthif.c| 68
From: Alexander Usyskin
We cannot handle user interrupt in context of hw initialization
so we only wait for time out which is reasonably short
Also we don't need to check error from wait, only flag value.
Signed-off-by: Alexander Usyskin
Signed-off-by: Tomas Winkler
---
drivers/misc/m
Alexander Usyskin (2):
mei: amthif: use service function to flush amthif queue
mei: amthif: don't check amthif client identity on amthif queues
drivers/misc/mei/amthif.c| 37 +++--
drivers/misc/mei/client.c| 2 +-
drivers/misc/mei/client.h| 2 ++
From: Alexander Usyskin
Replace open coded loop with an existing service function:
mei_io_list_flush
Signed-off-by: Alexander Usyskin
Signed-off-by: Tomas Winkler
---
drivers/misc/mei/client.c| 2 +-
drivers/misc/mei/client.h| 2 ++
drivers/misc/mei/interrupt.c | 13
From: Alexander Usyskin
Amthif has its own queues therefore it is redundant
to check the client type when processing the queues
Signed-off-by: Alexander Usyskin
Signed-off-by: Tomas Winkler
---
drivers/misc/mei/amthif.c | 37 +++--
1 file changed, 15
operations.
Replace strncpy with strlcpy.
Cc: sta...@vger.kernel.org # 3.10
Signed-off-by: Alexander Usyskin
Signed-off-by: Tomas Winkler
Signed-off-by: Greg Kroah-Hartman
---
drivers/misc/mei/bus.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/misc/mei/bus.c b/dr
NFC internal structure cleaning was dropped by commit
commit 487056932d372cc4f6c636f21a928d6667b151d7
Author: Tomas Winkler
Date: Mon Feb 17 15:13:19 2014 +0200
mei: Remove all bus devices from the mei_dev list when stopping the MEI
When stopping the MEI, we should remove and
We have MEI_HBM_STARTED in two contexts one
after start message was received and second
after enumeration was completed.
Because after start message reception we move
immediately to the enumeration state, we need
only the later meaning.
Signed-off-by: Tomas Winkler
---
drivers/misc/mei/hbm.c
NFC internal structure cleaning was dropped by commit
commit 487056932d372cc4f6c636f21a928d6667b151d7
Author: Tomas Winkler
Date: Mon Feb 17 15:13:19 2014 +0200
mei: Remove all bus devices from the mei_dev list when stopping the MEI
When stopping the MEI, we should remove and
NFC internal structure cleaning was dropped by commit
commit 487056932d372cc4f6c636f21a928d6667b151d7
Author: Tomas Winkler
Date: Mon Feb 17 15:13:19 2014 +0200
mei: Remove all bus devices from the mei_dev list when stopping the MEI
When stopping the MEI, we should remove and
From: Alexander Usyskin
We have host client in connect/disconnect response processors,
so use client print functions to simplify and unify code.
Signed-off-by: Alexander Usyskin
Signed-off-by: Tomas Winkler
---
drivers/misc/mei/hbm.c | 16
1 file changed, 8 insertions(+), 8
meiX/meclients: display also fixed/connectionless clients
Use better name for fixed client field:
fixed_address is boolean and indicates whether a client
is fixed or dynamic.
Signed-off-by: Tomas Winkler
---
drivers/misc/mei/debugfs.c | 8 ++--
1 file changed, 2 insertions(+), 6 deletions
To support dynamic addition/remove we add reference
counter.
Signed-off-by: Tomas Winkler
---
drivers/misc/mei/amthif.c | 14 +++---
drivers/misc/mei/bus.c | 39 +--
drivers/misc/mei/client.c | 122 -
drivers/misc/mei/client.h
To support dynamic addition/remove we add reference
counter.
Signed-off-by: Tomas Winkler
---
V2: code style and documentation fixes
drivers/misc/mei/amthif.c | 14 ++---
drivers/misc/mei/bus.c | 39 --
drivers/misc/mei/client.c | 126
NFC internal structure cleaning was dropped by commit
commit 5ad1550a15cd5b75ed8aa3009e162822f720375e
Author: Tomas Winkler
Date: Sun Jan 26 11:53:06 2014 +0200
mei: Remove all bus devices from the mei_dev list when stopping the MEI
We allocate nfc_dev and free it across the reset
so we
From: Alexander Usyskin
The pointer to client in the callback structure (cb->cl)
can't be NULL with current locking.
We can drop check and warnings as in some cases this just
uselessly complicates the code flow.
Signed-off-by: Alexander Usyskin
Signed-off-by: Tomas Winkler
---
driv
Use local cl variable instead of dev->iamthif_cl and dev->wd_cl
as the first step to use dynamic allocation of these clients
as their are not supported on all platforms
Signed-off-by: Tomas Winkler
---
drivers/misc/mei/amthif.c | 10 ++
drivers/misc/mei/wd.c | 9 ++---
2
To support dynamic addition/remove we add reference
counter.
Signed-off-by: Tomas Winkler
---
V2: code style and documentation fixes
V3: 1. Use refcounter also in mei_me_cl_rm_all,
2. Replace mei_me_cl_rm_by_id
with mei_me_cl_rm_by_uuid_id
3. Few more doc fixes
drivers/misc
701 - 800 of 1346 matches
Mail list logo