All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jonathan Cameron <Jonathan.Cameron@Huawei.com>
To: Rohit Sarkar <rohitsarkar5398@gmail.com>
Cc: <linux-iio@vger.kernel.org>, <device-drivers-devel@blackfin.uclinux.org>
Subject: Re: IIO staging TODO
Date: Mon, 24 Feb 2020 18:00:03 +0000	[thread overview]
Message-ID: <20200224180003.00007d63@Huawei.com> (raw)
In-Reply-To: <20200223090609.GA5222@SARKAR>

On Sun, 23 Feb 2020 14:36:09 +0530
Rohit Sarkar <rohitsarkar5398@gmail.com> wrote:

> Hey,
> I was going through the TODO in staging/iio.
> 
> "
> Convert all uses of the old GPIO API from <linux/gpio.h> to the
> GPIO descriptor API in <linux/gpio/consumer.h> and look up GPIO
> lines from device tree, ACPI or board files, board files should
> use <linux/gpio/machine.h>.
> "
> 
> I couldn't find any usages of the old gpio API in iio staging. We can
> probably update the TODO to remove this item.

Cool. Patches to the TODO welcome :) I guess the last of these got killed off.

> 
> Was wondering if there is any other TODO/ low hanging fruit in IIO?

If you want to take a look at device tree bindings there is definitely work
to be done there.

* Missing binding docs for devices that are obviously used via device tree.
* Yaml conversions of abandoned drivers. 

I'd mostly like to leave actually doing yaml conversions of actively
maintained drivers to their maintainers but I suspect we have quite a few
where no one has touched them in years.

Another area is missing ABI documentation.

Reviewing if there is anything worth keeping in drivers/staging/iio/Documentation
and putting it in the right place if so is also useful.

For code related stuff, I suspect the remaining staging drivers are still
there for a reason (often a hard problem to be resolved).

One task we often ask people to look at is uses of iio_dev->mlock.
That lock should never be used directly but we were less than careful
about it in the early days of IIO so there are still a few instances
in drivers.  My max1363 driver for example :)

Moving to either a local lock, or to using the iio_claim_direct etc
functions to manage this in a race free way tidies this bit of implementation
mess up.  It requires careful analysis of 'what' the lock is there for and
patches need to state your conclusions on that clearly so others can
verify you are correct!

One thing to note is never send too many patches of the same type out
until you have reviews back.  It's too easy to have the same issue repeated
many times over, so better to send things out slower.

Thanks and good luck,

Jonathan

> 
> Thanks,
> Rohit



  reply	other threads:[~2020-02-24 18:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-23  9:06 IIO staging TODO Rohit Sarkar
2020-02-24 18:00 ` Jonathan Cameron [this message]
2020-02-25  7:19   ` Ardelean, Alexandru

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200224180003.00007d63@Huawei.com \
    --to=jonathan.cameron@huawei.com \
    --cc=device-drivers-devel@blackfin.uclinux.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=rohitsarkar5398@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.