All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kristian Evensen <kristian.evensen@gmail.com>
To: linux-i2c@vger.kernel.org
Subject: mt7621 i2c fails with upstream driver
Date: Wed, 5 Jan 2022 10:51:38 +0100	[thread overview]
Message-ID: <CAKfDRXgUvN19PUd_ebRJs-k_ytrGwgA=e6d3QJ9cwJogUGpoyw@mail.gmail.com> (raw)

Hello,

I am in the process of bringing kernel 5.10 up on an mt7621-based
board. The board is equipped with a temperature sensor that is
connected to the i2c bus. Reading the temperature worked fine with my
previous kernel (OpenWRT 4.14/downstream i2c driver), but fails when I
use the upstream driver.

With the 5.10 i2c-mt7621-driver, i2cdetect is no longer able to detect
the sensor and i2cget fails with "Error: Read failed". An strace of
i2cget reveals the cause to be the final ioctl call failing with
ETIMEDOUT.

Replacing the new with the old driver makes i2c work again, but I
would like to try to avoid that. My knowledge of i2c is very limited,
so I wondered if anyone knows what could be wrong or have any
suggestions on things I can try to for example change in the driver?

Thanks in advance for any help,
Kristian

             reply	other threads:[~2022-01-05  9:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-05  9:51 Kristian Evensen [this message]
2022-01-05 11:45 ` mt7621 i2c fails with upstream driver Kristian Evensen
2022-01-06 13:23 ` Wolfram Sang

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='CAKfDRXgUvN19PUd_ebRJs-k_ytrGwgA=e6d3QJ9cwJogUGpoyw@mail.gmail.com' \
    --to=kristian.evensen@gmail.com \
    --cc=linux-i2c@vger.kernel.org \
    /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.