mmc_get_cd now always
returns 1 which causes probing commands being sent to the mmc card.
The expected behaviour of commit 6f726f495f2d should be reachable by setting
broken_cd instead.
Signed-off-by: Michael Thalmeier
---
drivers/mmc/host/mxs-mmc.c | 3 +--
1 file changed, 1 insertion(+), 2
mmc_get_cd now always
returns 1 which causes probing commands being sent to the mmc card.
The expected behaviour of commit 6f726f495f2d should be reachable by setting
broken_cd instead.
Signed-off-by: Michael Thalmeier
---
drivers/mmc/host/mxs-mmc.c | 3 +--
1 file changed, 1 insertion(+), 2
On Thu, May 18, 2017 at 05:56:31PM +0200, Alexandre Belloni wrote:
> Hi,
>
> On 18/05/2017 at 16:45:21 +0200, Michael Thalmeier wrote:
> > To detect when the backup power domain has lost power a software defined bit
> > is set in one of the general purpose persistent registe
On Thu, May 18, 2017 at 05:56:31PM +0200, Alexandre Belloni wrote:
> Hi,
>
> On 18/05/2017 at 16:45:21 +0200, Michael Thalmeier wrote:
> > To detect when the backup power domain has lost power a software defined bit
> > is set in one of the general purpose persistent registe
Instead of printing errors after mxs_i2c_pio_wait_xfer_end returns with
an error code just print a debug message.
NAKs and timeouts can occur in this situation normally, so do not treat
them as errors.
Signed-off-by: Michael Thalmeier <michael.thalme...@hale.at>
---
drivers/i2c/busses/i2c
Instead of printing errors after mxs_i2c_pio_wait_xfer_end returns with
an error code just print a debug message.
NAKs and timeouts can occur in this situation normally, so do not treat
them as errors.
Signed-off-by: Michael Thalmeier
---
drivers/i2c/busses/i2c-mxs.c | 6 +++---
1 file changed
ci_role BUGs when the role is >= CI_ROLE_END.
This is the case while the role is changing.
Signed-off-by: Michael Thalmeier <michael.thalme...@hale.at>
---
drivers/usb/chipidea/core.c | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/usb/chipidea/core.c
ci_role BUGs when the role is >= CI_ROLE_END.
This is the case while the role is changing.
Signed-off-by: Michael Thalmeier
---
drivers/usb/chipidea/core.c | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/usb/chipidea/core.c b/drivers/usb/chipidea/core.c
in
On Fri, May 19, 2017 at 09:15:40AM +0800, Peter Chen wrote:
> On Thu, May 18, 2017 at 04:14:14PM +0200, Michael Thalmeier wrote:
> > ci_role BUGs when the role is >= CI_ROLE_END.
> >
> > Signed-off-by: Michael Thalmeier <michael.thalme...@hale.at>
> > ---
&
On Fri, May 19, 2017 at 09:15:40AM +0800, Peter Chen wrote:
> On Thu, May 18, 2017 at 04:14:14PM +0200, Michael Thalmeier wrote:
> > ci_role BUGs when the role is >= CI_ROLE_END.
> >
> > Signed-off-by: Michael Thalmeier
> > ---
> > drivers/usb/chipidea/de
.
When we detect a power fail we return -ENODATA.
Signed-off-by: Michael Thalmeier <michael.thalme...@hale.at>
---
drivers/rtc/rtc-stmp3xxx.c | 9 +
1 file changed, 9 insertions(+)
diff --git a/drivers/rtc/rtc-stmp3xxx.c b/drivers/rtc/rtc-stmp3xxx.c
index d578e40..51330ec
.
When we detect a power fail we return -ENODATA.
Signed-off-by: Michael Thalmeier
---
drivers/rtc/rtc-stmp3xxx.c | 9 +
1 file changed, 9 insertions(+)
diff --git a/drivers/rtc/rtc-stmp3xxx.c b/drivers/rtc/rtc-stmp3xxx.c
index d578e40..51330ec 100644
--- a/drivers/rtc/rtc-stmp3xxx.c
ci_role BUGs when the role is >= CI_ROLE_END.
Signed-off-by: Michael Thalmeier <michael.thalme...@hale.at>
---
drivers/usb/chipidea/debug.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/usb/chipidea/debug.c b/drivers/usb/chipidea/debug.c
index 6d23eed
When mxs_i2c_pio_wait_xfer_end returns with a return code of -ENXIO, the
NO_SLAVE_ACK_IRQ bit is set in CTRL1.
In this case, do not print an error message, because every NAK would
otherwise generate a new message.
Signed-off-by: Michael Thalmeier <michael.thalme...@hale.at>
---
drive
When mxs_i2c_pio_wait_xfer_end returns with a return code of -ENXIO, the
NO_SLAVE_ACK_IRQ bit is set in CTRL1.
In this case, do not print an error message, because every NAK would
otherwise generate a new message.
Signed-off-by: Michael Thalmeier
---
drivers/i2c/busses/i2c-mxs.c | 2 +-
1 file
ci_role BUGs when the role is >= CI_ROLE_END.
Signed-off-by: Michael Thalmeier
---
drivers/usb/chipidea/debug.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/usb/chipidea/debug.c b/drivers/usb/chipidea/debug.c
index 6d23eed..1c31e8a 100644
--- a/drivers/
Make sure cmd is set before a frame is passed to the transport layer for
sending. In addition pn533_send_async_complete checks if cmd is set before
accessing its members.
Signed-off-by: Michael Thalmeier <michael.thalme...@hale.at>
---
drivers/nfc/pn533/pn533.
Make sure cmd is set before a frame is passed to the transport layer for
sending. In addition pn533_send_async_complete checks if cmd is set before
accessing its members.
Signed-off-by: Michael Thalmeier
---
drivers/nfc/pn533/pn533.c | 54 +--
1 file
Default clock frequency of PN532 is 6.78 MHz. Increase the frequency to 27.12
MHz to increase throughput.
Signed-off-by: Michael Thalmeier <michael.thalme...@hale.at>
---
drivers/nfc/pn533/pn533.c | 70 +++
drivers/nfc/pn533/pn533.h | 2 ++
2
Default clock frequency of PN532 is 6.78 MHz. Increase the frequency to 27.12
MHz to increase throughput.
Signed-off-by: Michael Thalmeier
---
drivers/nfc/pn533/pn533.c | 70 +++
drivers/nfc/pn533/pn533.h | 2 ++
2 files changed, 72 insertions
We need to reset the poll modulation list before calling nfc_targets_found
because otherwise it is possible that the application is scheduled to run
before the modulation list is cleared and gets an error "Cannot activate
target while polling" upon calling activate_target.
Signed-off-b
We need to reset the poll modulation list before calling nfc_targets_found
because otherwise it is possible that the application is scheduled to run
before the modulation list is cleared and gets an error "Cannot activate
target while polling" upon calling activate_target.
Signed-off-b
Handle return codes for stopped polling operations better to reduce logging
activity.
Signed-off-by: Michael Thalmeier <michael.thalme...@hale.at>
---
drivers/nfc/pn533/pn533.c | 8 +++-
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/drivers/nfc/pn533/pn533.c b/drive
When a poll ist stopped we need to kill the out_urb request too before
starting a new request.
Additionally check if cmd is set in pn533_recv_ack befor accessing its struct
members.
Signed-off-by: Michael Thalmeier <michael.thalme...@hale.at>
---
drivers/nfc/pn533/usb.c | 12 +
Handle return codes for stopped polling operations better to reduce logging
activity.
Signed-off-by: Michael Thalmeier
---
drivers/nfc/pn533/pn533.c | 8 +++-
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/drivers/nfc/pn533/pn533.c b/drivers/nfc/pn533/pn533.c
index d1cc70a
When a poll ist stopped we need to kill the out_urb request too before
starting a new request.
Additionally check if cmd is set in pn533_recv_ack befor accessing its struct
members.
Signed-off-by: Michael Thalmeier
---
drivers/nfc/pn533/usb.c | 12 +---
1 file changed, 9 insertions
When a command gets aborted the pn533 core does not need any RX frames that
may be received until a new frame is sent.
Signed-off-by: Michael Thalmeier <michael.thalme...@hale.at>
---
drivers/nfc/pn533/i2c.c | 15 +++
1 file changed, 11 insertions(+), 4 deletions(-)
diff
When multiple receive frames need to be put together in pn533_build_response
we need to use nfc_alloc_recv_skb instead of the normal alloc_skb. Otherwise
the nfc core causes an skb error when it tries to push the status byte in
front of the data.
Signed-off-by: Michael Thalmeier <michael.tha
When multiple receive frames need to be put together in pn533_build_response
we need to use nfc_alloc_recv_skb instead of the normal alloc_skb. Otherwise
the nfc core causes an skb error when it tries to push the status byte in
front of the data.
Signed-off-by: Michael Thalmeier
---
drivers/nfc
When a command gets aborted the pn533 core does not need any RX frames that
may be received until a new frame is sent.
Signed-off-by: Michael Thalmeier
---
drivers/nfc/pn533/i2c.c | 15 +++
1 file changed, 11 insertions(+), 4 deletions(-)
diff --git a/drivers/nfc/pn533/i2c.c b
Hello Samuel,
This patchset fixes some major bugs in the pn533 drivers (usb and i2c) and
improves performance of the PN532 chip by increasing its clock speed.
Best Regards
Michael
Michael Thalmeier (11):
NFC: pn533: i2c: free irq on driver remove
NFC: pn533: fix order of initialization
Hello Samuel,
This patchset fixes some major bugs in the pn533 drivers (usb and i2c) and
improves performance of the PN532 chip by increasing its clock speed.
Best Regards
Michael
Michael Thalmeier (11):
NFC: pn533: i2c: free irq on driver remove
NFC: pn533: fix order of initialization
When pn533_recv_frame is called from within abort_command context the current
dev->cmd is not guaranteed to be set.
Additionally on receiving an error status we can omit frame checking and
simply schedule the workquueue.
Signed-off-by: Michael Thalmeier <michael.thalme...@hale.at>
---
When pn533_recv_frame is called from within abort_command context the current
dev->cmd is not guaranteed to be set.
Additionally on receiving an error status we can omit frame checking and
simply schedule the workquueue.
Signed-off-by: Michael Thalmeier
---
drivers/nfc/pn533/pn533.c
Correctly call nfc_set_parent_dev before nfc_register_device. Otherwise the
driver will oops when being removed.
Signed-off-by: Michael Thalmeier <michael.thalme...@hale.at>
---
drivers/nfc/pn533/i2c.c | 3 ++-
drivers/nfc/pn533/pn533.c | 4 +++-
drivers/nfc/pn533/pn533.h | 3 ++-
drive
The requested irq needs to be freed when removing the driver, otherwise a
following driver load fails to request the irq.
Signed-off-by: Michael Thalmeier <michael.thalme...@hale.at>
---
drivers/nfc/pn533/i2c.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/nfc/pn533/i
Correctly call nfc_set_parent_dev before nfc_register_device. Otherwise the
driver will oops when being removed.
Signed-off-by: Michael Thalmeier
---
drivers/nfc/pn533/i2c.c | 3 ++-
drivers/nfc/pn533/pn533.c | 4 +++-
drivers/nfc/pn533/pn533.h | 3 ++-
drivers/nfc/pn533/usb.c | 3 +--
4
The requested irq needs to be freed when removing the driver, otherwise a
following driver load fails to request the irq.
Signed-off-by: Michael Thalmeier
---
drivers/nfc/pn533/i2c.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/nfc/pn533/i2c.c b/drivers/nfc/pn533/i2c.c
index
When pn533_recv_frame is called with skb = NULL and cmd->status = 0, set
cmd->status to an error code.
Signed-off-by: Michael Thalmeier <michael.thalme...@hale.at>
---
drivers/nfc/pn533/pn533.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/nfc/pn533/pn533.c b/drive
When pn533_recv_frame is called with skb = NULL and cmd->status = 0, set
cmd->status to an error code.
Signed-off-by: Michael Thalmeier
---
drivers/nfc/pn533/pn533.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/nfc/pn533/pn533.c b/drivers/nfc/pn533/pn533.c
index a
Add pn533-i2c phy devicetree documentation
Signed-off-by: Michael Thalmeier <michael.thalme...@hale.at>
---
.../devicetree/bindings/net/nfc/pn533-i2c.txt | 31 ++
1 file changed, 31 insertions(+)
create mode 100644 Documentation/devicetree/bindings/net/nfc/pn533-i
Add pn533-i2c phy devicetree documentation
Signed-off-by: Michael Thalmeier
---
.../devicetree/bindings/net/nfc/pn533-i2c.txt | 31 ++
1 file changed, 31 insertions(+)
create mode 100644 Documentation/devicetree/bindings/net/nfc/pn533-i2c.txt
diff --git
e one processing the commands =>
deadlock
To fix the deadlock pn533_deactivate_target is changed to issue the
PN533_CMD_IN_RELEASE command in async mode. This way nothing blocks and the
release command is executed after the current command.
Signed-off-by: Michael Thalmeier <michael.thalme...@hale.at>
-
e one processing the commands =>
deadlock
To fix the deadlock pn533_deactivate_target is changed to issue the
PN533_CMD_IN_RELEASE command in async mode. This way nothing blocks and the
release command is executed after the current command.
Signed-off-by: Michael Thalmeier
---
drivers/nfc/pn533.c
, this should not have much of an effect for
current implementations.
Signed-off-by: Michael Thalmeier <michael.thalme...@hale.at>
---
drivers/nfc/pn533.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/nfc/pn533.c b/drivers/nfc/pn533.c
index bb3d5ea..a85830f
, this should not have much of an effect for
current implementations.
Signed-off-by: Michael Thalmeier
---
drivers/nfc/pn533.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/nfc/pn533.c b/drivers/nfc/pn533.c
index bb3d5ea..a85830f 100644
--- a/drivers/nfc/pn533.c
This adds the I2C phy interface for the pn533 driver. This way the driver can
be used to interact with I2C connected pn532.
Signed-off-by: Michael Thalmeier <michael.thalme...@hale.at>
---
drivers/nfc/pn533/Kconfig | 11 ++
drivers/nfc/pn533/Makefile | 2 +
drivers/nfc/pn533/i2c.c
implementing and testing I also triggered a few bugs that are fixed with
the first two patches.
Michael Thalmeier (4):
NFC: pn533: Send ATR_REQ only if NFC_PROTO_NFC_DEP bit is set in
poll_protocols
NFC: pn533: fix deadlock when socket is closed while processing
command
NFC: pn533: Separate
This adds the I2C phy interface for the pn533 driver. This way the driver can
be used to interact with I2C connected pn532.
Signed-off-by: Michael Thalmeier
---
drivers/nfc/pn533/Kconfig | 11 ++
drivers/nfc/pn533/Makefile | 2 +
drivers/nfc/pn533/i2c.c| 277
implementing and testing I also triggered a few bugs that are fixed with
the first two patches.
Michael Thalmeier (4):
NFC: pn533: Send ATR_REQ only if NFC_PROTO_NFC_DEP bit is set in
poll_protocols
NFC: pn533: fix deadlock when socket is closed while processing
command
NFC: pn533: Separate
It is basically a faster lm75 with improved (11 bit) resolution.
Signed-off-by: Michael Thalmeier
---
v2: keep alphabetic order
Documentation/hwmon/lm75 | 5 +
drivers/hwmon/lm75.c | 6 ++
2 files changed, 11 insertions(+)
diff --git a/Documentation/hwmon/lm75 b/Documentation
It is basically a faster lm75 with improved (11 bit) resolution.
Signed-off-by: Michael Thalmeier michael.thalme...@hale.at
---
v2: keep alphabetic order
Documentation/hwmon/lm75 | 5 +
drivers/hwmon/lm75.c | 6 ++
2 files changed, 11 insertions(+)
diff --git a/Documentation/hwmon
In addition to going into shutdown mode on suspend also go into shutdown mode
on system shutdown. This way we can save a few mA when the main CPU is powered
off and the lm75 is still powered but not used any more.
Signed-off-by: Michael Thalmeier
---
drivers/hwmon/lm75.c | 19
It is basically a faster lm75 with improved (11 bit) resolution.
Signed-off-by: Michael Thalmeier
---
Documentation/hwmon/lm75 | 6 ++
drivers/hwmon/lm75.c | 6 ++
2 files changed, 12 insertions(+)
diff --git a/Documentation/hwmon/lm75 b/Documentation/hwmon/lm75
index c6a5ff1
It is basically a faster lm75 with improved (11 bit) resolution.
Signed-off-by: Michael Thalmeier michael.thalme...@hale.at
---
Documentation/hwmon/lm75 | 6 ++
drivers/hwmon/lm75.c | 6 ++
2 files changed, 12 insertions(+)
diff --git a/Documentation/hwmon/lm75 b/Documentation/hwmon
In addition to going into shutdown mode on suspend also go into shutdown mode
on system shutdown. This way we can save a few mA when the main CPU is powered
off and the lm75 is still powered but not used any more.
Signed-off-by: Michael Thalmeier michael.thalme...@hale.at
---
drivers/hwmon/lm75
Hi,
I have tested this patch on our board (custom i.MX31 ARMv6 based) and
everything seems to be working as expected.
Thanks,
Michael
--
Scanned by MailScanner.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More
Hi,
I have tested this patch on our board (custom i.MX31 ARMv6 based) and
everything seems to be working as expected.
Thanks,
Michael
--
Scanned by MailScanner.
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More
Frank Rowand am.sony.com> writes:
>
>
> Updates console-make-rt-friendly.patch
>
> #ifdef CONFIG_PREEMPT_RT_FULL, printk() output is never flushed by
> printk() because:
> ...
>
> On system boot some printk() output is flushed because register_console()
> and tty_open() call
Frank Rowand frank.rowand at am.sony.com writes:
Updates console-make-rt-friendly.patch
#ifdef CONFIG_PREEMPT_RT_FULL, printk() output is never flushed by
printk() because:
...
On system boot some printk() output is flushed because register_console()
and tty_open() call
60 matches
Mail list logo