All of lore.kernel.org
 help / color / mirror / Atom feed
diff for duplicates of <d3f10fc1-635b-3a5d-a967-2816eac005fc@linux.intel.com>

diff --git a/a/1.txt b/N1/1.txt
index 49fc2b0..dab05f0 100644
--- a/a/1.txt
+++ b/N1/1.txt
@@ -5,10 +5,10 @@ On 7/12/2018 11:21 AM, Jae Hyun Yoo wrote:
 >>>
 >> <snip>
 >>>>> +/* Timeout for bus busy checking */
->>>>> +#define BUS_BUSY_CHECK_TIMEOUT???????????????????????? 250000 /* 
+>>>>> +#define BUS_BUSY_CHECK_TIMEOUT                         250000 /* 
 >>>>> 250ms */
 >>>>> +#define BUS_BUSY_CHECK_INTERVAL                                
->>>>> 10000? /* 10ms */
+>>>>> 10000  /* 10ms */
 >>>>
 >>>> Could you add a comment on where you got these values from?
 >>>>
@@ -46,14 +46,14 @@ On 7/12/2018 11:21 AM, Jae Hyun Yoo wrote:
 > ARBIT_LOSS event is already being handled well by this driver code you
 > implemented.
 > 
->>> ? >
+>>>   >
 >> <snip>
->>>>> ?? #if IS_ENABLED(CONFIG_I2C_SLAVE)
->>>>> -?????? if (aspeed_i2c_slave_irq(bus)) {
->>>>> -?????????????? dev_dbg(bus->dev, "irq handled by slave.\n");
->>>>> -?????????????? return IRQ_HANDLED;
->>>>> +?????? if (bus->master_state != ASPEED_I2C_MASTER_INACTIVE) {
->>>>> +?????????????? if (!aspeed_i2c_master_irq(bus))
+>>>>>    #if IS_ENABLED(CONFIG_I2C_SLAVE)
+>>>>> -       if (aspeed_i2c_slave_irq(bus)) {
+>>>>> -               dev_dbg(bus->dev, "irq handled by slave.\n");
+>>>>> -               return IRQ_HANDLED;
+>>>>> +       if (bus->master_state != ASPEED_I2C_MASTER_INACTIVE) {
+>>>>> +               if (!aspeed_i2c_master_irq(bus))
 >>>>
 >>>> Why do you check the slave if master fails (or vice versa)? I
 >>>> understand that there are some status bits that have not been handled,
@@ -92,10 +92,10 @@ On 7/12/2018 11:21 AM, Jae Hyun Yoo wrote:
 > 
 >>>
 >> <snip>
->>>>> +?????? for (;;) {
->>>>> +?????????????? if (!(readl(bus->base + ASPEED_I2C_CMD_REG) &
->>>>> +???????????????????? (ASPEED_I2CD_BUS_BUSY_STS |
->>>>> +????????????????????? ASPEED_I2CD_XFER_MODE_STS_MASK)))
+>>>>> +       for (;;) {
+>>>>> +               if (!(readl(bus->base + ASPEED_I2C_CMD_REG) &
+>>>>> +                     (ASPEED_I2CD_BUS_BUSY_STS |
+>>>>> +                      ASPEED_I2CD_XFER_MODE_STS_MASK)))
 >>>>
 >>>> Is using the Transfer Mode State Machine bits necessary? The
 >>>> documentation marks it as "for debugging purpose only," so relying on
@@ -134,10 +134,10 @@ I'll add a comment like below:
 
 Is it acceptable then?
 
->>>>> +?????????????????????? return 0;
->>>>> +?????????????? if (ktime_compare(ktime_get(), timeout) > 0)
->>>>> +?????????????????????? break;
->>>>> +?????????????? usleep_range((BUS_BUSY_CHECK_INTERVAL >> 2) + 1,
+>>>>> +                       return 0;
+>>>>> +               if (ktime_compare(ktime_get(), timeout) > 0)
+>>>>> +                       break;
+>>>>> +               usleep_range((BUS_BUSY_CHECK_INTERVAL >> 2) + 1,
 >>>>
 >>>> Where did you get this minimum value?
 >>>>
diff --git a/a/content_digest b/N1/content_digest
index 04ae514..82e8d98 100644
--- a/a/content_digest
+++ b/N1/content_digest
@@ -4,9 +4,23 @@
  "ref\0CAFd5g47j_h4ZrT8Eg1FZ8sAj5ekCUH20jUVub75ozdkg8_YW7Q@mail.gmail.com\0"
  "ref\0921b1ab7-9c9f-0aeb-da89-5a1a27d009f0@linux.intel.com\0"
  "From\0Jae Hyun Yoo <jae.hyun.yoo@linux.intel.com>\0"
- "Subject\0[PATCH] i2c: aspeed: Improve driver to support multi-master use cases stably\0"
+ "Subject\0Re: [PATCH] i2c: aspeed: Improve driver to support multi-master use cases stably\0"
  "Date\0Fri, 13 Jul 2018 10:21:37 -0700\0"
- "To\0linux-aspeed@lists.ozlabs.org\0"
+ "To\0Brendan Higgins <brendanhiggins@google.com>\0"
+ "Cc\0Benjamin Herrenschmidt <benh@kernel.crashing.org>"
+  Joel Stanley <joel@jms.id.au>
+  Andrew Jeffery <andrew@aj.id.au>
+  linux-i2c@vger.kernel.org
+  OpenBMC Maillist <openbmc@lists.ozlabs.org>
+  Linux ARM <linux-arm-kernel@lists.infradead.org>
+  linux-aspeed@lists.ozlabs.org
+  Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
+  james.feist@linux.intel.com
+  vernon.mauery@linux.intel.com
+  Benjamin Fair <benjaminfair@google.com>
+  Patrick Venture <venture@google.com>
+  Gary Hsu <gary_hsu@aspeedtech.com>
+ " Ryan Chen <ryan_chen@aspeedtech.com>\0"
  "\00:1\0"
  "b\0"
  "On 7/12/2018 11:21 AM, Jae Hyun Yoo wrote:\n"
@@ -16,10 +30,10 @@
  ">>>\n"
  ">> <snip>\n"
  ">>>>> +/* Timeout for bus busy checking */\n"
- ">>>>> +#define BUS_BUSY_CHECK_TIMEOUT???????????????????????? 250000 /* \n"
+ ">>>>> +#define BUS_BUSY_CHECK_TIMEOUT\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240 250000 /* \n"
  ">>>>> 250ms */\n"
  ">>>>> +#define BUS_BUSY_CHECK_INTERVAL                                \n"
- ">>>>> 10000? /* 10ms */\n"
+ ">>>>> 10000\302\240 /* 10ms */\n"
  ">>>>\n"
  ">>>> Could you add a comment on where you got these values from?\n"
  ">>>>\n"
@@ -57,14 +71,14 @@
  "> ARBIT_LOSS event is already being handled well by this driver code you\n"
  "> implemented.\n"
  "> \n"
- ">>> ? >\n"
+ ">>> \302\240 >\n"
  ">> <snip>\n"
- ">>>>> ?? #if IS_ENABLED(CONFIG_I2C_SLAVE)\n"
- ">>>>> -?????? if (aspeed_i2c_slave_irq(bus)) {\n"
- ">>>>> -?????????????? dev_dbg(bus->dev, \"irq handled by slave.\\n\");\n"
- ">>>>> -?????????????? return IRQ_HANDLED;\n"
- ">>>>> +?????? if (bus->master_state != ASPEED_I2C_MASTER_INACTIVE) {\n"
- ">>>>> +?????????????? if (!aspeed_i2c_master_irq(bus))\n"
+ ">>>>> \302\240\302\240 #if IS_ENABLED(CONFIG_I2C_SLAVE)\n"
+ ">>>>> -\302\240\302\240\302\240\302\240\302\240\302\240 if (aspeed_i2c_slave_irq(bus)) {\n"
+ ">>>>> -\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240 dev_dbg(bus->dev, \"irq handled by slave.\\n\");\n"
+ ">>>>> -\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240 return IRQ_HANDLED;\n"
+ ">>>>> +\302\240\302\240\302\240\302\240\302\240\302\240 if (bus->master_state != ASPEED_I2C_MASTER_INACTIVE) {\n"
+ ">>>>> +\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240 if (!aspeed_i2c_master_irq(bus))\n"
  ">>>>\n"
  ">>>> Why do you check the slave if master fails (or vice versa)? I\n"
  ">>>> understand that there are some status bits that have not been handled,\n"
@@ -103,10 +117,10 @@
  "> \n"
  ">>>\n"
  ">> <snip>\n"
- ">>>>> +?????? for (;;) {\n"
- ">>>>> +?????????????? if (!(readl(bus->base + ASPEED_I2C_CMD_REG) &\n"
- ">>>>> +???????????????????? (ASPEED_I2CD_BUS_BUSY_STS |\n"
- ">>>>> +????????????????????? ASPEED_I2CD_XFER_MODE_STS_MASK)))\n"
+ ">>>>> +\302\240\302\240\302\240\302\240\302\240\302\240 for (;;) {\n"
+ ">>>>> +\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240 if (!(readl(bus->base + ASPEED_I2C_CMD_REG) &\n"
+ ">>>>> +\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240 (ASPEED_I2CD_BUS_BUSY_STS |\n"
+ ">>>>> +\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240 ASPEED_I2CD_XFER_MODE_STS_MASK)))\n"
  ">>>>\n"
  ">>>> Is using the Transfer Mode State Machine bits necessary? The\n"
  ">>>> documentation marks it as \"for debugging purpose only,\" so relying on\n"
@@ -145,10 +159,10 @@
  "\n"
  "Is it acceptable then?\n"
  "\n"
- ">>>>> +?????????????????????? return 0;\n"
- ">>>>> +?????????????? if (ktime_compare(ktime_get(), timeout) > 0)\n"
- ">>>>> +?????????????????????? break;\n"
- ">>>>> +?????????????? usleep_range((BUS_BUSY_CHECK_INTERVAL >> 2) + 1,\n"
+ ">>>>> +\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240 return 0;\n"
+ ">>>>> +\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240 if (ktime_compare(ktime_get(), timeout) > 0)\n"
+ ">>>>> +\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240 break;\n"
+ ">>>>> +\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240 usleep_range((BUS_BUSY_CHECK_INTERVAL >> 2) + 1,\n"
  ">>>>\n"
  ">>>> Where did you get this minimum value?\n"
  ">>>>\n"
@@ -189,4 +203,4 @@
  ">>\n"
  >
 
-f61dafba290377cad14a14b17fcbcf027708ffb581047f429903bbdd28e87e4b
+6a70c746aabf1ed3f4518f57989dba6549ad4504d3c08bb04c653a2370c9d2ba

diff --git a/a/content_digest b/N2/content_digest
index 04ae514..73bdeb7 100644
--- a/a/content_digest
+++ b/N2/content_digest
@@ -3,10 +3,10 @@
  "ref\0e51471e6-0f8a-bffc-34c8-1e74239fdbcf@linux.intel.com\0"
  "ref\0CAFd5g47j_h4ZrT8Eg1FZ8sAj5ekCUH20jUVub75ozdkg8_YW7Q@mail.gmail.com\0"
  "ref\0921b1ab7-9c9f-0aeb-da89-5a1a27d009f0@linux.intel.com\0"
- "From\0Jae Hyun Yoo <jae.hyun.yoo@linux.intel.com>\0"
+ "From\0jae.hyun.yoo@linux.intel.com (Jae Hyun Yoo)\0"
  "Subject\0[PATCH] i2c: aspeed: Improve driver to support multi-master use cases stably\0"
  "Date\0Fri, 13 Jul 2018 10:21:37 -0700\0"
- "To\0linux-aspeed@lists.ozlabs.org\0"
+ "To\0linux-arm-kernel@lists.infradead.org\0"
  "\00:1\0"
  "b\0"
  "On 7/12/2018 11:21 AM, Jae Hyun Yoo wrote:\n"
@@ -189,4 +189,4 @@
  ">>\n"
  >
 
-f61dafba290377cad14a14b17fcbcf027708ffb581047f429903bbdd28e87e4b
+c786a787aa5a636443ce688a983c2faeaed0fd478c902bc079d955a8831d522b

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.