* [PATCH 1/2] i2c: imx: Improve message log when DMA is not used
@ 2015-11-01 16:22 Fabio Estevam
2015-11-01 16:22 ` [PATCH 2/2] i2c: imx: Remove unneeded comments Fabio Estevam
2016-01-03 18:20 ` [PATCH 1/2] i2c: imx: Improve message log when DMA is not used Wolfram Sang
0 siblings, 2 replies; 4+ messages in thread
From: Fabio Estevam @ 2015-11-01 16:22 UTC (permalink / raw)
To: wsa; +Cc: linux-i2c, Fabio Estevam
From: Fabio Estevam <fabio.estevam@freescale.com>
When DMA cannot be used, it is better to state that the I2C controller
will operate in PIO mode.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
drivers/i2c/busses/i2c-imx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/i2c/busses/i2c-imx.c b/drivers/i2c/busses/i2c-imx.c
index 785aa67..1e522c3 100644
--- a/drivers/i2c/busses/i2c-imx.c
+++ b/drivers/i2c/busses/i2c-imx.c
@@ -339,7 +339,7 @@ fail_tx:
dma_release_channel(dma->chan_tx);
fail_al:
devm_kfree(dev, dma);
- dev_info(dev, "can't use DMA\n");
+ dev_info(dev, "can't use DMA, using PIO instead.\n");
}
static void i2c_imx_dma_callback(void *arg)
--
1.9.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] i2c: imx: Remove unneeded comments
2015-11-01 16:22 [PATCH 1/2] i2c: imx: Improve message log when DMA is not used Fabio Estevam
@ 2015-11-01 16:22 ` Fabio Estevam
2016-01-03 18:28 ` Wolfram Sang
2016-01-03 18:20 ` [PATCH 1/2] i2c: imx: Improve message log when DMA is not used Wolfram Sang
1 sibling, 1 reply; 4+ messages in thread
From: Fabio Estevam @ 2015-11-01 16:22 UTC (permalink / raw)
To: wsa; +Cc: linux-i2c, Fabio Estevam
From: Fabio Estevam <fabio.estevam@freescale.com>
These multi-lines comments do not follow the standard kernel coding
style. In fact, they are not useful comments, so get rid of them.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
drivers/i2c/busses/i2c-imx.c | 12 ------------
1 file changed, 12 deletions(-)
diff --git a/drivers/i2c/busses/i2c-imx.c b/drivers/i2c/busses/i2c-imx.c
index 1e522c3..696c920 100644
--- a/drivers/i2c/busses/i2c-imx.c
+++ b/drivers/i2c/busses/i2c-imx.c
@@ -29,9 +29,6 @@
*
*/
-/** Includes *******************************************************************
-*******************************************************************************/
-
#include <linux/clk.h>
#include <linux/completion.h>
#include <linux/delay.h>
@@ -54,9 +51,6 @@
#include <linux/sched.h>
#include <linux/slab.h>
-/** Defines ********************************************************************
-*******************************************************************************/
-
/* This will be the driver name the kernel reports */
#define DRIVER_NAME "imx-i2c"
@@ -118,9 +112,6 @@
#define I2CR_IEN_OPCODE_0 0x0
#define I2CR_IEN_OPCODE_1 I2CR_IEN
-/** Variables ******************************************************************
-*******************************************************************************/
-
/*
* sorted list of clock divider, register value pairs
* taken from table 26-5, p.26-9, Freescale i.MX
@@ -409,9 +400,6 @@ static void i2c_imx_dma_free(struct imx_i2c_struct *i2c_imx)
dma->chan_using = NULL;
}
-/** Functions for IMX I2C adapter driver ***************************************
-*******************************************************************************/
-
static int i2c_imx_bus_busy(struct imx_i2c_struct *i2c_imx, int for_busy)
{
unsigned long orig_jiffies = jiffies;
--
1.9.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/2] i2c: imx: Improve message log when DMA is not used
2015-11-01 16:22 [PATCH 1/2] i2c: imx: Improve message log when DMA is not used Fabio Estevam
2015-11-01 16:22 ` [PATCH 2/2] i2c: imx: Remove unneeded comments Fabio Estevam
@ 2016-01-03 18:20 ` Wolfram Sang
1 sibling, 0 replies; 4+ messages in thread
From: Wolfram Sang @ 2016-01-03 18:20 UTC (permalink / raw)
To: Fabio Estevam; +Cc: linux-i2c, Fabio Estevam
[-- Attachment #1: Type: text/plain, Size: 324 bytes --]
On Sun, Nov 01, 2015 at 02:22:51PM -0200, Fabio Estevam wrote:
> From: Fabio Estevam <fabio.estevam@freescale.com>
>
> When DMA cannot be used, it is better to state that the I2C controller
> will operate in PIO mode.
>
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Applied to for-next, thanks!
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 2/2] i2c: imx: Remove unneeded comments
2015-11-01 16:22 ` [PATCH 2/2] i2c: imx: Remove unneeded comments Fabio Estevam
@ 2016-01-03 18:28 ` Wolfram Sang
0 siblings, 0 replies; 4+ messages in thread
From: Wolfram Sang @ 2016-01-03 18:28 UTC (permalink / raw)
To: Fabio Estevam; +Cc: linux-i2c, Fabio Estevam
[-- Attachment #1: Type: text/plain, Size: 444 bytes --]
On Sun, Nov 01, 2015 at 02:22:52PM -0200, Fabio Estevam wrote:
> From: Fabio Estevam <fabio.estevam@freescale.com>
>
> These multi-lines comments do not follow the standard kernel coding
> style. In fact, they are not useful comments, so get rid of them.
>
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
There have been some other changes to the imx driver. Could you rebase
against my for-next or for-4.5? Thanks!
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-01-03 18:28 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-01 16:22 [PATCH 1/2] i2c: imx: Improve message log when DMA is not used Fabio Estevam
2015-11-01 16:22 ` [PATCH 2/2] i2c: imx: Remove unneeded comments Fabio Estevam
2016-01-03 18:28 ` Wolfram Sang
2016-01-03 18:20 ` [PATCH 1/2] i2c: imx: Improve message log when DMA is not used Wolfram Sang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).