Am 2016-07-20 um 23:29 schrieb Dmitry Torokhov:
> On Mon, Jul 18, 2016 at 04:29:07PM +0200, Martin Kepplinger wrote:
>> Signed-off-by: Martin Kepplinger
>> ---
>> drivers/input/tablet/pegasus_notetaker.c | 19 +++
>> 1 file changed, 11 insertions(+)
Am 2016-07-20 um 23:06 schrieb Dmitry Torokhov:
> Hi Martin,
>
> On Mon, Jul 18, 2016 at 04:29:06PM +0200, Martin Kepplinger wrote:
>> Signed-off-by: Martin Kepplinger
>> ---
>> drivers/input/tablet/pegasus_notetaker.c | 26 ++
>> 1
According to the kernel's guidelines, let's directly include the
workqueue functions we use.
Signed-off-by: Martin Kepplinger
---
I don't know if it's worth it, but I should have included this according to
the guidelines :)
drivers/input/tablet/pegasus_notetaker.c | 1
- val |= BIT(idx_y + chip->ev_cfg_chan_shift);
>>> - val |= BIT(idx_z + chip->ev_cfg_chan_shift);
>>> + val |= BIT(idx_x + MMA8452_FF_MT_CHAN_SHIFT);
>>> + val |= BIT(idx_y + MMA8452_FF_MT_CHAN_SHIFT);
>>> + val |= BIT(idx_z + MMA8452_FF_MT_CHAN_SHIFT);
>>> val &= ~MMA8452_FF_MT_CFG_OAE;
>>> } else {
>>> - val &= ~BIT(idx_x + chip->ev_cfg_chan_shift);
>>> - val &= ~BIT(idx_y + chip->ev_cfg_chan_shift);
>>> - val &= ~BIT(idx_z + chip->ev_cfg_chan_shift);
>>> + val &= ~BIT(idx_x + MMA8452_FF_MT_CHAN_SHIFT);
>>> + val &= ~BIT(idx_y + MMA8452_FF_MT_CHAN_SHIFT);
>>> + val &= ~BIT(idx_z + MMA8452_FF_MT_CHAN_SHIFT);
>>> val |= MMA8452_FF_MT_CFG_OAE;
>>> }
>>>
>>> - return mma8452_change_config(data, chip->ev_cfg, val);
>>> + return mma8452_change_config(data, MMA8452_FF_MT_CFG, val);
>>> }
>>>
>>> static int mma8452_set_hp_filter_frequency(struct mma8452_data
>*data,
>>> @@ -740,6 +733,39 @@ static int mma8452_write_raw(struct iio_dev
>*indio_dev,
>>> return ret;
>>> }
>>>
>>> +static int mma8452_get_event_regs(const struct iio_chan_spec *chan,
>>> + enum iio_event_direction dir,
>>> + struct mma8452_event_regs *ev_regs
>>> + )
>>> +{
>>> + if (!chan)
>>> + return -EINVAL;
>>> + switch (chan->type) {
>>> + case IIO_ACCEL:
>>> + switch (dir) {
>>> + case IIO_EV_DIR_FALLING:
>>> + ev_regs->ev_cfg = MMA8452_FF_MT_CFG;
>>> + ev_regs->ev_src = MMA8452_FF_MT_SRC;
>>> + ev_regs->ev_ths = MMA8452_FF_MT_THS;
>>> + ev_regs->ev_ths_mask = MMA8452_FF_MT_THS_MASK;
>>> + ev_regs->ev_count = MMA8452_FF_MT_COUNT;
>>> + break;
>>> + case IIO_EV_DIR_RISING:
>>> + ev_regs->ev_cfg = MMA8452_TRANSIENT_CFG;
>>> + ev_regs->ev_src = MMA8452_TRANSIENT_SRC;
>>> + ev_regs->ev_ths = MMA8452_TRANSIENT_THS;
>>
>> ev_ths_mask is not set here
>>
>>> + ev_regs->ev_count = MMA8452_TRANSIENT_COUNT;
>>> + break;
>>> + default:
>>> + return -EINVAL;
>>> + }
>>> + break;
>>> + default:
>>> + return -EINVAL;
>>> + }
>>> + return 0;
>> could replace 'breaks' with return 0 to save some lines and simplify
>> control flow
>>
>>> +}
>>> +
>>> static int mma8452_read_thresh(struct iio_dev *indio_dev,
>>>const struct iio_chan_spec *chan,
>>>enum iio_event_type type,
>>> @@ -749,21 +775,23 @@ static int mma8452_read_thresh(struct iio_dev
>*indio_dev,
>>> {
>>> struct mma8452_data *data = iio_priv(indio_dev);
>>> int ret, us, power_mode;
>>> + struct mma8452_event_regs ev_regs;
>>>
>>> + ret = mma8452_get_event_regs(chan, dir, &ev_regs);
>>> + if (ret)
>>> + return ret;
>>> switch (info) {
>>> case IIO_EV_INFO_VALUE:
>>> - ret = i2c_smbus_read_byte_data(data->client,
>>> - data->chip_info->ev_ths);
>>> + ret = i2c_smbus_read_byte_data(data->client, ev_regs.ev_ths);
>>> if (ret < 0)
>>> return ret;
>>>
>>> - *val = ret & data->chip_info->ev_ths_mask;
>>> + *val = ret & ev_regs.ev_ths_mask;
>>>
>>> return IIO_VAL_INT;
>>>
>>> case IIO_EV_INFO_PERIOD:
>>> - ret = i2c_smbus_read_byte_data(data->client,
>>> - data->chip_info->ev_count);
>>> + ret = i2c_smbus_read_byte_data(data->client, ev_regs.ev_count);
>>> if (ret < 0)
>>> return ret;
>>>
>>> @@ -809,14 +837,18 @@ static int mma8452_write_thresh(struct iio_dev
>*indio_dev,
>>> {
>>> struct mma8452_data *data = iio_priv(indio_dev);
>>> int ret, reg, steps;
>>> + struct mma8452_event_regs ev_regs;
>>> +
>>> + ret = mma8452_get_event_regs(chan, dir, &ev_regs);
>>> + if (ret)
>>> + return ret;
>>>
>>> switch (info) {
>>> case IIO_EV_INFO_VALUE:
>>> - if (val < 0 || val > MMA8452_TRANSIENT_THS_MASK)
>>> + if (val < 0 || val > ev_regs.ev_ths_mask)
>>> return -EINVAL;
>>>
>>> - return mma8452_change_config(data, data->chip_info->ev_ths,
>>> -val);
>>> + return mma8452_change_config(data, ev_regs.ev_ths, val);
>>>
>>> case IIO_EV_INFO_PERIOD:
>>> ret = mma8452_get_power_mode(data);
>>> @@ -830,8 +862,7 @@ static int mma8452_write_thresh(struct iio_dev
>*indio_dev,
>>> if (steps < 0 || steps > 0xff)
>>> return -EINVAL;
>>>
>>> - return mma8452_change_config(data, data->chip_info->ev_count,
>>> -steps);
>>> + return mma8452_change_config(data, ev_regs.ev_count, steps);
>>>
>>> case IIO_EV_INFO_HIGH_PASS_FILTER_3DB:
>>> reg = i2c_smbus_read_byte_data(data->client,
>>> @@ -861,23 +892,23 @@ static int mma8452_read_event_config(struct
>iio_dev *indio_dev,
>>> enum iio_event_direction dir)
>>> {
>>> struct mma8452_data *data = iio_priv(indio_dev);
>>> - const struct mma_chip_info *chip = data->chip_info;
>>> int ret;
>>>
>>> - switch (dir) {
>>> - case IIO_EV_DIR_FALLING:
>>> - return mma8452_freefall_mode_enabled(data);
>>> - case IIO_EV_DIR_RISING:
>>> - if (mma8452_freefall_mode_enabled(data))
>>> - return 0;
>>> + switch (chan->type) {
>>> + case IIO_ACCEL:
>> this adds a check for chan-type == IIO_ACCESS, so strictly this would
>be
>> an unrelated change...
>>
>>> + switch (dir) {
>>> + case IIO_EV_DIR_FALLING:
>>> + return mma8452_freefall_mode_enabled(data);
>>> + case IIO_EV_DIR_RISING:
>>> + ret = i2c_smbus_read_byte_data(data->client,
>MMA8452_TRANSIENT_CFG);
>>> + if (ret < 0)
>>> + return ret;
>>>
>>> - ret = i2c_smbus_read_byte_data(data->client,
>>> - data->chip_info->ev_cfg);
>>> - if (ret < 0)
>>> - return ret;
>>> + return !!(ret &
>>> MMA8452_TRANSIENT_CFG_CHAN(chan->scan_index));
>>>
>>> - return !!(ret & BIT(chan->scan_index +
>>> - chip->ev_cfg_chan_shift));
>>> + default:
>>> + return -EINVAL;
>>> + }
>>> default:
>>> return -EINVAL;
>>> }
>>> @@ -890,39 +921,33 @@ static int mma8452_write_event_config(struct
>iio_dev *indio_dev,
>>> int state)
>>> {
>>> struct mma8452_data *data = iio_priv(indio_dev);
>>> - const struct mma_chip_info *chip = data->chip_info;
>>> int val, ret;
>>>
>>> ret = mma8452_set_runtime_pm_state(data->client, state);
>>> if (ret)
>>> retu
--
Martin Kepplinger
http://martinkepplinger.com
sent from mobile
If INPUT_PROP_DIRECT is set, userspace doesn't have to fall back to old
ways of identifying touchscreen devices. Let's add it.
Signed-off-by: Martin Kepplinger
---
drivers/input/touchscreen/ar1021_i2c.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/input/touchscreen/ar
On 2017-11-11 01:33, Jonathan Cameron wrote:
> On Mon, 6 Nov 2017 08:19:58 +0100
> Martin Kepplinger wrote:
>
>> This adds the power_mode sysfs interface to the device as documented in
>> sysfs-bus-iio.
>>
>> ---
>>
>> Note that I explicitely don
Am 14.11.2017 05:36 schrieb harinath Nampally:
> This patch adds following related changes:
> - defines pulse event related registers
> - enables and handles single pulse interrupt for fxls8471
> - handles IIO_EV_DIR_EITHER in read/write callbacks (because
> event direction for pulse is either
lease correct me if I am wrong.
Thanks,
Harinath
You're right. I should've looked more closely. oversampling is there and
seems to
work. No need to blow up this driver or let alone extend an ABI now.
Let's drop
this patch.
thanks
martin
On S
A few years ago the FSF moved and "59 Temple Place" is wrong. Having this
still in our source files feels old and unmaintained.
As https://www.gnu.org/licenses/gpl-howto.html suggests, we replace the
postal address with "<http://www.gnu.org/licenses/>".
Signed
ess with "<http://www.gnu.org/licenses/>".
Signed-off-by: Martin Kepplinger
---
crypto/ablk_helper.c | 4 +---
crypto/camellia_generic.c | 3 +--
crypto/cast5_generic.c| 3 +--
crypto/cast6_generic.c| 3 +--
crypto/simd.c | 4 +---
crypto/twofish_common.c | 5
ess with "<http://www.gnu.org/licenses/>".
Signed-off-by: Martin Kepplinger
---
init/noinitramfs.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/init/noinitramfs.c b/init/noinitramfs.c
index 267739d85179..3ee9e3dbfbc4 100644
--- a/init/noinitramfs.c
+++ b/in
ess with "<http://www.gnu.org/licenses/>" in the lib directory.
Signed-off-by: Martin Kepplinger
---
This is an attempt to sneak this in for the lib subdirectory in one go.
If you would rather have the changes individually go to the relevant
people, please just say so.
thanks
ess with "<http://www.gnu.org/licenses/>" in the mm directory.
Signed-off-by: Martin Kepplinger
---
mm/kmemleak-test.c | 3 +--
mm/kmemleak.c | 3 +--
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/mm/kmemleak-test.c b/mm/kmemleak-test.c
index dd3c23a801b1..9a13ad
ess with "<http://www.gnu.org/licenses/>" in the samples
directory.
Signed-off-by: Martin Kepplinger
---
samples/auxdisplay/cfag12864b-example.c | 3 +--
samples/configfs/configfs_sample.c | 6 ++
samples/connector/cn_test.c | 3 +--
samples/connector/ucon.c
Am 14.11.2017 10:49 schrieb Michal Hocko:
On Tue 14-11-17 10:44:38, Martin Kepplinger wrote:
A few years ago the FSF moved and "59 Temple Place" is wrong. Having
this
still in our source files feels old and unmaintained.
Let's take the license statement serious and not con
ess with "<http://www.gnu.org/licenses/>" in the scripts
directory.
Signed-off-by: Martin Kepplinger
---
scripts/dtc/checks.c| 4 +---
scripts/dtc/data.c | 4 +---
scripts/dtc/dtc-lexer.l | 4 +---
scripts/dtc/dtc-lexer.lex.c_shipped | 4
ess with "<http://www.gnu.org/licenses/>" in the security
directory.
Signed-off-by: Martin Kepplinger
---
security/selinux/include/netlabel.h | 3 +--
security/selinux/netlabel.c | 3 +--
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/security/selinux/include
Am 14.11.2017 11:02 schrieb Michal Hocko:
On Tue 14-11-17 10:55:35, Martin Kepplinger wrote:
Am 14.11.2017 10:49 schrieb Michal Hocko:
> On Tue 14-11-17 10:44:38, Martin Kepplinger wrote:
> > A few years ago the FSF moved and "59 Temple Place" is wrong. Having
> > thi
y
Makes sense to me.
Acked-by: Martin Kepplinger
Hey Harinath,
I think it'd be great to have the "power_mode" iio ABI interface
for mma8452 too, and I just found an old patch pf mine for this.
If you say you could test it and check for correct API usage and
ABI provisioning in
On 2017-11-05 19:00, Harinath Nampally wrote:
> Rename time step look up struct to generic name
> as the values in the look table are same for all
> the other events like pulse, transient etc.
>
> Signed-off-by: Harinath Nampally
Acked-by: Martin Kepplinger
This adds the power_mode sysfs interface to the device as documented in
sysfs-bus-iio.
---
Note that I explicitely don't sign off on this.
This is a starting point for anybody who can test it and check for correct
API usage, and ABI correctness, as documented in
Documentation/ABI/testing/sys-bu
Am 2015-10-05 um 12:30 schrieb joeyli:
> Hi Darren,
>
> On Sat, Oct 03, 2015 at 10:20:52AM -0700, Darren Hart wrote:
>> On Tue, Sep 29, 2015 at 05:50:32PM +0800, joeyli wrote:
>>> Hi Martin,
>>>
>>> On Tue, Sep 29, 2015 at 08:46:38AM +0200, Martin Ke
;s
website:
http://cache.freescale.com/files/sensors/doc/data_sheet/MMA8652FC.pdf
http://cache.freescale.com/files/sensors/doc/data_sheet/MMA8653FC.pdf
Signed-off-by: Martin Kepplinger
Signed-off-by: Christoph Muellner
---
.../devicetree/bindings/iio/accel/mma8452.txt | 4 +-
drivers/iio/acc
Version 6 of the mma8452 driver improvements. This is rebased on the current
-next tree because of cleanup changes in the meantime. Also, the patches are
slightly more cleaned up (adding the DT bindings document in the right patch).
Here we go:
These changes add support for motion interrupts and
emoves the driver from the trivial-devices list.
Signed-off-by: Martin Kepplinger
Signed-off-by: Christoph Muellner
---
.../devicetree/bindings/i2c/trivial-devices.txt| 1 -
.../devicetree/bindings/iio/accel/mma8452.txt | 22 +
drivers/iio/accel/Kconfig
This adds a struct mma_chip_info to hold data that will remain specific to
the chip in use. It is provided during probe() and linked in
struct of_device_id.
Also this suggests that the driver is called "mma8452" and now handles the
MMA8452Q device, but is not limited to it.
Signed-off-
Signed-off-by: Martin Kepplinger
Signed-off-by: Christoph Muellner
---
drivers/iio/accel/mma8452.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/iio/accel/mma8452.c b/drivers/iio/accel/mma8452.c
index 59b4455..15d50c9 100644
--- a/drivers/iio/accel/mma8452.c
+++ b/drivers/iio
This doesn't actually change anything since the core names the sysfs folder
for the iio event attributes "events" anyways. It only leaves the job to the
core.
Signed-off-by: Martin Kepplinger
Signed-off-by: Christoph Muellner
---
drivers/iio/accel/mma8452.c | 1 -
1 file chan
This adds the freefall / motion interrupt source definitions to the driver.
It is used in this series' next patch, for chips that don't support the
transient interrupt source.
Signed-off-by: Martin Kepplinger
Signed-off-by: Christoph Muellner
---
drivers/iio/accel/mma8
dts.
If possibly in the future more interrupt sources might be available,
additional DT properties will be added.
Of course, this also falls back to assuming INT1, so for existing users
nothing will break. The new functionality is described in the bindings doc.
Signed-off-by: Martin Kepplinger
s doc.
Signed-off-by: Martin Kepplinger
---
changelog:
v2: don't warn but normally handle if both pins are described in dts
thanks Mark Rutland
v1: initial post
.../devicetree/bindings/iio/accel/mma8452.txt | 7 +++
drivers/iio/accel/mma8452.c
s doc.
Signed-off-by: Martin Kepplinger
---
changelog:
v3: correctly assign irq if both pins are described in DT. thanks again
v2: don't warn but normally handle if both pins are described in dts
thanks Mark Rutland
v1: initial post
.../devicetree/bindings/iio/accel/mma8452.txt
Am 2015-10-14 um 17:12 schrieb Lars-Peter Clausen:
> On 10/14/2015 03:15 PM, Martin Kepplinger wrote:
> [...]
>> +if (irq1 > 0)
>> +client->irq = irq1;
>
> You must not overwrite client->irq, that field is manged by
ting users
nothing will break. The new functionality is described in the bindings doc.
Signed-off-by: Martin Kepplinger
---
changelog:
v4: use irq that matches client->irq, backwards compatible
v3: correctly assign irq if both pins are described in DT
v2: don't warn but normally handle if
It is often overlooked that sign_extend32(), despite it's name, is safe
to use for 16 and 8 bit types aswell. This should help that sign extension
isn't done manually some other way.
Signed-off-by: Martin Kepplinger
---
include/linux/bitops.h | 2 ++
1 file changed, 2 insertions(+)
Months back, this was discussed, see https://lkml.org/lkml/2015/1/18/289
The result was the 64-bit version being "likely fine", "valuable" and
"correct". The discussion only fell asleep but since there are possible
users, let's add it.
Signed-off-by: Martin Kepp
PATCH 1/2 improves the doc of sign_extend32()
This should help to avoid different manual approaches to sign extension
PATCH 2/2 adds sign_extend64()
An informal example of what could follow in
arch/sh/kernel/traps_64.c after PATCH 2/2:
@@ -101,7 +102,7 @@ static int generate_and_check_address(
PATCH 1 improves the doc of sign_extend32()
It should help to avoid different manual approaches to sign extension
PATCH 2 adds sign_extend64()
PTACH 3-5 are (untested) example users of sign_extend64()
changelog
-
v2: fix a typo and add examples for sign_extend64()
--
To unsubscribe from
Signed-off-by: Martin Kepplinger
---
arch/x86/kernel/cpu/perf_event_msr.c | 7 +++
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/arch/x86/kernel/cpu/perf_event_msr.c
b/arch/x86/kernel/cpu/perf_event_msr.c
index f32ac13..ec863b9 100644
--- a/arch/x86/kernel/cpu
It is often overlooked that sign_extend32(), despite it's name, is safe
to use for 16 and 8 bit types aswell. This should help that sign extension
isn't done manually some other way.
Signed-off-by: Martin Kepplinger
---
include/linux/bitops.h | 2 ++
1 file changed, 2 insertions(+)
Signed-off-by: Martin Kepplinger
---
arch/sh/kernel/cpu/sh5/unwind.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/sh/kernel/cpu/sh5/unwind.c b/arch/sh/kernel/cpu/sh5/unwind.c
index 10aed41..3a4fed4 100644
--- a/arch/sh/kernel/cpu/sh5/unwind.c
+++ b/arch/sh/kernel/cpu
Signed-off-by: Martin Kepplinger
---
arch/sh/kernel/traps_64.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/sh/kernel/traps_64.c b/arch/sh/kernel/traps_64.c
index 112ea11..d208c27 100644
--- a/arch/sh/kernel/traps_64.c
+++ b/arch/sh/kernel/traps_64.c
@@ -101,7 +101,7
Months back, this was discussed, see https://lkml.org/lkml/2015/1/18/289
The result was the 64-bit version being "likely fine", "valuable" and
"correct". The discussion only fell asleep but since there are possible
users, let's add it.
Signed-off-by: Martin Kepp
Am 2015-10-20 um 13:03 schrieb Martin Kepplinger:
> Am 2015-10-15 um 15:10 schrieb Martin Kepplinger:
>> This change is important in order for everyone to be easily able to use the
>> driver for one of the supported accelerometer chips!
>>
>> Until now, the driver bl
Am 2015-10-15 um 15:10 schrieb Martin Kepplinger:
> This change is important in order for everyone to be easily able to use the
> driver for one of the supported accelerometer chips!
>
> Until now, the driver blindly assumed that the INT1 interrupt line is wired
> on a user
Am 25. Oktober 2015 12:05:05 MEZ, schrieb Jonathan Cameron :
>On 22/10/15 19:22, Rob Herring wrote:
>> On Thu, Oct 15, 2015 at 8:10 AM, Martin Kepplinger
> wrote:
>>> This change is important in order for everyone to be easily able to
>use the
>>> driver for o
On 2018-07-21 21:09, dev-harsh1998 wrote:
> WARNING: Symbolic permissions 'S_IRUGO' are not preferred. Consider using
> octal permissions '0444'.
> +static DEVICE_ATTR(selftest, S_IRUGO, tsc200x_selftest_show, NULL);
>
> Signed-off-by: dev-harsh1998
Acked-by: Martin Kepplinger
On 2017-05-08 18:11, Rob Herring wrote:
> On Tue, May 02, 2017 at 05:00:59PM +0200, Martin Kepplinger wrote:
>> The datasheet and application note does not mention an allowed range for
>> the M09_REGISTER_THRESHOLD parameter. One of our customers needs to set
>> lower values
arkus Elfring
Acked-by: Martin Kepplinger
> ---
> drivers/input/touchscreen/sur40.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/drivers/input/touchscreen/sur40.c
> b/drivers/input/touchscreen/sur40.c
> index f16f8358c70a..c7a0a92b2044 100644
> --- a/drivers
arkus Elfring
Acked-by: Martin Kepplinger
> ---
> drivers/input/touchscreen/edt-ft5x06.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/drivers/input/touchscreen/edt-ft5x06.c
> b/drivers/input/touchscreen/edt-ft5x06.c
> index c53a3d7239
t; determination a bit safer according to the Linux coding style convention.
>
> This issue was detected by using the Coccinelle software.
>
> Signed-off-by: Markus Elfring
Acked-by: Martin Kepplinger
> ---
> drivers/input/touchscreen/sur40.c | 2 +-
> 1 file changed, 1 insertion(
According to the old project site, https://sourceforge.net/projects/fuse/
the project has moved to https://github.com/libfuse/ so we update the
link to point to the latest libfuse release.
Signed-off-by: Martin Kepplinger
---
Documentation/process/changes.rst | 2 +-
1 file changed, 1 insertion
Add kvmconfig, xenconfig and tinyconfig to the list of alternative
configuration commands. Descriptions are directly taken from the Makefile.
Signed-off-by: Martin Kepplinger
---
Documentation/admin-guide/README.rst | 7 +++
1 file changed, 7 insertions(+)
diff --git a/Documentation/admin
This fixes a little then / them confusion.
Signed-off-by: Martin Kepplinger
---
Documentation/process/magic-number.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/process/magic-number.rst
b/Documentation/process/magic-number.rst
index c74199f60c6c
rupted erasures in
EBA")
Signed-off-by: Richard Weinberger
Signed-off-by: Martin Kepplinger
---
Richard, although this fixes a major slowdown regression in -stable, do you
consider this "stable" too?
This applies and is tested only for the 4.14 stable tree. It seems to be
eq
On 06.12.18 00:03, Peter Hutterer wrote:
ABS_RESERVED was added in d9ca1c990a7 and accidentally removed as part of
ffe0e7cf290f5c9 when the high-resolution scrolling code was removed.
Signed-off-by: Peter Hutterer
Reviewed-by: Martin Kepplinger
smime.p7s
Description: S/MIME cryptographic
On 02.12.18 16:02, Richard Weinberger wrote:
Sasha,
Am Sonntag, 2. Dezember 2018, 15:35:43 CET schrieb Sasha Levin:
On Sun, Dec 02, 2018 at 11:50:33AM +, Sudip Mukherjee wrote:
Now queued up for 4.14.y, thanks.
can you *please* slow a little down?
True. It will really help if you can h
ix by not returning IRQ_NONE if DRDY is set.
>
> Fixes: 605f72de137a ("iio: accel: mma8452: improvements to handle
> multiple events")
>
> Signed-off-by: Leonard Crestez
At least this does no harm to events. So if this solves your problem:
Acked-by: Martin Kep
should be fine now, this initializes pol_mask just to prevent
failure.
Signed-off-by: Martin Kepplinger
---
drivers/iio/accel/mma9551_core.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/iio/accel/mma9551_core.c b/drivers/iio/accel/mma9551_core.c
index c3
fore any communication with mma8451,
> this patch adds optional vdd/vddio regulator operation support.
>
> Signed-off-by: Anson Huang
Acked-by: Martin Kepplinger
ed by a GPIO fixed regulator, need to make sure the
>> regulators are enabled before any communication with mma8451, this
>> patch adds vdd/vddio regulator operation support.
>>
>> Signed-off-by: Anson Huang
>> Acked-by: Martin Kepplinger
>
> I'm fine with t
any communication with mma8451, this
> patch adds vdd/vddio regulator operation support.
>
> Signed-off-by: Anson Huang
> Acked-by: Martin Kepplinger
> ---
> ChangeLog Since V6:
> - separate the error handling of regulators get to make code easy to read.
This fixes some double-word and trivial typos in the ucan driver comments.
Signed-off-by: Martin Kepplinger
---
hi guys,
The Seal looks very nice. Since I'm doing CAN work right now, I could totally
use one of these instead of old gear from PEAK.
I hope you're doing fine. Be
This is how userspace checks for touchscreen devices most reliably.
Signed-off-by: Martin Kepplinger
---
drivers/input/touchscreen/st1232.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/input/touchscreen/st1232.c
b/drivers/input/touchscreen/st1232.c
index d5dfa4053bbf
On 9/18/18 7:22 AM, Peter Hutterer wrote:
These values are inclusive, so a range of 1 requires min == max.
Signed-off-by: Peter Hutterer
true, nice catch.
Reviewed-by: Martin Kepplinger
smime.p7s
Description: S/MIME cryptographic signature
the
> device.
>
> Signed-off-by: Guido Günther
Reviewed-by: Martin Kepplinger
thank you,
martin
> ---
> arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/arch/arm64/boot/dts/freescale/imx
Signed-off-by: Martin Kepplinger
---
Despite it's name, sign_extend32() is safe to use for 8 and 16 bit types too.
drivers/input/tablet/gtco.c | 11 +++
1 file changed, 3 insertions(+), 8 deletions(-)
diff --git a/drivers/input/tablet/gtco.c b/drivers/input/tablet/gtco.c
index 85
Signed-off-by: Martin Kepplinger
---
Despite it's name, sign_extend32() is safe to use for 8 bit types
too. (see https://lkml.org/lkml/2015/1/18/289 if interested)
drivers/rtc/rtc-x1205.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/rtc/rtc-x1205.c b/dr
Signed-off-by: Martin Kepplinger
---
drivers/media/dvb-frontends/stb0899_algo.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/media/dvb-frontends/stb0899_algo.c
b/drivers/media/dvb-frontends/stb0899_algo.c
index 93596e0..7bbcfde 100644
--- a/drivers/media/dvb
Signed-off-by: Martin Kepplinger
---
Sorry. I should have at least built my change. This is the correct version.
drivers/media/dvb-frontends/stb0899_algo.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/media/dvb-frontends/stb0899_algo.c
b/drivers/media/dvb
These are 4 of probably many examples of what could be changed if the proposed
sign_extend8, 16 and 64 are added to bitops.h, now as real patches.
Again, keep in mind, only take them if "PATCH v2 add sign_exted8, 16 and 64"
is included first.
--
To unsubscribe from this list: send the line "unsub
Signed-off-by: Martin Kepplinger
---
drivers/rtc/rtc-x1205.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/rtc/rtc-x1205.c b/drivers/rtc/rtc-x1205.c
index b1de58e..3ec0b95 100644
--- a/drivers/rtc/rtc-x1205.c
+++ b/drivers/rtc/rtc-x1205.c
@@ -22,6 +22,7
Signed-off-by: Martin Kepplinger
---
drivers/input/tablet/gtco.c | 11 +++
1 file changed, 3 insertions(+), 8 deletions(-)
diff --git a/drivers/input/tablet/gtco.c b/drivers/input/tablet/gtco.c
index 8580456..25b3834 100644
--- a/drivers/input/tablet/gtco.c
+++ b/drivers/input/tablet
Signed-off-by: Martin Kepplinger
Reviewed-by: Guenter Roeck
---
drivers/hwmon/jc42.c | 7 ++-
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/drivers/hwmon/jc42.c b/drivers/hwmon/jc42.c
index 388f8bc..d0582a3 100644
--- a/drivers/hwmon/jc42.c
+++ b/drivers/hwmon/jc42.c
Signed-off-by: Martin Kepplinger
---
drivers/media/dvb-frontends/stb0899_algo.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/media/dvb-frontends/stb0899_algo.c
b/drivers/media/dvb-frontends/stb0899_algo.c
index 93596e0..7bbcfde 100644
--- a/drivers/media/dvb
Am 2014-12-16 um 08:17 schrieb Martin Kepplinger:
> Am 2014-12-15 um 22:29 schrieb Guenter Roeck:
>> On Mon, Dec 15, 2014 at 05:18:34PM +0100, Martin Kepplinger wrote:
>>> ---
>>
>> Some description would be nice. Also, please consider adding
>> relevant subsys
This adds helper functions for sign-extending signed values of any lower
(hardware-)given size to s8, s16 or s64 respectively, just like sign_extend32()
for s32.
Signed-off-by: Martin Kepplinger
Suggested-by: Christoph Muellner
---
include/linux/bitops.h | 33
Example change, using new sign_extend functions.
---
drivers/hwmon/jc42.c | 7 ++-
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/drivers/hwmon/jc42.c b/drivers/hwmon/jc42.c
index 388f8bc..d0582a3 100644
--- a/drivers/hwmon/jc42.c
+++ b/drivers/hwmon/jc42.c
@@ -31,6 +31,7 @@
#i
Example change, using new sign_extend functions.
---
drivers/rtc/rtc-x1205.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/rtc/rtc-x1205.c b/drivers/rtc/rtc-x1205.c
index b1de58e..3ec0b95 100644
--- a/drivers/rtc/rtc-x1205.c
+++ b/drivers/rtc/rtc-x1205.c
@@ -22,6
Example change, using new sign_extend functions.
---
drivers/input/tablet/gtco.c | 11 +++
1 file changed, 3 insertions(+), 8 deletions(-)
diff --git a/drivers/input/tablet/gtco.c b/drivers/input/tablet/gtco.c
index 8580456..25b3834 100644
--- a/drivers/input/tablet/gtco.c
+++ b/drivers/i
Example change, using new sign_extend functions.
---
drivers/media/dvb-frontends/stb0899_algo.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/media/dvb-frontends/stb0899_algo.c
b/drivers/media/dvb-frontends/stb0899_algo.c
index 93596e0..7bbcfde 100644
--- a/driv
Am 2015-01-11 um 17:52 schrieb Guenter Roeck:
> On 01/11/2015 02:34 AM, Martin Kepplinger wrote:
>> Am 2014-12-16 um 08:17 schrieb Martin Kepplinger:
>>> Am 2014-12-15 um 22:29 schrieb Guenter Roeck:
>>>> On Mon, Dec 15, 2014 at 05:18:34PM +0100, Martin Kepplinger w
From: Martin Kepplinger
The MMA8653FC is a low-power, three-axis, capacitive micromachined
accelerometer with 10 bits of resolution with flexible user-programmable
options.
Embedded interrupt functions enable overall power savings, by relieving the
host processor from continuously polling data
Am 2015-03-19 um 17:03 schrieb Mark Rutland:
>> diff --git a/Documentation/devicetree/bindings/misc/fsl,mma8653fc.txt
>> b/Documentation/devicetree/bindings/misc/fsl,mma8653fc.txt
>> new file mode 100644
>> index 000..3921acb
>> --- /dev/null
>> +++ b/Documentation/devicetree/bindings/misc/fsl
Am 2015-03-19 um 11:22 schrieb Bastien Nocera:
> On Wed, 2015-03-18 at 19:28 +0100, Martin Kepplinger wrote:
>> Am 2015-03-18 um 19:05 schrieb Bastien Nocera:
>>> On Wed, 2015-03-18 at 19:02 +0100, Martin Kepplinger wrote:
>>>> Am 2015-03-18 um 17:59 schrieb Bastien
Am 2015-03-20 um 12:31 schrieb Varka Bhadram:
> On 03/20/2015 04:50 PM, Martin Kepplinger wrote:
>> From: Martin Kepplinger
>>
( ...)
>> +return 0;
>> +
>> + err_free_irq:
>> +if (mma->irq)
>> +free_irq(mma->irq, mma);
>>
Am 2015-03-20 um 13:27 schrieb Benjamin Tissoires:
> On Fri, Mar 20, 2015 at 7:26 AM, Martin Kepplinger
> wrote:
>> Am 2015-03-19 um 11:22 schrieb Bastien Nocera:
>>> On Wed, 2015-03-18 at 19:28 +0100, Martin Kepplinger wrote:
>>>> Am 2015-03-18 um 19:05 schrieb B
From: Martin Kepplinger
The MMA8653FC is a low-power, three-axis, capacitive micromachined
accelerometer with 10 bits of resolution with flexible user-programmable
options.
Embedded interrupt functions enable overall power savings, by relieving the
host processor from continuously polling data
From: Martin Kepplinger
The MMA8653FC is a low-power, three-axis, capacitive micromachined
accelerometer with 10 bits of resolution with flexible user-programmable
options.
Embedded interrupt functions enable overall power savings, by relieving the
host processor from continuously polling data
From: Martin Kepplinger
The MMA8653FC is a low-power, three-axis, capacitive micromachined
accelerometer with 10 bits of resolution with flexible user-programmable
options.
Embedded interrupt functions enable overall power savings, by relieving the
host processor from continuously polling data
From: Martin Kepplinger
The MMA8653FC is a low-power, three-axis, capacitive micromachined
accelerometer with 10 bits of resolution with flexible user-programmable
options.
Embedded interrupt functions enable overall power savings, by relieving the
host processor from continuously polling data
Am 31.03.2015 14:31 schrieb Tom Van Braeckel:
Err, upon further inspection, I think that this was a false positive.
Btrfs relies on the initial value of the private_data member of a file
being NULL in the regular ioctl operation handler for
BTRFS_IOC_TRANS_START but it does not use the miscdevic
Since we have deviceX, we don't need accelX. This has no users as of now, so
correcting this is no problem.
Signed-off-by: Martin Kepplinger
---
That's really just a question now. If I'm wrong, sorry for the noise.
Documentation/ABI/testing/sysfs-bus-iio | 2 +-
1 file chang
Am 2015-06-10 um 22:49 schrieb Jonathan Cameron:
> On 09/06/15 17:03, Martin Kepplinger wrote:
>> hi
>>
>> Is the in_accel_thresh_rising_value (or falling) threshold value signed
>> or unsigned?
>>
>> In other words: Is a RISING event fired on an absolute
Signed-off-by: Martin Kepplinger
---
These just look odd when out of date. The proper fix would probably be
to create a Documentation/ABI/testing/sysfs-platform-acer-wmi file and
remove the deprecated ones.
drivers/platform/x86/acer-wmi.c | 6 +++---
1 file changed, 3 insertions(+), 3
hi
Is the in_accel_thresh_rising_value (or falling) threshold value signed
or unsigned?
In other words: Is a RISING event fired on an absolute growing value in
the positive range, and a FALLING event on an absolute growing value in
the negative acceleration range (< 0g)?
Or is a RISING event fir
Martin Kepplinger | Entwicklung Software
GINZINGER ELECTRONIC SYSTEMS GMBH
Tel.: +43 7723 5422 157
Mail: martin.kepplin...@ginzinger.com
Web: www.ginzinger.com
On 29.01.19 11:23, Martin Kepplinger wrote:
From: Martin Kepplinger
Use devm_gpiod_get_optional() and
On 05.02.19 16:22, Fabio Estevam wrote:
On Tue, Feb 5, 2019 at 11:00 AM Miquel Raynal wrote:
Hi Martin,
Martin Kepplinger wrote on Tue, 29 Jan 2019
16:37:00 +0100:
From: Martin Kepplinger
Disable BCH soft reset according to MX23 erratum #2847 ("BCH soft
reset may cause bus master
iences this may cause."
Fixes: 6f2a6a52560a ("mtd: nand: gpmi: reset BCH earlier, too, to avoid
NAND startup problems")
Cc: sta...@vger.kernel.org
Signed-off-by: Manfred Schlaegl
Signed-off-by: Martin Kepplinger
Reviewed-by: Miquel Raynal
Reviewed-by: Fabio Estevam
---
revisi
: Martin Kepplinger
Signed-off-by: Manfred Schlaegl
---
drivers/video/fbdev/Kconfig | 2 +-
drivers/video/fbdev/mxsfb.c | 12
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/drivers/video/fbdev/Kconfig b/drivers/video/fbdev/Kconfig
index 58a9590c9db6..0e7ab29c9c70
1 - 100 of 731 matches
Mail list logo