Skip to contentSkip to conversation

IIO coding tasks

PATCH In review Arushi Singhal 4 participants 12 messages Mar 21, 2017

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

cover IIO coding tasks

Patchseries of IIO coding tasks

Arushi Singhal (2):
staging: ad7759: Replace mlock with driver private lock
staging: iio: ade7759: Move header content to implementation file

 drivers/staging/iio/meter/ade7759.c   | 56 +++++++++++++++++++++++++++++++++--
 drivers/staging/iio/meter/ade7759.h   | 53 ---------------------------------
 2 files changed, 54 insertions(+), 57 deletions(-)
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/2 staging: ad7759: Replace mlock with driver private lock

The IIO subsystem is redefining iio_dev->mlock to be used by the IIO core only for protecting device operating mode changes. ie. Changes between INDIO_DIRECT_MODE, INDIO_BUFFER_* modes.

In this driver, mlock was being used to protect hardware state changes. Replace it with a lock in the devices global data.

---
 drivers/staging/iio/meter/ade7759.c | 4 ++--
 drivers/staging/iio/meter/ade7759.h | 1 +
 2 files changed, 3 insertions(+), 2 deletions(-)
drivers/staging/iio/meter/ade7759.c +2 -2
index 944ee3401029..1d1e0b33021f 100644
@@ -381,7 +381,7 @@ static ssize_t ade7759_write_frequency(struct device *dev,
 	if (!val)
 		return -EINVAL;
 
-	mutex_lock(&indio_dev->mlock);
+	mutex_lock(&st->buf_lock);
 
 	t = 27900 / val;
 	if (t > 0)
@@ -402,7 +402,7 @@ static ssize_t ade7759_write_frequency(struct device *dev,
 	ret = ade7759_spi_write_reg_16(dev, ADE7759_MODE, reg);
 
 out:
-	mutex_unlock(&indio_dev->mlock);
+	mutex_unlock(&st->buf_lock);
 
 	return ret ? ret : len;
 }
drivers/staging/iio/meter/ade7759.h +1 -0
index f0716d2fdf8e..4f69bb93cc45 100644
@@ -42,6 +42,7 @@
  * @buf_lock:		mutex to protect tx and rx
  * @tx:			transmit buffer
  * @rx:			receive buffer
+ * @lock		protect sensor state
  **/
 struct ade7759_state {
 	struct spi_device	*us;
Signature · 1 line
2.11.0
#2 lore raw

PATCH 2/2 staging: iio: ade7759: Move header content to implementation file

In reply to Arushi Singhal

The contents of ade7759.h are only used in ade7759.c. Move the header contents to the implemtation file, and delete the header file.

---
 drivers/staging/iio/meter/ade7759.c | 52 ++++++++++++++++++++++++++++++++++-
 drivers/staging/iio/meter/ade7759.h | 54 -------------------------------------
 2 files changed, 51 insertions(+), 55 deletions(-)
drivers/staging/iio/meter/ade7759.c +51 -1
index 1d1e0b33021f..86ac103dffe5 100644
@@ -21,7 +21,57 @@
 #include <linux/iio/iio.h>
 #include <linux/iio/sysfs.h>
 #include "meter.h"
-#include "ade7759.h"
+
+#define ADE7759_WAVEFORM  0x01
+#define ADE7759_AENERGY   0x02
+#define ADE7759_RSTENERGY 0x03
+#define ADE7759_STATUS    0x04
+#define ADE7759_RSTSTATUS 0x05
+#define ADE7759_MODE      0x06
+#define ADE7759_CFDEN     0x07
+#define ADE7759_CH1OS     0x08
+#define ADE7759_CH2OS     0x09
+#define ADE7759_GAIN      0x0A
+#define ADE7759_APGAIN    0x0B
+#define ADE7759_PHCAL     0x0C
+#define ADE7759_APOS      0x0D
+#define ADE7759_ZXTOUT    0x0E
+#define ADE7759_SAGCYC    0x0F
+#define ADE7759_IRQEN     0x10
+#define ADE7759_SAGLVL    0x11
+#define ADE7759_TEMP      0x12
+#define ADE7759_LINECYC   0x13
+#define ADE7759_LENERGY   0x14
+#define ADE7759_CFNUM     0x15
+#define ADE7759_CHKSUM    0x1E
+#define ADE7759_DIEREV    0x1F
+
+#define ADE7759_READ_REG(a)    a
+#define ADE7759_WRITE_REG(a) ((a) | 0x80)
+
+#define ADE7759_MAX_TX    6
+#define ADE7759_MAX_RX    6
+#define ADE7759_STARTUP_DELAY 1000
+
+#define ADE7759_SPI_SLOW        (u32)(300 * 1000)
+#define ADE7759_SPI_BURST       (u32)(1000 * 1000)
+#define ADE7759_SPI_FAST        (u32)(2000 * 1000)
+
+/**
+ * struct ade7759_state - device instance specific data
+ * @us:			actual spi_device
+ * @buf_lock:		mutex to protect tx and rx
+ * @tx:			transmit buffer
+ * @rx:			receive buffer
+ * @lock		protect sensor state
+ **/
+
+struct ade7759_state {
+	struct spi_device	*us;
+	struct mutex		buf_lock; /* protect tx and rx */
+	u8			tx[ADE7759_MAX_TX] ____cacheline_aligned;
+	u8			rx[ADE7759_MAX_RX];
+};
 
 static int ade7759_spi_write_reg_8(struct device *dev,
 		u8 reg_address,
drivers/staging/iio/meter/ade7759.h +0 -54

54 lines not on this page · raw message

Signature · 1 line
2.11.0
#3 lore raw
In reply to Arushi Singhal
Quoted 1 line · Arushi Singhal

Patchseries of IIO coding tasks

This wouldn't be a patchset. Although they touch the same driver, the changes are unrelated. See more below...

Quoted 3 lines

Arushi Singhal (2):
staging: ad7759: Replace mlock with driver private lock

This one is already been submitted. If you have a v2 for it, then v2 the original patch.

Quoted 1 line

staging: iio: ade7759: Move header content to implementation file

This patch is done and applied already. See the Coding Task #1 notes in the IIO Tasks page.

alisons

Quoted 14 lines
 drivers/staging/iio/meter/ade7759.c   | 56 +++++++++++++++++++++++++++++++++--
 drivers/staging/iio/meter/ade7759.h   | 53 ---------------------------------
 2 files changed, 54 insertions(+), 57 deletions(-)
Signature · 8 lines
2.11.0

-- 
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20170321133021.6737-1-arushisinghal19971997%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
#4 lore raw
Quoted 6 lines · Alison Schofield
Quoted 1 line · Arushi Singhal

Patchseries of IIO coding tasks

This wouldn't be a patchset. Although they touch the same driver, the changes are unrelated. See more below...

This I have send as a Patchset because as you have mentioned below that the [PATCH 2/2] was already done before by someone but I think so it is not yet applied in the Greg's tree yet.So I have done both the changes and as they should be applied one after other so that's why I have send them as Patchset.

Quoted 8 lines
Quoted 3 lines

Arushi Singhal (2):
staging: ad7759: Replace mlock with driver private lock

This one is already been submitted. If you have a v2 for it, then v2 the original patch.

Is it submitted by me only before? And this is not the v2.

I have just resed it.

Quoted 5 lines
Quoted 1 line

staging: iio: ade7759: Move header content to implementation file

This patch is done and applied already. See the Coding Task #1 notes in the IIO Tasks page.

Not at applied I think so.
Thanks
Arushi

Quoted 24 lines

alisons

Quoted 2 lines
 drivers/staging/iio/meter/ade7759.c   | 56

+++++++++++++++++++++++++++++++++--

Quoted 1 line
 drivers/staging/iio/meter/ade7759.h   | 53

---------------------------------

Quoted 7 lines
 2 files changed, 54 insertions(+), 57 deletions(-)

--
2.11.0

--
You received this message because you are subscribed to the Google

Groups "outreachy-kernel" group.

Quoted 1 line

To unsubscribe from this group and stop receiving emails from it, send

an email to [email protected].

Quoted 2 lines

To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/

msgid/outreachy-kernel/20170321133021.6737-1-
arushisinghal19971997%40gmail.com.

Quoted 1 line

For more options, visit https://groups.google.com/d/optout.

#5 lore raw
Quoted 5 lines · Arushi Singhal

On Tue, Mar 21, 2017 at 9:33 PM, Alison Schofield <[email protected]> wrote:
On Tue, Mar 21, 2017 at 07:00:17PM +0530, Arushi Singhal wrote:
> Patchseries of IIO coding tasks

Quoted 8 lines

This wouldn't be a patchset.  Although they touch the same driver, the changes are unrelated.  See more below...

This I have send as a Patchset because as you have mentioned below that the [PATCH 2/2] was already done before by someone but I think so it is not yet applied in the Greg's tree yet.So I have done both the changes and as they should be applied one after other so that's why I have send them as Patchset.

For the IIO patches, it is better to work on the IIO tree, not Greg's. Greg manages staging, not IIO. The IIO patches should appear in Greg's tree eventually.

julia

Quoted 56 lines

>
> Arushi Singhal (2):
>   staging: ad7759: Replace mlock with driver private lock

This one is already been submitted.  If you have a v2 for it, then v2
the original patch.

Is it submitted by me only before? And this is not the v2. I have just resed it.
>   staging: iio: ade7759: Move header content to implementation file

This patch is done and applied already.  See the Coding Task #1 notes
in the IIO Tasks page.

Not at applied I think so.
Thanks
Arushi

      alisons

      >
      >  drivers/staging/iio/meter/ade7759.c   | 56
      +++++++++++++++++++++++++++++++++--
      >  drivers/staging/iio/meter/ade7759.h   | 53
      ---------------------------------
      >  2 files changed, 54 insertions(+), 57 deletions(-)
      >
      > --
      > 2.11.0
      >
Quoted 2 lines

--
You received this message because you are subscribed to the Google

Groups "outreachy-kernel" group.

Quoted 1 line

To unsubscribe from this group and stop receiving emails from it,

send an email to [email protected].

Quoted 1 line

To post to this group, send email to

[email protected].

Quoted 1 line

To view this discussion on the web visithttps://groups.google.com/d/msgid/outreachy-kernel/20170321133021.6737-1-ar

ushisinghal19971997%40gmail.com.

Quoted 1 line

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups
"outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visithttps://groups.google.com/d/msgid/outreachy-kernel/CA%2BXqjF9dVy33Dsv0H2z8x taNeMOW7SQgr4qa4wLwz6xFNVTsUA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

#6 lore raw
Quoted 18 lines · Julia Lawall
Quoted 5 lines · Arushi Singhal

On Tue, Mar 21, 2017 at 9:33 PM, Alison Schofield <[email protected]> wrote:
On Tue, Mar 21, 2017 at 07:00:17PM +0530, Arushi Singhal wrote:
> Patchseries of IIO coding tasks

Quoted 8 lines

This wouldn't be a patchset.� Although they touch the same driver, the changes are unrelated.� See more below...

This I have send as a Patchset because as you have mentioned below that the [PATCH 2/2] was already done before by someone but I think so it is not yet applied in the Greg's tree yet.So I have done both the changes and as they should be applied one after other so that's why I have send them as Patchset.

Quoted 5 lines

For the IIO patches, it is better to work on the IIO tree, not Greg's. Greg manages staging, not IIO. The IIO patches should appear in Greg's tree eventually.

julia

We didn't direct applicants to create an iio tree. At this point, it seems more than is necessary. They can follow the directions in the task descriptions and avoid the collisions.

Of course, they are welcome to create a tree to iio/testing.

(IMHO it's more overhead/busy work and maybe not the best use of time in the home stretch of the application period.)

alisons

Quoted 57 lines
Quoted 57 lines

>
> Arushi Singhal (2):
>� �staging: ad7759: Replace mlock with driver private lock

This one is already been submitted.� If you have a v2 for it, then v2
the original patch.

Is it submitted by me only before? And this is not the v2.
I have just resed it.
>� �staging: iio: ade7759: Move header content to implementation file

This patch is done and applied already.� See the Coding Task #1 notes
in the IIO Tasks page.

Not at applied I think so.
Thanks
Arushi

      alisons

      >
      >� drivers/staging/iio/meter/ade7759.c� �| 56
      +++++++++++++++++++++++++++++++++--
      >� drivers/staging/iio/meter/ade7759.h� �| 53
      ---------------------------------
      >� 2 files changed, 54 insertions(+), 57 deletions(-)
      >
      > --
      > 2.11.0
      >
Quoted 2 lines

--
You received this message because you are subscribed to the Google

Groups "outreachy-kernel" group.

Quoted 1 line

To unsubscribe from this group and stop receiving emails from it,

send an email to [email protected].

Quoted 1 line

To post to this group, send email to

[email protected].

Quoted 1 line

To view this discussion on the web visithttps://groups.google.com/d/msgid/outreachy-kernel/20170321133021.6737-1-ar

ushisinghal19971997%40gmail.com.

Quoted 1 line

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups
"outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visithttps://groups.google.com/d/msgid/outreachy-kernel/CA%2BXqjF9dVy33Dsv0H2z8x taNeMOW7SQgr4qa4wLwz6xFNVTsUA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

#7 lore raw
Quoted 23 lines · Alison Schofield
Quoted 22 lines · Julia Lawall
Quoted 5 lines · Arushi Singhal

On Tue, Mar 21, 2017 at 9:33 PM, Alison Schofield <[email protected]> wrote:
On Tue, Mar 21, 2017 at 07:00:17PM +0530, Arushi Singhal wrote:
> Patchseries of IIO coding tasks

Quoted 8 lines

This wouldn't be a patchset.  Although they touch the same driver, the changes are unrelated.  See more below...

This I have send as a Patchset because as you have mentioned below that the [PATCH 2/2] was already done before by someone but I think so it is not yet applied in the Greg's tree yet.So I have done both the changes and as they should be applied one after other so that's why I have send them as Patchset.

For the IIO patches, it is better to work on the IIO tree, not Greg's. Greg manages staging, not IIO. The IIO patches should appear in Greg's tree eventually.

Quoted 5 lines
Quoted 1 line

julia

We didn't direct applicants to create an iio tree. At this point, it seems more than is necessary. They can follow the directions in the task descriptions and avoid the collisions.

I meant just pull from the IIO tree you mentioned, work on that, submit patches, and then expect to see the patches show up there at some time in the future.

If someone make IIO patches on Greg's tree, then they will have an out of date view.

julia

Quoted 72 lines

Of course, they are welcome to create a tree to iio/testing.

(IMHO it's more overhead/busy work and maybe not the best use of time in the home stretch of the application period.)

alisons

Quoted 46 lines
Quoted 46 lines

>
> Arushi Singhal (2):
>   staging: ad7759: Replace mlock with driver private lock

This one is already been submitted.  If you have a v2 for it, then v2
the original patch.

Is it submitted by me only before? And this is not the v2. I have just resed it.
>   staging: iio: ade7759: Move header content to implementation file

This patch is done and applied already.  See the Coding Task #1 notes
in the IIO Tasks page.

Not at applied I think so.
Thanks
Arushi

      alisons

      >
      >  drivers/staging/iio/meter/ade7759.c   | 56
      +++++++++++++++++++++++++++++++++--
      >  drivers/staging/iio/meter/ade7759.h   | 53
      ---------------------------------
      >  2 files changed, 54 insertions(+), 57 deletions(-)
      >
      > --
      > 2.11.0
      >
Quoted 2 lines

--
You received this message because you are subscribed to the Google

Groups "outreachy-kernel" group.

Quoted 1 line

To unsubscribe from this group and stop receiving emails from it,

send an email to [email protected].

Quoted 1 line

To post to this group, send email to

[email protected].

Quoted 1 line

To view this discussion on the web visithttps://groups.google.com/d/msgid/outreachy-kernel/20170321133021.6737-1-ar

ushisinghal19971997%40gmail.com.

Quoted 1 line

For more options, visit https://groups.google.com/d/optout.

Quoted 11 lines
Quoted 11 lines

--
You received this message because you are subscribed to the Google Groups
"outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visithttps://groups.google.com/d/msgid/outreachy-kernel/CA%2BXqjF9dVy33Dsv0H2z8x taNeMOW7SQgr4qa4wLwz6xFNVTsUA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20170321170221.GB2793%40d830.WORKGROUP.
For more options, visit https://groups.google.com/d/optout.

#8 lore raw
In reply to Alison Schofield
Quoted 33 lines · Alison Schofield
Quoted 5 lines · Julia Lawall
Quoted 1 line · Arushi Singhal

On Tue, Mar 21, 2017 at 9:33 PM, Alison Schofield <

[email protected]>

Quoted 8 lines
Quoted 8 lines

wrote:
On Tue, Mar 21, 2017 at 07:00:17PM +0530, Arushi Singhal wrote:
> Patchseries of IIO coding tasks

This wouldn't be a patchset. Although they touch the same driver, the changes are unrelated. See more below...

This I have send as a Patchset because as you have mentioned below

that the

Quoted 1 line
Quoted 1 line

[PATCH 2/2] was already done before by someone but I think so it is

not yet

Quoted 1 line
Quoted 1 line

applied in the Greg's tree yet.So I have done both the changes and as

they

Quoted 8 lines
Quoted 2 lines

should be applied one after other so that's why I have send them as Patchset.

For the IIO patches, it is better to work on the IIO tree, not Greg's. Greg manages staging, not IIO. The IIO patches should appear in Greg's tree eventually.

julia

We didn't direct applicants to create an iio tree. At this point, it seems more than is necessary. They can follow the directions in the task descriptions and avoid the collisions.

Quoted 7 lines

Of course, they are welcome to create a tree to iio/testing.

(IMHO it's more overhead/busy work and maybe not the best use of time in the home stretch of the application period.)

alisons

Hi Alison
As you have mentioned that my [PATCH 2/2] is already being done someone. So how can I make the changes of [PATCH 1/2] on top of it as [PATCH 2/2] is not yet applied on the staging tree.
Please suggest me.
Thanks
Arushi

Quoted 64 lines
Quoted 34 lines
Quoted 34 lines

>
> Arushi Singhal (2):
> staging: ad7759: Replace mlock with driver private lock

This one is already been submitted. If you have a v2 for it, then v2
the original patch.

Is it submitted by me only before? And this is not the v2. I have just resed it.
> staging: iio: ade7759: Move header content to implementation
file

This patch is done and applied already. See the Coding Task #1 notes
in the IIO Tasks page.

Not at applied I think so.
Thanks
Arushi

      alisons

      >
      >  drivers/staging/iio/meter/ade7759.c   | 56
      +++++++++++++++++++++++++++++++++--
      >  drivers/staging/iio/meter/ade7759.h   | 53
      ---------------------------------
      >  2 files changed, 54 insertions(+), 57 deletions(-)
      >
      > --
      > 2.11.0
      >
Quoted 8 lines
Quoted 8 lines
Quoted 2 lines

--
You received this message because you are subscribed to the Google

Groups "outreachy-kernel" group.

Quoted 1 line

To unsubscribe from this group and stop receiving emails from it,

send an email to [email protected].

Quoted 1 line

To post to this group, send email to

[email protected].

Quoted 1 line

To view this discussion on the web visithttps://groups.google.

com/d/msgid/outreachy-kernel/20170321133021.6737-1-ar

Quoted 6 lines
Quoted 6 lines

ushisinghal19971997%40gmail.com.

Quoted 1 line

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google

Groups

Quoted 2 lines
Quoted 2 lines

"outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send

an

Quoted 2 lines
Quoted 2 lines

email to [email protected].
To post to this group, send email to [email protected]

.

Quoted 1 line
Quoted 1 line

To view this discussion on the web visithttps://groups.google.

com/d/msgid/outreachy-kernel/CA%2BXqjF9dVy33Dsv0H2z8x

Quoted 4 lines
Quoted 4 lines

taNeMOW7SQgr4qa4wLwz6xFNVTsUA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

#9 lore raw
Quoted 49 lines · Arushi Singhal

On Tue, Mar 21, 2017 at 10:32 PM, Alison Schofield <[email protected]> wrote:
On Tue, Mar 21, 2017 at 05:39:38PM +0100, Julia Lawall wrote:
>
>
> On Tue, 21 Mar 2017, Arushi Singhal wrote:
>
> > On Tue, Mar 21, 2017 at 9:33 PM, Alison Schofield <[email protected]>
> > wrote:
> >       On Tue, Mar 21, 2017 at 07:00:17PM +0530, Arushi Singhal wrote:
> >       > Patchseries of IIO coding tasks
> >
> >       This wouldn't be a patchset.  Although they touch the same
> >       driver, the changes are unrelated.  See more below... > >
> > This I have send as a Patchset because as you have mentioned below that the
> > [PATCH 2/2] was already done before by someone but I think so it is not yet
> > applied in the Greg's tree yet.So I have done both the changes and as they
> > should be applied one after other so that's why I have send them as
> > Patchset.
>
> For the IIO patches, it is better to work on the IIO tree, not Greg's.
> Greg manages staging, not IIO.  The IIO patches should appear in Greg's
> tree eventually.
>
> julia

We didn't direct applicants to create an iio tree.  At this point,
it seems more than is necessary.  They can follow the directions in the
task descriptions and avoid the collisions.

Of course, they are welcome to create a tree to iio/testing.

(IMHO it's more overhead/busy work and maybe not the best use of time in the home stretch of the application period.)

Quoted 7 lines

alisons

Hi Alison
As you have mentioned that my [PATCH 2/2] is already being done someone. So how can I make the changes of [PATCH 1/2] on top of it as [PATCH 2/2] is not yet applied on the staging tree.

Make a patch that applies to the current state of the IIO tree. Just clone that one like you cloned the staging one.

julia

Quoted 77 lines

Please suggest me.
Thanks
Arushi
>
> >       >
> >       > Arushi Singhal (2):
> >       >   staging: ad7759: Replace mlock with driver private
lock
> >
> >       This one is already been submitted.  If you have a v2
for it,
> >       then v2
> >       the original patch.
> >
> > Is it submitted by me only before? And this is not the v2.
> > I have just resed it.
> >       >   staging: iio: ade7759: Move header content to
implementation
> >       file
> >
> >       This patch is done and applied already.  See the
Coding Task #1
> >       notes
> >       in the IIO Tasks page.
> >
> > Not at applied I think so.
> > Thanks
> > Arushi
> >
> >       alisons
> >
> >       >
> >       >  drivers/staging/iio/meter/ade7759.c   | 56
> >       +++++++++++++++++++++++++++++++++--
> >       >  drivers/staging/iio/meter/ade7759.h   | 53
> >       ---------------------------------
> >       >  2 files changed, 54 insertions(+), 57 deletions(-)
> >       >
> >       > --
> >       > 2.11.0
> >       >
> > > --
> > > You received this message because you are subscribed to
the Google
> > Groups "outreachy-kernel" group.
> > > To unsubscribe from this group and stop receiving emails
from it,
> > send an email to
[email protected].
> > > To post to this group, send email to
> > [email protected].
> > > To view this discussion on the webvisithttps://groups.google.com/d/msgid/outreachy-kernel/20170321133021.6737 -1-ar
> > ushisinghal19971997%40gmail.com.
> > > For more options, visit
https://groups.google.com/d/optout.
> >
> >
> > --
> > You received this message because you are subscribed to the
Google Groups
> > "outreachy-kernel" group.
> > To unsubscribe from this group and stop receiving emails
from it, send an
> > email to [email protected].
> > To post to this group, send email to
[email protected].
> > To view this discussion on the webvisithttps://groups.google.com/d/msgid/outreachy-kernel/CA%2BXqjF9dVy33Dsv0 H2z8x
> > taNeMOW7SQgr4qa4wLwz6xFNVTsUA%40mail.gmail.com.
> > For more options, visit https://groups.google.com/d/optout.
> >
> >

#11 lore raw
In reply to Arushi Singhal
Quoted 44 lines · Arushi Singhal
Quoted 33 lines · Alison Schofield
Quoted 5 lines · Julia Lawall
Quoted 1 line · Arushi Singhal

On Tue, Mar 21, 2017 at 9:33 PM, Alison Schofield <

[email protected]>

Quoted 8 lines
Quoted 8 lines

wrote:
On Tue, Mar 21, 2017 at 07:00:17PM +0530, Arushi Singhal wrote:
> Patchseries of IIO coding tasks

This wouldn't be a patchset. Although they touch the same driver, the changes are unrelated. See more below...

This I have send as a Patchset because as you have mentioned below

that the

Quoted 1 line
Quoted 1 line

[PATCH 2/2] was already done before by someone but I think so it is

not yet

Quoted 1 line
Quoted 1 line

applied in the Greg's tree yet.So I have done both the changes and as

they

Quoted 8 lines
Quoted 2 lines

should be applied one after other so that's why I have send them as Patchset.

For the IIO patches, it is better to work on the IIO tree, not Greg's. Greg manages staging, not IIO. The IIO patches should appear in Greg's tree eventually.

julia

We didn't direct applicants to create an iio tree. At this point, it seems more than is necessary. They can follow the directions in the task descriptions and avoid the collisions.

Quoted 7 lines

Of course, they are welcome to create a tree to iio/testing.

(IMHO it's more overhead/busy work and maybe not the best use of time in the home stretch of the application period.)

alisons

Quoted 7 lines

Hi Alison
As you have mentioned that my [PATCH 2/2] is already being done someone. So how can I make the changes of [PATCH 1/2] on top of it as [PATCH 2/2] is not yet applied on the staging tree.
Please suggest me.
Thanks
Arushi

Arushi -
I don't see anything needing to be done by you!
Your ad7759 mlock patch is awaiting review. It's not your issue to keep up with all changes going into the file. When it gets applied will most likely merge with no merge issue at all.
alisons

Quoted 65 lines
Quoted 65 lines
Quoted 35 lines
Quoted 35 lines

>
> Arushi Singhal (2):
> staging: ad7759: Replace mlock with driver private lock

This one is already been submitted. If you have a v2 for it, then v2
the original patch.

Is it submitted by me only before? And this is not the v2. I have just resed it.
> staging: iio: ade7759: Move header content to implementation
file

This patch is done and applied already. See the Coding Task #1 notes
in the IIO Tasks page.

Not at applied I think so.
Thanks
Arushi

      alisons

      >
      >  drivers/staging/iio/meter/ade7759.c   | 56
      +++++++++++++++++++++++++++++++++--
      >  drivers/staging/iio/meter/ade7759.h   | 53
      ---------------------------------
      >  2 files changed, 54 insertions(+), 57 deletions(-)
      >
      > --
      > 2.11.0
      >
Quoted 8 lines
Quoted 8 lines
Quoted 2 lines

--
You received this message because you are subscribed to the Google

Groups "outreachy-kernel" group.

Quoted 1 line

To unsubscribe from this group and stop receiving emails from it,

send an email to [email protected].

Quoted 1 line

To post to this group, send email to

[email protected].

Quoted 1 line

To view this discussion on the web visithttps://groups.google.

com/d/msgid/outreachy-kernel/20170321133021.6737-1-ar

Quoted 6 lines
Quoted 6 lines

ushisinghal19971997%40gmail.com.

Quoted 1 line

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google

Groups

Quoted 2 lines
Quoted 2 lines

"outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send

an

Quoted 2 lines
Quoted 2 lines

email to [email protected].
To post to this group, send email to [email protected]

.

Quoted 1 line
Quoted 1 line

To view this discussion on the web visithttps://groups.google.

com/d/msgid/outreachy-kernel/CA%2BXqjF9dVy33Dsv0H2z8x

Quoted 4 lines
Quoted 4 lines

taNeMOW7SQgr4qa4wLwz6xFNVTsUA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

#10 lore raw
In reply to Julia Lawall
Quoted 63 lines · Julia Lawall
Quoted 3 lines · Arushi Singhal

On Tue, Mar 21, 2017 at 10:32 PM, Alison Schofield

<[email protected]>

Quoted 10 lines

wrote:

      On Tue, Mar 21, 2017 at 05:39:38PM +0100, Julia Lawall wrote:
      >
      >
      > On Tue, 21 Mar 2017, Arushi Singhal wrote:
      >
      > > On Tue, Mar 21, 2017 at 9:33 PM, Alison Schofield
      <[email protected]>
      > > wrote:
      > >       On Tue, Mar 21, 2017 at 07:00:17PM +0530, Arushi
Quoted 8 lines
      Singhal wrote:
      > >       > Patchseries of IIO coding tasks
      > >
      > >       This wouldn't be a patchset.  Although they touch the
      same
      > >       driver, the changes are unrelated.  See more below...
      > >
      > > This I have send as a Patchset because as you have

mentioned

Quoted 10 lines

below that the
> > [PATCH 2/2] was already done before by someone but I think so it is not yet
> > applied in the Greg's tree yet.So I have done both the changes and as they
> > should be applied one after other so that's why I have send them as
> > Patchset.
>
> For the IIO patches, it is better to work on the IIO tree,

not

Quoted 10 lines

Greg's.
> Greg manages staging, not IIO.  The IIO patches should appear in Greg's
> tree eventually.
>
> julia

We didn't direct applicants to create an iio tree.  At this point,
it seems more than is necessary.  They can follow the

directions

Quoted 5 lines

in the
task descriptions and avoid the collisions.

Of course, they are welcome to create a tree to iio/testing.

Quoted 8 lines

(IMHO it's more overhead/busy work and maybe not the best use of time in the home stretch of the application period.)

alisons

Hi Alison
As you have mentioned that my [PATCH 2/2] is already being done

someone. So

Quoted 9 lines
Quoted 1 line

how can I make the changes of [PATCH 1/2] on top of it as [PATCH 2/2]

is not

Quoted 1 line

yet applied on the staging tree.

Make a patch that applies to the current state of the IIO tree. Just clone that one like you cloned the staging one.

julia

Slight amendment,. Normally would be the togreg branch which doesn't rebase.

With all the current churn might be best to use the testing branch and i will fix up any issues if i
have to rebase as result of build tests.

Will.send Greg a pull later anyway, so should be less difference after he pulls that.

J

Quoted 80 lines
Quoted 7 lines

Please suggest me.
Thanks
Arushi
>
> >       >
> >       > Arushi Singhal (2):
> >       >   staging: ad7759: Replace mlock with driver

private

Quoted 37 lines

lock
> >
> >       This one is already been submitted.  If you have a v2 for it,
> >       then v2
> >       the original patch.
> >
> > Is it submitted by me only before? And this is not the v2. > > I have just resed it.
> >       >   staging: iio: ade7759: Move header content to implementation
> >       file
> >
> >       This patch is done and applied already.  See the Coding Task #1
> >       notes
> >       in the IIO Tasks page.
> >
> > Not at applied I think so.
> > Thanks
> > Arushi
> >
> >       alisons
> >
> >       >
> >       >  drivers/staging/iio/meter/ade7759.c   | 56 > >       +++++++++++++++++++++++++++++++++--
> >       >  drivers/staging/iio/meter/ade7759.h   | 53 > >       ---------------------------------
> >       >  2 files changed, 54 insertions(+), 57 deletions(-) > >       >
> >       > --
> >       > 2.11.0
> >       >
> > > --
> > > You received this message because you are subscribed to the Google

Quoted 8 lines

> > Groups "outreachy-kernel" group.
> > > To unsubscribe from this group and stop receiving emails from it,
> > send an email to [email protected].
> > > To post to this group, send email to
> > [email protected].
> > > To view this discussion on the

webvisithttps://groups.google.com/d/msgid/outreachy-kernel/20170321133021.6737

Quoted 8 lines

-1-ar
> > ushisinghal19971997%40gmail.com.
> > > For more options, visit
https://groups.google.com/d/optout.
> >
> >
> > --
> > You received this message because you are subscribed to the

Quoted 8 lines

Google Groups
> > "outreachy-kernel" group.
> > To unsubscribe from this group and stop receiving emails from it, send an
> > email to [email protected]. > > To post to this group, send email to [email protected].
> > To view this discussion on the

webvisithttps://groups.google.com/d/msgid/outreachy-kernel/CA%2BXqjF9dVy33Dsv0

Quoted 9 lines
      H2z8x
      > > taNeMOW7SQgr4qa4wLwz6xFNVTsUA%40mail.gmail.com.
      > > For more options, visit https://groups.google.com/d/optout.
      > >
      > >
Signature · 1 line
Sent from my Android device with K-9 Mail. Please excuse my brevity.