Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1652000

Re: [PATCH] i2c: pca954x: Add option to skip disabling PCA954x Mux device

From Andy Shevchenko <andy.shevchenko@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH] i2c: pca954x: Add option to skip disabling PCA954x Mux device
Date 2017-05-28 00:40 +0200
Message-ID <tLSxj-1HD-11@gated-at.bofh.it> (permalink)
References <tLSxj-1HD-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, May 9, 2017 at 11:20 AM,  <ying.zhang22455@nxp.com> wrote:

> On some Layerscape boards like LS2085ARDB/LS2080ARDB,
> input pull-up resistors on PCA954x Mux device are
> missing on board. So, if mux are disabled after powered-on,
> input lines will float leading to incorrect functionality.
>
> Hence, PCA954x Mux device should never be turned-off after
> power-on.
>
> Add option to skip disabling PCA954x Mux device
> if device tree contians "i2c-mux-never-disable" property
> for pca954x device node.

> +#ifdef CONFIG_ARCH_LAYERSCAPE

This is 99.99% is no go.

You need to spend more time to make the driver more generic (perhaps
using device property instead) and not using ugly #ifdefery.


-- 
With Best Regards,
Andy Shevchenko

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

Re: [PATCH] i2c: pca954x: Add option to skip disabling PCA954x Mux device Andy Shevchenko <andy.shevchenko@gmail.com> - 2017-05-28 00:40 +0200

csiph-web