Re: [PATCH 1/1] OMAP4: DSS: Add panel for Blaze Tablet boards

2013-02-07 Thread Andi Shyti
Hi, > TC358765 is DSI-to-LVDS transmitter from Toshiba, used in > OMAP44XX Blaze Tablet and Blaze Tablet2 boards. I had a really fast look and I have few comments > +static int tc358765_read_register(struct omap_dss_device *dssdev, > + u16 reg, u32 *val) > +{

Re: [PATCH 1/1] OMAP4: DSS: Add panel for Blaze Tablet boards

2013-02-08 Thread Andi Shyti
Hi, > Thanks for looking into if you want you can put me in CC and I can review the next patches (perhaps V2 of the patches) > >> + mutex_lock(&tc358765_i2c->xfer_lock); > >> + ret = i2c_transfer(tc358765_i2c->client->adapter, &msg, 1); > >> + mutex_unlock(&tc358765_i2c->xfer_lock);

Re: [PATCH v2 1/1] OMAP4: DSS: Add panel for Blaze Tablet boards

2013-02-10 Thread Andi Shyti
Hi Ruslan, > TC358765 is DSI-to-LVDS transmitter from Toshiba, used in > OMAP44XX Blaze Tablet and Blaze Tablet2 boards. I think it's fine, just some nitpicks and checkpatch warnings > +struct { > + struct device *dev; > + struct dentry *dir; > +} tc358765_debug; Should this be static?

Re: [PATCH v5 1/4] mfd: add syscon driver based on regmap

2012-09-04 Thread Andi Shyti
Hi Dong, On Tue, Sep 04, 2012 at 11:20:08AM +0800, Dong Aisheng wrote: > +static int __devinit syscon_probe(struct platform_device *pdev) > +{ > + struct device *dev = &pdev->dev; Do we really need this variable? Anyway you are using it only once in the dev_info. > + struct device_node *

Re: [PATCH v5 1/4] mfd: add syscon driver based on regmap

2012-09-04 Thread Andi Shyti
On Tue, Sep 04, 2012 at 07:46:02PM +0800, Dong Aisheng wrote: > On Tue, Sep 04, 2012 at 07:35:45PM +0800, Andi Shyti wrote: > > Hi Dong, > > > > On Tue, Sep 04, 2012 at 11:20:08AM +0800, Dong Aisheng wrote: > > > +static int __devinit syscon_prob

Re: [PATCH 0/4] cbus/retu drivers to mainline

2012-09-04 Thread Andi Shyti
d IRQ functionality to retu-mfd > - added power button key driver > - some cleanups > > Aaro Koskinen (4): > i2c: introduce i2c-cbus driver > mfd: introduce retu-mfd driver > watchdog: introduce retu_wdt driver > input: misc: introduce retu-pwrbutton I had a lo

Re: [[RFC]] scripts/robopatch.pl: the mechanical bride of checkpatch.pl

2013-10-02 Thread Andi Shyti
> +# $ scripts/checkpatch.pl WHATEVER > /tmpcheckpatch.log ^^ I guess you have a typo here. I actually used this, it doesn't know what msleep is and it fails, so that to go ahead I had to remove the msleep lines from /tmp/checpatch.log. Andi -- To unsub

Re: Use of drivers/platform and matching include?

2013-10-06 Thread Andi Shyti
Hi, > As we look at upstreaming more support for the Qualcomm MSM SoCs there are a > number of drivers or library like routines that are unique to the MSM > platform, we are thinking that putting them under: just a question, is this code the one you have already in codeaurora for 8974/8226/8626

Re: Use of drivers/platform and matching include?

2013-10-08 Thread Andi Shyti
> >just a question, is this code the one you have already in > >codeaurora for 8974/8226/8626/8610 etc? > Yes. Finally, I would say! But you should have done this much earlier so that you could have made the life of your customers easier and maybe they could have helped you on upstreaming the cod

[PATCH 18/19] bh1770glc: Corrected proximity sensor rates

2013-06-13 Thread Andi Shyti
From: Onur Atilla The rate table of the proximity sensor has included one incorrect value that is not supported by the HW. This value is now corrected from 25Hz to 20Hz. The corresponding rate in the time table is corrected to 50ms accordingly. Signed-off-by: Onur Atilla Signed-off-by: Andi

[PATCH 07/19] bh1770glc: split read result function

2013-06-13 Thread Andi Shyti
prox_read_result() has been split in two functions: - ps_get_result(): reads the proximity value from the register - prox_read_result(): applies the logic above the proximity value Signed-off-by: Andi Shyti --- drivers/misc/bh1770glc.c | 53 +- 1

[PATCH 08/19] bh1770glc: logic change in the proximity read

2013-06-13 Thread Andi Shyti
the prox0_raw file in the sysfs interface reads the proximity value directly from the register instead of reporting the last read value; in this way userspace applications can have a real time value Signed-off-by: Andi Shyti --- drivers/misc/bh1770glc.c |5 + 1 file changed, 5

[PATCH 04/19] bh1770glc: Added raw lux output file for ALS to sysfs

2013-06-13 Thread Andi Shyti
From: Onur Atilla "lux0_raw" file gives the raw Ambient Light Sensor (ALS) value, before adjusting it with the calibration coefficients, whereas "lux0_input"returns the calibrated ALS value. Signed-off-by: Onur Atilla Signed-off-by: Andi Shyti --- drivers/mis

[PATCH 02/19] bh1770glc: different glass attenuation parameters

2013-06-13 Thread Andi Shyti
From: Onur Atilla The Ambient Light Sensor (ALS) glass attenuation parameter should be configurable and two new parameters are introduced: als_scf_BH1770 and als_scf_SFH7770. Signed-off-by: Onur Atilla Signed-off-by: Andi Shyti --- include/linux/i2c/bh1770glc.h |2 ++ 1 file changed, 2

[PATCH 03/19] bh1770glc: lux0_glass_factor & lux0_comp_factor on sysfs

2013-06-13 Thread Andi Shyti
From: Onur Atilla Introduced lux0_glass_factor and lux0_comp_factor on sysfs lux0_glass_factor and lux0_sensor_comp_factor are provided as read-only files on the sysfs structure of the bh1770glc optical sensor. Signed-off-by: Onur Atilla Signed-off-by: Andi Shyti --- drivers/misc

[PATCH 00/19] misc: bh1770glc features and fixes

2013-06-13 Thread Andi Shyti
top of any branch since they don't affect any core code. Thanks, Andi Andi Shyti (7): bh1770glc: added input device interface bh1770glc: removed proximity adjustement bh1770glc: split read result function bh1770glc: logic change in the proximity read bh1770glc: use min_t instead o

[PATCH 13/19] bh1770glc: Code cleaning and aligning in source code

2013-06-13 Thread Andi Shyti
From: Onur Atilla Removed unused variables and definitions, adjusted some code alignement and removed trailing spaces. Signed-off-by: Onur Atilla Signed-off-by: Andi Shyti --- drivers/misc/bh1770glc.c | 55 +++-- include/linux/i2c/bh1770glc.h | 25

[PATCH 14/19] bh1770glc: Modified the neutral glass attenuation value

2013-06-13 Thread Andi Shyti
From: Onur Atilla Changed the neutral glass attenuation value from 16384 to 8192. This is for adaptation to the new scaling factor. Signed-off-by: Onur Atilla Signed-off-by: Andi Shyti --- include/linux/i2c/bh1770glc.h |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH 11/19] bh1770glc: removed lux_read_raw_result() function

2013-06-13 Thread Andi Shyti
lux_raw_result_show() will run directly the lux_get_result() instead of using another support function Signed-off-by: Andi Shyti --- drivers/misc/bh1770glc.c |9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/misc/bh1770glc.c b/drivers/misc/bh1770glc.c index

[PATCH 17/19] bh1770glc: Implemented switch for interrupt operation

2013-06-13 Thread Andi Shyti
als_int_enable is set to 0, then the INT output signal of the sensor will not be used by the ALS, but only by the proximity sensor. The interrupt setting can be changed during runtime by defining new threshold values for the ambient light sensor. Signed-off-by: Onur Atilla Signed-off-by: Andi Shyti

[PATCH 16/19] bh1770glc: Added sanity check for scf

2013-06-13 Thread Andi Shyti
From: Onur Atilla Sensor compensation factor input from the platform is being checked now before use. Signed-off-by: Onur Atilla Signed-off-by: Andi Shyti --- drivers/misc/bh1770glc.c | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/drivers/misc

[PATCH 05/19] bh1770glc: Removed obsolete offset settings from SFH7770 code

2013-06-13 Thread Andi Shyti
From: Onur Atilla Some obsolete version-dependent coefficient and constant settings were removed out of the sensor detection functions. These values cause unwanted offset between different sensor types. Signed-off-by: Onur Atilla Signed-off-by: Andi Shyti --- drivers/misc/bh1770glc.c |3

[PATCH 01/19] bh1770glc: added input device interface

2013-06-13 Thread Andi Shyti
The driver generates an event in /dev/input/ under the name 'bh1770'. It's a switch event where is reported '0' or '1' whenever the sensor detects something crossing the threshold. Signed-off-by: Onur Atilla Signed-off-by: Phil Carmody Signed-off-by: Andi S

[PATCH 10/19] bh1770glc: use kstrtoul instead of strict_strtoul

2013-06-13 Thread Andi Shyti
sensor sysfs interface. Signed-off-by: Andi Shyti Signed-off-by: Onur Atilla --- drivers/misc/bh1770glc.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/misc/bh1770glc.c b/drivers/misc/bh1770glc.c index bd90eaf..b5fc2b9 100644 --- a/drivers/misc

[PATCH 12/19] bh1770glc: Introduced dynamic threshold

2013-06-13 Thread Andi Shyti
actual status of the proximity interrupt, the threshold is set dynamically using a newly introduced hysteresis value. Hysteresis is a configurable parameter. Signed-off-by: Onur Atilla Signed-off-by: Andi Shyti --- drivers/misc/bh1770glc.c | 96

[PATCH 09/19] bh1770glc: use min_t instead of min

2013-06-13 Thread Andi Shyti
Signed-off-by: Andi Shyti --- drivers/misc/bh1770glc.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/bh1770glc.c b/drivers/misc/bh1770glc.c index 031a9fa..bd90eaf 100644 --- a/drivers/misc/bh1770glc.c +++ b/drivers/misc/bh1770glc.c @@ -273,7 +273,7 @@ static

[PATCH 19/19] bh1770glc: Proximity sensor LED current update

2013-06-13 Thread Andi Shyti
From: Onur Atilla Instead of using a constant value, the LED current of the proximity sensor is now made individually configurable for each product. bh1770glc reads the platform-defined data and sets the most suitable current value accordingly. Signed-off-by: Onur Atilla Signed-off-by: Andi

[PATCH 06/19] bh1770glc: removed proximity adjustement

2013-06-13 Thread Andi Shyti
proximity sensor doesn't need to be adjusted; removed all the overcode used for the proximity coefficients Signed-off-by: Andi Shyti --- drivers/misc/bh1770glc.c | 39 ++- 1 file changed, 2 insertions(+), 37 deletions(-) diff --git a/drivers

[PATCH 15/19] bh1770glc: Modified scaler variable

2013-06-13 Thread Andi Shyti
From: Onur Atilla Changed all exposed scalers to 8192 (Q13) in order to achieve consistency in the sysfs interface. Signed-off-by: Onur Atilla Signed-off-by: Andi Shyti --- drivers/misc/bh1770glc.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/misc

[PATCH 0/2] etzkx accelerometer support

2013-06-16 Thread Andi Shyti
, Andi Andi Shyti (2): drivers/misc: etzkx driver for kxcnl/kxtnk accelerometer Documentation: added etzkx driver documentation Documentation/misc-devices/etzkx.txt | 325 + drivers/misc/Kconfig | 12 + drivers/misc/Makefile|1 + drivers/misc/etzkx.c

[PATCH 2/2] Documentation: added etzkx driver documentation

2013-06-16 Thread Andi Shyti
The etzkx driver's documentation contains some basic information about - accelerometer chip overview - driver interfaces - driver usage Signed-off-by: Andi Shyti Reviewed-by: Onur Atilla --- Documentation/misc-devices/etzkx.txt | 325 ++ 1 file changed

Re: [PATCH 0/2] etzkx accelerometer support

2013-06-16 Thread Andi Shyti
> > these two patches provide the etzkx device driver which supports > > the following accelerometers: > > > > - Kionix kxcnl > > - Kionix kxtnk > > - ST lisn3dsh > > > > Support for ST lis3dsh accelerometer is still in progress. > > > > The etzkx accelerometers are a kind of devices that are

Re: [PATCH 0/2] etzkx accelerometer support

2013-06-17 Thread Andi Shyti
> > > > these two patches provide the etzkx device driver which supports > > > > the following accelerometers: > > > > > > > > - Kionix kxcnl > > > > - Kionix kxtnk > > > > - ST lisn3dsh > > > > > > > > Support for ST lis3dsh accelerometer is still in progress. > > > > > > > > The etzkx accel

Re: [PATCH 01/19] bh1770glc: added input device interface

2013-06-17 Thread Andi Shyti
Hi Greg, > > The driver generates an event in /dev/input/ under the name > > 'bh1770'. It's a switch event where is reported '0' or '1' > > whenever the sensor detects something crossing the threshold. > > > > Signed-off-by: Onur

Re: [PATCH 03/19] bh1770glc: lux0_glass_factor & lux0_comp_factor on sysfs

2013-06-17 Thread Andi Shyti
> > Introduced lux0_glass_factor and lux0_comp_factor on sysfs > > > > lux0_glass_factor and lux0_sensor_comp_factor are provided as > > read-only files on the sysfs structure of the bh1770glc optical sensor. > > You can't add/remove/modify sysfs files without the proper > Documentation/ABI chang

Re: [PATCH 00/19] misc: bh1770glc features and fixes

2013-06-17 Thread Andi Shyti
> > This patchset contains a collection of new features and fixes for > > the bh1770glc driver for the BH1770 and SFH7770 proximity > > and ambient light sensor device. > > Remind me again why this isn't an drivers/iio/ driver, using that api? Well, the driver is not written by me, I just found i

Re: [PATCH 01/19] bh1770glc: added input device interface

2013-06-17 Thread Andi Shyti
> > > > The driver generates an event in /dev/input/ under the name > > > > 'bh1770'. It's a switch event where is reported '0' or '1' > > > > whenever the sensor detects something crossing the threshold. > > > > > > > Doesn't this mean that this driver is now an "input" driver, so it > > > should

Re: [PATCH 1/1] net: add dm9620 net usb driver

2013-06-19 Thread Andi Shyti
Hi Joseph, had a fast look... [ ... ] > +static int dm9620_set_eeprom(struct net_device *net, > + struct ethtool_eeprom *eeprom, u8 *data) > +{ > + struct usbnet *dev = netdev_priv(net); > + int offset = eeprom->offset; > + int len = eeprom->len; > + int done; > + > +

[PATCH] rsxx: core: fix memory leak

2013-08-19 Thread Andi Shyti
if 'copy_from_user' fails, the 'rsxx_cram_write()' function returns without freeing the allocated buffer 'buf'. Free 'buf' before returning. This issue has been reported by scan.coverity.com Signed-off-by: Andi Shyti --- drivers/block/rsxx/core.c | 4

[PATCH v2 1/1] rsxx: core: fix memory leak

2013-08-19 Thread Andi Shyti
Free 'buf' before returning. the 'rsxx_cram_write()' function returns twice without freeing the allocated buffer 'buf' causing a possible memory leak. This issue has been reported by scan.coverity.com Signed-off-by: Andi Shyti --- drivers/block/rsxx/core.c

[PATCH v2 0/1] fix meamleak on rsxx/core.c

2013-08-19 Thread Andi Shyti
Hi, this version is a bit better since it fixes two memleak situations. Andi Andi Shyti (1): rsxx: core: fix memory leak drivers/block/rsxx/core.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) -- 1.8.4.rc2 -- To unsubscribe from this list: send the line "unsubscribe

[PATCH] mlx5: qp: variable may be used uninitialized

2013-07-16 Thread Andi Shyti
in the sq_overhead() function, if qp_typ is equal to IB_QPT_RC, size will be used uninitialized. Signed-off-by: Andi Shyti --- drivers/infiniband/hw/mlx5/qp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/hw/mlx5/qp.c b/drivers/infiniband/hw/mlx5/qp.c

Re: [PATCH 2/2] cifs: file: initialize oparms.reconnect before using it

2013-07-29 Thread Andi Shyti
Hi Steve, > Your patch looks reasonable. Would you repost the patch to > linux-cifs mailing list (and add any additional reviewers or testers > if you would like if you got feedback)? Thanks for your mail, Actually linux-cifs is on CC and this is the output of get_maintainer: Steve French (s

[PATCH RESEND] cifs: file: initialize oparms.reconnect before using it

2013-07-29 Thread Andi Shyti
e function jumps to the label reopen_success and checks for oparms.reconnect which is not initialized. To avoid this the oparms structure initialization is anticipated before the if statement. This issue has been reported by scan.coverity.com Signed-off-by: Andi Shyti --- fs/cifs/file.c | 18

Re: [PATCH RESEND] cifs: file: initialize oparms.reconnect before using it

2013-07-29 Thread Andi Shyti
> > + oparms.tcon = tcon; > > + oparms.cifs_sb = cifs_sb; > > + oparms.desired_access = desired_access; > > + oparms.create_options = create_options; > > This patch just moves the brokenness around. You're > setting .desired_access here to an unintialized variable. > create_options also lo

[PATCH v2] cifs: file: initialize oparms.reconnect before using it

2013-07-29 Thread Andi Shyti
s to the label reopen_success and checks for oparms.reconnect which is not initialized. This issue has been reported by scan.coverity.com Signed-off-by: Andi Shyti --- fs/cifs/file.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/cifs/file.c b/fs/cifs/file.c index 1e57f36..7e36ae3 100644

Re: [PATCH 0/2] etzkx accelerometer support

2013-08-08 Thread Andi Shyti
Hi Greg, > > > > these two patches provide the etzkx device driver which supports > > > > the following accelerometers: > > > > > > Why isn't this a drivers/iio/accel/ driver instead of a misc driver? > > > Please make this an iio driver, then you will be using the correct > > > user/kernel api t

[PATCH] u8500_defconfig: allow creation and mounting of devtmpfs

2013-07-18 Thread Andi Shyti
This patch enables CONFIG_DETTMPFS and CONFIG_DEVTMPFS_MOUNT flags for u8500 based devices. In this way it's possible to create a tmpfs/ramfs already in the early stages of the boot, allowing programs like udev/mdev to populate the /dev directory. Signed-off-by: Andi Shyti --- arch/arm/co

[PATCH] net: trans_rdma: remove unused function

2013-07-22 Thread Andi Shyti
: Andi Shyti --- net/9p/trans_rdma.c | 11 --- 1 file changed, 11 deletions(-) diff --git a/net/9p/trans_rdma.c b/net/9p/trans_rdma.c index 928f2bb..8f68df5 100644 --- a/net/9p/trans_rdma.c +++ b/net/9p/trans_rdma.c @@ -588,17 +588,6 @@ static int rdma_cancel(struct p9_client *client

[PATCH] vga16fb: remove unused variable

2013-07-22 Thread andi . shyti
From: Andi Shyti This patch gets rid of the following warning: drivers/video/vga16fb.c: In function ‘vga16fb_destroy’: drivers/video/vga16fb.c:1268:26: warning: unused variable ‘dev’ [-Wunused-variable] struct platform_device *dev = container_of(info->device, struct platform_device,

[PATCH 2/2] cifs: file: initialize oparms.reconnect before using it

2013-07-22 Thread Andi Shyti
e function jumps to the label reopen_success and checks for oparms.reconnect which is not initialized. To avoid this the oparms structure initialization is anticipated before the if statement. Signed-off-by: Andi Shyti --- fs/cifs/file.c | 18 +- 1 file changed, 9 insertions(+), 9 delet

Re: [PATCH 2/2] cifs: file: initialize oparms.reconnect before using it

2013-07-22 Thread Andi Shyti
This is patch 1/1, not 2/2... messed up with git. Andi On Mon, Jul 22, 2013 at 09:24:00PM +0200, Andi Shyti wrote: > In the cifs_reopen_file function, if the following statement is > asserted: > > (tcon->unix_ext && cap_unix(tcon->ses) && >

[PATCH] fs: bio-integrity: fix possible segmentation fault

2013-07-23 Thread Andi Shyti
free bvec_integrity_pool if it's allocated, not bio_integrity_pool Signed-off-by: Andi Shyti --- fs/bio-integrity.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/bio-integrity.c b/fs/bio-integrity.c index 8fb4291..45e944f 100644 --- a/fs/bio-integrity.c +++ b/f

[PATCH] btrfs: raid56: avoid double allocation

2013-07-24 Thread Andi Shyti
alloc_rbio frees already bbio and raid_map, therefore they don't need to be freed in case it fails Signed-off-by: Andi Shyti --- fs/btrfs/raid56.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/fs/btrfs/raid56.c b/fs/btrfs/raid56.c index 0525e13..35fe775 100644

[PATCH] ext4: extents: len and lblock may be used uninitialized

2013-07-24 Thread Andi Shyti
if ext_debugging is enabled and path[depth].p_ext is NULL, len and lblock are printed non initialized Signed-off-by: Andi Shyti --- fs/ext4/extents.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c index a618738..acaf53c 100644

Re: [V9fs-developer] [PATCH] net: trans_rdma: remove unused function

2013-07-25 Thread Andi Shyti
Hi, > To be more precise, there's a single call to c->trans_mode->cancelled in > net/9p/client.c, in p9_client_flush, which is called on subfunction returning > -ERESTARTSYS... which never happens as far as I could see. > > This will be useful once/if we start working on client recovery, though >

[PATCH] 9p: client: remove unused code and any reference to "cancelled" function

2013-07-25 Thread Andi Shyti
This patch reverts commit 80b45261a0b263536b043c5ccfc4ba4fc27c2acc which was implementing a 'cancelled' functionality to notify that a cancelled request will not be replied. This implementation was not used anywhere and therefore removed. Signed-off-by: Andi Shyti --- incl

Re: [PATCH] 9p: client: remove unused code and any reference to "cancelled" function

2013-07-25 Thread Andi Shyti
Hi David, On Thu, Jul 25, 2013 at 10:54:24AM +0200, Andi Shyti wrote: > This patch reverts commit > > 80b45261a0b263536b043c5ccfc4ba4fc27c2acc > > which was implementing a 'cancelled' functionality to notify that > a cancelled request will not be replied. > >

Re: [NEW DRIVER V1 0/7] please comment on this new PMIC driver

2012-08-03 Thread Andi Shyti
Hi Tony, > for your very helpful comments on all on the patches in this first submission > attempt, I will digest and regurgitate a second attempt as soon as I can. once you have digested and regurgitated :), you could also split the patchset in smaller patches, I would say at least one patch pe

Re: [PATCH v2 1/1] OMAP4: DSS: Add panel for Blaze Tablet boards

2013-02-17 Thread Andi Shyti
> >> + char name[30]; > >> + char buf[50]; > >> + > >> + if (size >= sizeof(buf)) > >> + size = sizeof(buf); > > > > what's the point of this? > > This is a way to limit copied from userspace data by available buffer size, > widely used in current kernel sources. Are you im

Re: [RFC 1/7] [media] rc-main: assign driver type during allocation

2016-07-20 Thread Andi Shyti
Hi Sean, > > The driver type can be assigned immediately when an RC device > > requests to the framework to allocate the device. > > > > This is an 'enum rc_driver_type' data type and specifies whether > > the device is a raw receiver or scancode receiver. The type will > > be given as parameter

Re: [RFC 3/7] [media] rc-core: add support for IR raw transmitters

2016-07-20 Thread Andi Shyti
Hi Sean, > > + if (dev->driver_type == RC_DRIVER_IR_RAW || > > + dev->driver_type == RC_DRIVER_IR_RAW_TX) { > > Here the if is wrong. It should be > "if (dev->driver_type != RC_DRIVER_IR_RAW_TX)". Note that as result > the decoder thread is not started, so patch 4 won

Re: [RFC 5/7] [media] ir-lirc-codec: do not handle any buffer for raw transmitters

2016-07-20 Thread Andi Shyti
Hi Sean, > > Raw transmitters receive the data which need to be sent to > > receivers from userspace as stream of bits, they don't require > > any handling from the lirc framework. > > No drivers of type RC_DRIVER_IR_RAW_TX should handle tx just like any > other device, so data should be provided

Re: [RFC 7/7] [media] rc: add support for IR LEDs driven through SPI

2016-07-20 Thread Andi Shyti
Hi Sean, > > + int ret; > > + struct ir_spi_data *idata = (struct ir_spi_data *) dev->priv; > > No cast needed. yes, thanks. > > + ret = regulator_enable(idata->regulator); > > + if (ret) > > + return ret; > > + > > + mutex_lock(&idata->mutex); > > + idata->xfer.len = n; >

Re: [RFC 7/7] [media] rc: add support for IR LEDs driven through SPI

2016-07-21 Thread Andi Shyti
Hi Sean, > > > > + ret = regulator_enable(idata->regulator); > > > > + if (ret) > > > > + return ret; > > > > + > > > > + mutex_lock(&idata->mutex); > > > > + idata->xfer.len = n; > > > > + idata->xfer.tx_buf = buffer; > > > > + mutex_unlock(&idata

Re: [PATCH] clk: samsung: exynos5433: use clock_ignore_unused flag for SPI3 related clocks

2016-06-19 Thread Andi Shyti
Hi Tomasz, > >> > The SPI 3 bus uses two clocks, a bus clock and an input clock. > >> > Do not disable the clocks when unused in order to allow access to > >> > the SPI 3 device. > >> > >> If unused, why would access to SPI 3 device needed? > > > > because next I will submit a small driver which u

Re: [PATCH] clk: samsung: exynos5433: use clock_ignore_unused flag for SPI3 related clocks

2016-06-20 Thread Andi Shyti
> Unfortunately I have to NAK this patch. Please add proper support for > them to the SPI driver. I agree, this is quite a lazy solution. But your comment is giving me more work than what I was willing to have, also because in this driver the SPI1 is aslo using CLK_IGNORE_UNUSED :) Thanks for yo

[PATCH v2 5/7] [media] ir-lirc-codec: don't wait any transmitting time for tx only devices

2016-09-01 Thread Andi Shyti
Transmitters do not need to wait until the data has been sent (and of course received). Return before waiting. Signed-off-by: Andi Shyti --- drivers/media/rc/ir-lirc-codec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/rc/ir-lirc-codec.c b/drivers/media/rc

[PATCH v2 1/7] [media] rc-main: assign driver type during allocation

2016-09-01 Thread Andi Shyti
ice device. Change accordingly all the drivers calling rc_allocate_device() so that the device type is specified during the rc device allocation. Whenever the device type is not specified, it will be set as RC_DRIVER_SCANCODE which was the default '0' value. Suggested-by: Sean Young

[PATCH v2 0/7] Add support for IR transmitters

2016-09-01 Thread Andi Shyti
converts it to a bit stream. Thanks, Andi Andi Shyti (7): [media] rc-main: assign driver type during allocation [media] rc-main: split setup and unregister functions [media] rc-core: add support for IR raw transmitters [media] rc-ir-raw: do not generate any receiving

[PATCH v2 7/7] [media] rc: add support for IR LEDs driven through SPI

2016-09-01 Thread Andi Shyti
urn -1; val = 60; ret = ioctl(fd, LIRC_SET_SEND_DUTY_CYCLE, &val); if (ret < 0) return -1; n = write(fd, buffer, BUF_LEN); if (n < 0 || n != BUF_LEN) ret = -1; close(fd); Signed-off-by: Andi Shyti --- d

[PATCH v2 6/7] Documentation: bindings: add documentation for ir-spi device driver

2016-09-01 Thread Andi Shyti
Document the ir-spi driver's binding which is a IR led driven through the SPI line. Signed-off-by: Andi Shyti --- Documentation/devicetree/bindings/media/spi-ir.txt | 26 ++ 1 file changed, 26 insertions(+) create mode 100644 Documentation/devicetree/bindings/medi

[PATCH v2 4/7] [media] rc-ir-raw: do not generate any receiving thread for raw transmitters

2016-09-01 Thread Andi Shyti
Raw IR transmitters do not need any thread listening for occurring events. Check the driver type before running the thread. Signed-off-by: Andi Shyti --- drivers/media/rc/rc-ir-raw.c | 17 - 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/drivers/media/rc/rc-ir

[PATCH v2 2/7] [media] rc-main: split setup and unregister functions

2016-09-01 Thread Andi Shyti
Move the input device allocation, map and protocol handling to different functions. Signed-off-by: Andi Shyti --- drivers/media/rc/rc-main.c | 144 + 1 file changed, 81 insertions(+), 63 deletions(-) diff --git a/drivers/media/rc/rc-main.c b/drivers

[PATCH v2 3/7] [media] rc-core: add support for IR raw transmitters

2016-09-01 Thread Andi Shyti
need to be registered as raw devices. Suggested-by: Sean Young Signed-off-by: Andi Shyti --- drivers/media/rc/rc-main.c | 39 +++ include/media/rc-core.h| 9 ++--- 2 files changed, 29 insertions(+), 19 deletions(-) diff --git a/drivers/media/rc/rc-m

Re: [PATCH v2 1/7] [media] rc-main: assign driver type during allocation

2016-09-01 Thread Andi Shyti
Hi Sean, > > ir = kzalloc(sizeof(*ir), GFP_KERNEL); > > - dev = rc_allocate_device(); > > + dev = rc_allocate_device(RC_DRIVER_IR_RAW); > > if (!ir || !dev) > > goto err_out_free; > > > > If ir->sampling = 0 then it should be RC_DRIVER_SCANCODE. > > > > @@ -481,7 +481,

Re: [PATCH v2 7/7] [media] rc: add support for IR LEDs driven through SPI

2016-09-01 Thread Andi Shyti
> Thanks Andi, this is looking great! Thanks Sean! With your reviews the whole thing looks much better now :) I agree with all your points here, I will fix them. Can I add your reviewd-by? Thanks, Andi

Re: [PATCH v2 6/7] Documentation: bindings: add documentation for ir-spi device driver

2016-09-01 Thread Andi Shyti
Hi Rob, > > Document the ir-spi driver's binding which is a IR led driven > > through the SPI line. > > > > Signed-off-by: Andi Shyti > > --- > > Documentation/devicetree/bindings/media/spi-ir.txt | 26 > > ++ > > 1 f

Re: [PATCH] spi: add null check before pointer dereference

2017-05-28 Thread Andi Shyti
Hi Gustavo, > desc = dmaengine_prep_slave_sg(dma->ch, sgt->sgl, sgt->nents, > dma->direction, DMA_PREP_INTERRUPT); > > + if (!desc) { > + dev_err(&sdd->master->dev, > + "%s:dmaengine_prep_slave_sg Failed\n", __func__)

[PATCH v5 1/2] dt-bindings: Input: add Samsung S6SY761 touchscreen binding file

2017-11-01 Thread Andi Shyti
Add the binding file for the Samsung capacitive multi-touch touchscreen S6SY761. Signed-off-by: Andi Shyti Acked-by: Rob Herring --- .../bindings/input/touchscreen/samsung,s6sy761.txt | 34 ++ 1 file changed, 34 insertions(+) create mode 100644 Documentation/devicetree

[PATCH v5 0/2] add support for the Samsung S6SY761 touchscreen

2017-11-01 Thread Andi Shyti
' - use max_t instead of '? :' - use managed 'devm_device_add_group()' Andi Shyti (2): dt-bindings: Input: add Samsung S6SY761 touchscreen binding file Input: add support for the Samsung S6SY761 touchscreen .../bindings/input/touchscreen/samsung,s6sy761.txt | 34 ++ dr

[PATCH v5 2/2] Input: add support for the Samsung S6SY761 touchscreen

2017-11-01 Thread Andi Shyti
h, in the version I currently have, doesn't provide all the possible functionalities mentioned in the datasheet. Signed-off-by: Andi Shyti --- drivers/input/touchscreen/Kconfig | 11 + drivers/input/touchscreen/Makefile | 1 + drivers/input/touchscreen/s6sy7

[PATCH 4/5] Input: ad7897 - use managed devm_device_add_group

2017-11-02 Thread Andi Shyti
ned-off-by: Andi Shyti --- drivers/input/touchscreen/ad7877.c | 15 ++- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/drivers/input/touchscreen/ad7877.c b/drivers/input/touchscreen/ad7877.c index 3a4230219b23..c8a143db8681 100644 --- a/drivers/input/touchscreen/ad78

[PATCH 1/5] Input: ad7897 - use managed devm_kzalloc

2017-11-02 Thread Andi Shyti
Allocate the driver's structure by using devm_kzalloc instead of simple kzalloc and remove all the related kfree calls. CC: Michael Hennerich Signed-off-by: Andi Shyti --- drivers/input/touchscreen/ad7877.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/

[PATCH 2/5] Input: ad7897 - use managed devm_input_allocate_device

2017-11-02 Thread Andi Shyti
Allocate the input device by using the devm_input_allocate_device function and remove all the related cleanup function and adjust the goto error handlings accordingly. CC: Michael Hennerich Signed-off-by: Andi Shyti --- drivers/input/touchscreen/ad7877.c | 18 ++ 1 file changed

[PATCH 3/5] Input: ad7897 - use managed devm_request_threaded_irq

2017-11-02 Thread Andi Shyti
Request the interrupt by using its related managed devm_request_threaded_irq function, remove the cleanup function calls and adjust the goto error handlings accordingly. CC: Michael Hennerich Signed-off-by: Andi Shyti --- drivers/input/touchscreen/ad7877.c | 7 ++- 1 file changed, 2

[PATCH 0/5] use managed functions for ad7897 driver

2017-11-02 Thread Andi Shyti
to reject it. Thanks, Andi [*] https://marc.info/?l=linux-input&m=150671805312148&w=2 Andi Shyti (5): Input: ad7897 - use managed devm_kzalloc Input: ad7897 - use managed devm_input_allocate_device Input: ad7897 - use managed devm_request_threaded_irq Input: ad7897 - use

[PATCH 5/5] Input: ad7897 - use separate error handling for different allocators

2017-11-02 Thread Andi Shyti
Split the error between devm_kzalloc and devm_input_allocate_device, there is no need to call the second allocator if the first has failed. Besides this doesn't provide practical advantages. CC: Michael Hennerich Signed-off-by: Andi Shyti --- drivers/input/touchscreen/ad7877.c | 3 +++ 1

Re: [PATCH v5 5/6] input: Add MediaTek PMIC keys support

2017-10-26 Thread Andi Shyti
ant you can add: Reviewed-by: Andi Shyti Andi

Re: [PATCH 01/12] Input: ad7897 - use managed devm_device_add_group

2017-10-26 Thread Andi Shyti
the relative sysfs_remove_group and goto label. > > > > CC: Michael Hennerich > > Signed-off-by: Andi Shyti > > --- > > drivers/input/touchscreen/ad7877.c | 8 ++-- > > 1 file changed, 2 insertions(+), 6 deletions(-) > > > > diff --git a/drive

Re: [PATCH v4 6/8] drivers: soc: add support for exynos SROM driver

2015-10-20 Thread Andi Shyti
Hi Pavel, > > AFAIR Fedin was talking about missing functionality, not about adding > > the contribution by himself. So he might add it or he might not. I did > > not receive any commitments from him. > > I am waiting for the driver to be integrated, because i see it's constantly > redesigned.

Re: [PATCH v5 6/8] drivers: soc: add support for exynos SROM driver

2015-10-20 Thread Andi Shyti
On Tue, Oct 20, 2015 at 02:45:37PM +0530, Pankaj Dubey wrote: > This patch adds Exynos SROM controller driver which will handle > save restore of SROM registers during S2R. > > Signed-off-by: Pankaj Dubey ... > +config EXYNOS_SROM > + bool > + depends on ARM && ARCH_EXYNOS && PM Cool,

Re: [PATCH] Input: elants_i2c - Fix sw reset delays

2018-08-27 Thread Andi Shyti
Hi Derek, next time, could you please avoid using html mails when replying to the mailing list? They are not clear. On Fri, Aug 24, 2018 at 04:07:41PM -0700, dbasehore . wrote: > > > On Fri, Aug 24, 2018 at 1:49 AM Andi Shyti wrote: > > Hi Derek, > > > > &

Re: [PATCH] input: olpc_apsp: remove unused pointer 'np'

2018-08-28 Thread Andi Shyti
Hi Colin, On Tue, Aug 28, 2018 at 03:56:48PM +0100, Colin King wrote: > From: Colin Ian King > > Pointer 'nb' is being assigned but is never used hence it is 'np' here. Other than that, Reviewed-by: Andi Shyti Andi > redundant and can be removed. > &

Re: [PATCH] Input: elants_i2c - Fix sw reset delays

2018-08-24 Thread Andi Shyti
Hi Derek, > > > On Thu, Aug 23, 2018 at 04:10:13PM -0700, Derek Basehore wrote: > > > > We only need to wait 10ms instead of 30ms before starting fastboot or > > > > sending IAP on the touchscreen. Also, instead of delaying everytime > > > > sw_reset is called, this delays 10ms in the function tha

Re: [PATCH] Input: edt-ft5x06 - fix error handling for factory mode on non-M06

2018-01-23 Thread Andi Shyti
ore we disable > interrupts/allocate memory for debug buffers. > > Fixes: fd335ab04b3f ("Input: edt-ft5x06 - add support for M09 firmware > version") > Signed-off-by: Dmitry Torokhov makes sense! Reviewed-by: Andi Shyti Andi > --- > drivers/input/touchscreen/edt-ft5x

Re: [PATCH 1/4] Input: mms114 - do not clobber interrupt trigger

2018-01-25 Thread Andi Shyti
Hi Dmitry, On Wed, Jan 24, 2018 at 11:38:01AM -0800, Dmitry Torokhov wrote: > Rely on the platform (device tree, ACPI, etc) to properly configure > interrupt trigger/polarity instead of hardcoding the falling edge. > > Signed-off-by: Dmitry Torokhov Reviewed-by: Andi Shyti Tes

Re: [PATCH 2/4] Input: mms114 - mark as direct input device

2018-01-25 Thread Andi Shyti
d error handling for input_mt_init_slots(). > > Signed-off-by: Dmitry Torokhov Reviewed-by: Andi Shyti Tested-by: Andi Shyti Thanks, Andi

Re: [PATCH 3/4] Input: mms114 - drop platform data and use generic APIs

2018-01-25 Thread Andi Shyti
mitry Torokhov yes, looks better. I'm happy you dropped the (mms114_parse_dt(data) < 0). Reviewed-by: Andi Shyti Tested-by: Andi Shyti Thanks, Andi > --- > .../bindings/input/touchscreen/mms114.txt | 29 ++-- > drivers/input/touchscreen/mms114.c

Re: [PATCH 4/4 v2] Input: mms114 - add support for mms152

2018-01-25 Thread Andi Shyti
25841 > Signed-off-by: Dmitry Torokhov also here Reviewed-by: Andi Shyti Tested-by: Andi Shyti one small nitpick: > @@ -239,14 +249,33 @@ static int mms114_get_version(struct mms114_data *data) > { > struct device *dev = &data->client->dev; > u8 buf[6]

  1   2   3   4   5   >