24 Sep, 2014
28 commits
-
Put the code to check present of the Intel bug from parport_EPP_supported
into new intel_bug_present function. The later also return ECR register
to the state it has before function call.Signed-off-by: Matwey V. Kornilov
Signed-off-by: Greg Kroah-Hartman -
Signed-off-by: Federico Vaga
Acked-by: Samuel Iglesias Gonsalvez
Signed-off-by: Greg Kroah-Hartman -
There was not any kind of protection against carrier driver removal.
In this way, device driver can 'get' the carrier driver when it is
using it.Signed-off-by: Federico Vaga
Acked-by: Samuel Iglesias Gonsalvez
Signed-off-by: Greg Kroah-Hartman -
Signed-off-by: Federico Vaga
Acked-by: Samuel Iglesias Gonsalvez
Signed-off-by: Greg Kroah-Hartman -
Signed-off-by: Rasmus Villemoes
Acked-by: Samuel Iglesias Gonsalvez
Signed-off-by: Greg Kroah-Hartman -
Signed-off-by: Eli Billauer
Signed-off-by: Greg Kroah-Hartman -
There is no need to init .owner field.
Based on the patch from Peter Griffin
"mmc: remove .owner field for drivers using module_platform_driver"This patch removes the superflous .owner field for drivers which
use the module_platform_driver API, as this is overriden in
platform_driver_register anyway."Signed-off-by: Michal Simek
Signed-off-by: Greg Kroah-Hartman -
The various devm_ functions allocate memory that is released when a
driver detaches. This patch uses these functions for data that is
allocated in the probe function of a platform device and is only freed
in the remove function. Also, the unnecessary labels are removed and
linux/device.h is added to make sure the devm_*() routine declarations
are unambiguously available.The initial call to platform_get_resource is moved down to the
introduced call to devm_ioremap_resource that uses its result.Signed-off-by: Himangi Saraogi
Acked-by: Julia Lawall
Signed-off-by: Greg Kroah-Hartman -
Signed-off-by: Takashi Iwai
Tested-by: Jean-Michel Hautbois
Signed-off-by: Greg Kroah-Hartman -
This patch introduces the use of devm_kzalloc and does away with the
kfrees in the probe and remove functions. Also, a label and the err
variable are removed. The header device.h is included to make the devm_
function explicitly available and slab.h is done away with as it is no
longer needed.Signed-off-by: Himangi Saraogi
Acked-by: Julia Lawall
Reviewed-by: Jean Delvare
Signed-off-by: Greg Kroah-Hartman -
function 'strncpy' will fill whole buffer 'id.name' of fixed size (32)
with string value and will not leave place for NULL-terminator.
Possible buffer boundaries violation in following string operations.
Replace strncpy with strlcpy.Cc: stable@vger.kernel.org # 3.10+
Signed-off-by: Alexander Usyskin
Signed-off-by: Tomas Winkler
Signed-off-by: Greg Kroah-Hartman -
There is no need for dynamic allocation for connect_data.
We can use variable on the stack and make code less
error prone and simpleSigned-off-by: Tomas Winkler
Signed-off-by: Greg Kroah-Hartman -
Handle ioctls in a switch statement so we can
add more commands easilySigned-off-by: Tomas Winkler
Signed-off-by: Greg Kroah-Hartman -
extract supported hbm features and commands from the hbm version
Signed-off-by: Tomas Winkler
Signed-off-by: Greg Kroah-Hartman -
Add mei_hbm_cl_find_by_cmd handler to retrieve
the destination clientSigned-off-by: Tomas Winkler
Signed-off-by: Greg Kroah-Hartman -
We cannot handle user interrupt in context of hbm start
so we only wait for time out which is reasonably short.1. Add kdoc
2. Rename state to better reflect its function
3. Simplify wait condition and rename
wait_recvd_msg to wait_hbm_startSigned-off-by: Alexander Usyskin
Signed-off-by: Tomas Winkler
Signed-off-by: Greg Kroah-Hartman -
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_msgSigned-off-by: Tomas Winkler
Signed-off-by: Greg Kroah-Hartman -
Rename mei_cl_irq_close to mei_cl_irq_disconnect
and MEI_FOP_CLOSE to MEI_FOP_DISCONNECT
Remove unused MEI_FOP_OPENSigned-off-by: Tomas Winkler
Signed-off-by: Greg Kroah-Hartman -
HBM uses global list of status values
from which the values of particular commands
are derivedSigned-off-by: Tomas Winkler
Signed-off-by: Greg Kroah-Hartman -
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
Signed-off-by: Greg Kroah-Hartman -
To support dynamic addition/remove we add wrappers
for removal of me clientsSigned-off-by: Tomas Winkler
Signed-off-by: Greg Kroah-Hartman -
To support dynamic addition/remove of clients
it is more convenient to use list instead of
static arraySigned-off-by: Tomas Winkler
Signed-off-by: Greg Kroah-Hartman -
For support of dynamic addition and removal of me clients
it is more convenient to use a list instead of static array
as is use now.
As the first step of the transition to the new data structure
we change the lookup function so it returns me client address
instead of an index.Signed-off-by: Tomas Winkler
Signed-off-by: Greg Kroah-Hartman -
Reduce few code lines by using wrappers for sending
simple hbm client messagesSigned-off-by: Tomas Winkler
Signed-off-by: Greg Kroah-Hartman -
Use consistently me_addr name in hbm protocol structures
to represent in firmware client addressSigned-off-by: Tomas Winkler
Signed-off-by: Alexander Usyskin
Signed-off-by: Greg Kroah-Hartman -
Amthif has its own queues therefore it is redundant
to check the client type when processing the queuesSigned-off-by: Alexander Usyskin
Signed-off-by: Tomas Winkler
Signed-off-by: Greg Kroah-Hartman -
Replace open coded loop with an existing service function:
mei_io_list_flushSigned-off-by: Alexander Usyskin
Signed-off-by: Tomas Winkler
Signed-off-by: Greg Kroah-Hartman -
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
Signed-off-by: Greg Kroah-Hartman
23 Sep, 2014
1 commit
-
…t/chanwoo/extcon into char-misc-next
Chanwoo writes:
Update extcon for v3.18
This patchset add new extcon provider driver and fix minor issue of extcon driver.
Detailed description for patchset:
1. Add new Richtek RT8973A extcon driver
This driver support for Richtek RT8973A which is Micro USB Switch OVP and
i2c interface. The RT8973A is a USB port accessory detector and switch that is
optimized to protect low voltage system from abnormal high input voltage
(up to 28V) and supports high speed USB operation. Also, RT8973A support
'auto-configuration' mode. If auto-configuration mode is enabled, RT8973A
would control internal h/w patch for USB D-/D+ switching.2. Fix code cleanup for other extcon driver
- extcon-sm5502 driver
: Fix bug to check cable type and build break.
: Move header file from include/linux/extcon to drivers/extcon because this
header file is only user for extcon-sm5502.c.
: Clean up codes by using checkpatch script
- extcon-max77693 driver
: Use resource managed interrupt function
: Fix bug to set ADC debounce time
- extcon-gpio driver
: Fix minor code cleanup
22 Sep, 2014
10 commits
-
This patch fixes following minor cleanup:
- Order the include files in alphabetical order.
- Fix description of state_off in extcon_gpio.h
- Add a descrition for check_on_resume in extcon_gpio.hSigned-off-by: George Cherian
[Modify the name/description of patch to keep standary codiyg style by Chanwoo Choi]
Signed-off-by: Chanwoo Choi -
When it writes some value other than 0 to BTLDset and JIGset, muic device
will be reset automatically. And it happens during updating ADC debounce time,
because it shares same register. To update ADC debounce time without reset,
set value only to ADCDbset and 0 to BTLDset and JIGset.Signed-off-by: Jonghwa Lee
[Remove un-needed masking operation by Chanwoo Choi]
Signed-off-by: Chanwoo Choi -
Don't include when the driver does not use anything
from this header file.Signed-off-by: Jean Delvare
Acked-by: MyungJoo Ham
Signed-off-by: Chanwoo Choi
Cc: Chanwoo Choi
Cc: MyungJoo Ham -
Use resource managed interrupt line devm_request_threaded_irq() to
simplify a little cleanup paths:
- no goto to cleanup label,
- simpler remove function.Overall the driver size is decreased by 11 line of code.
Signed-off-by: Krzysztof Kozlowski
Signed-off-by: Chanwoo Choi -
This patch add documentation for binding of Richtek RT8973A (Micro USB Switch)
device which is using EXTCON subsystem. The RT8973A device can detect various
external accessories when external accessories is attached or detached.Signed-off-by: Chanwoo Choi
Acked-by: Kyungmin Park -
This patch add support for Richtek RT8973A which is Micro USB Switch OVP
and i2c interface. The RT8973A is a USB port accessory detector and switch
that is optimized to protect low voltage system from abnormal high input
voltage (up to 28V) and supports high speed USB operation. Also, RT8973A
support 'auto-configuration' mode. If auto-configuration mode is enabled,
RT8973A would control internal h/w patch for USB D-/D+ switching.Signed-off-by: Chanwoo Choi
Signed-off-by: Seung-Woo Kim
Acked-by: Kyungmin Park -
This patch just clean up codes by using checkpatch script and fix warning
message about if statement.- the result of checkpatch script as following:
WARNING: void function return statements are not generally useful
+ return;
+}WARNING: quoted string split across lines
+ dev_err(info->dev, "failed: irq request (IRQ: %d,"
+ " error :%d)\n", muic_irq->irq, ret);- warning message about coding style.
drivers/extcon/extcon-sm5502.c:398 sm5502_muic_cable_handler()
warn: we tested 'attached' before and it was 'false'Signed-off-by: Chanwoo Choi
-
This patch move sm5502.h header file from 'include/linux/extcon' to
'driver/extcon' because sm5502.h is used for driver/extcon/extcon-sm5502.c.
and remove duplicate license description.Signed-off-by: Chanwoo Choi
-
This patch add I2C configuration dependency to fix following build break.
If specific kernel build I2C as module, extcon-sm5502 have to depend on
I2C configuration.drivers/built-in.o: In function `regmap_smbus_byte_reg_read':
regmap-i2c.c:(.text+0x5030a): undefined reference to `i2c_smbus_read_byte_data'
drivers/built-in.o: In function `regmap_smbus_byte_reg_write':
regmap-i2c.c:(.text+0x50338): undefined reference to `i2c_smbus_write_byte_data'
drivers/built-in.o: In function `regmap_smbus_word_reg_read':
regmap-i2c.c:(.text+0x50356): undefined reference to `i2c_smbus_read_word_data'
drivers/built-in.o: In function `regmap_smbus_word_reg_write':
regmap-i2c.c:(.text+0x50384): undefined reference to `i2c_smbus_write_word_data'
drivers/built-in.o: In function `regmap_i2c_read':
regmap-i2c.c:(.text+0x503cf): undefined reference to `i2c_transfer'
drivers/built-in.o: In function `regmap_i2c_gather_write':
regmap-i2c.c:(.text+0x50442): undefined reference to `i2c_transfer'
drivers/built-in.o: In function `regmap_i2c_write':
regmap-i2c.c:(.text+0x50474): undefined reference to `i2c_master_send'
drivers/built-in.o: In function `sm5502_muic_i2c_init':
extcon-sm5502.c:(.init.text+0x6630): undefined reference to `i2c_register_driver'Signed-off-by: Chanwoo Choi
-
This patch fix bug when checking cable type. SM5502 have to use ADC value
to get correct cable type.Signed-off-by: Chanwoo Choi
15 Sep, 2014
1 commit