mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ryan Chen <ryan_chen@aspeedtech.com>
To: Philipp Zabel <p.zabel@pengutronix.de>,
	"brendan.higgins@linux.dev" <brendan.higgins@linux.dev>,
	"benh@kernel.crashing.org" <benh@kernel.crashing.org>,
	"joel@jms.id.au" <joel@jms.id.au>,
	"andi.shyti@kernel.org" <andi.shyti@kernel.org>,
	"robh@kernel.org" <robh@kernel.org>,
	"krzk+dt@kernel.org" <krzk+dt@kernel.org>,
	"conor+dt@kernel.org" <conor+dt@kernel.org>,
	"andrew@codeconstruct.com.au" <andrew@codeconstruct.com.au>,
	"andriy.shevchenko@linux.intel.com"
	<andriy.shevchenko@linux.intel.com>,
	"linux-i2c@vger.kernel.org" <linux-i2c@vger.kernel.org>,
	"openbmc@lists.ozlabs.org" <openbmc@lists.ozlabs.org>,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
	"linux-arm-kernel@lists.infradead.org"
	<linux-arm-kernel@lists.infradead.org>,
	"linux-aspeed@lists.ozlabs.org" <linux-aspeed@lists.ozlabs.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: RE: [PATCH v15 2/3] i2c: aspeed: support AST2600 i2c new register mode driver
Date: Fri, 15 Nov 2024 00:18:27 +0000	[thread overview]
Message-ID: <OS8PR06MB75412A3FB0FD82174DD1C7D9F2242@OS8PR06MB7541.apcprd06.prod.outlook.com> (raw)
In-Reply-To: <6d8a0d8916e185090423d42217262450ee948088.camel@pengutronix.de>

> Subject: Re: [PATCH v15 2/3] i2c: aspeed: support AST2600 i2c new register
> mode driver
> 
> On Mi, 2024-11-13 at 07:43 +0000, Ryan Chen wrote:
> > > Subject: Re: [PATCH v15 2/3] i2c: aspeed: support AST2600 i2c new
> > > register mode driver
> > >
> > > On Mo, 2024-10-07 at 11:52 +0800, Ryan Chen wrote:
> > > > Add i2c new register mode driver to support AST2600 i2c new
> > > > register mode. AST2600 i2c controller have legacy and new register
> > > > mode.
> > > > The
> > > > new register mode have global register support 4 base clock for
> > > > scl clock selection, and new clock divider mode. The new register
> > > > mode have separate register set to control i2c controller and
> > > > target.
> > > > This
> > > > patch is for i2c controller mode driver.
> > > >
> > > > Signed-off-by: Ryan Chen <ryan_chen@aspeedtech.com>
> > > > ---
> > > >  drivers/i2c/busses/Kconfig       |   11 +
> > > >  drivers/i2c/busses/Makefile      |    1 +
> > > >  drivers/i2c/busses/i2c-ast2600.c | 1032
> > > > ++++++++++++++++++++++++++++++
> > > >  3 files changed, 1044 insertions(+)
> > > >  create mode 100644 drivers/i2c/busses/i2c-ast2600.c
> > > >
> > > [...]
> > > > diff --git a/drivers/i2c/busses/i2c-ast2600.c
> > > > b/drivers/i2c/busses/i2c-ast2600.c
> > > > new file mode 100644
> > > > index 000000000000..17ba0ee77c27
> > > > --- /dev/null
> > > > +++ b/drivers/i2c/busses/i2c-ast2600.c
> > > > @@ -0,0 +1,1032 @@
> > > [...]
> > > > +static int ast2600_i2c_probe(struct platform_device *pdev) {
> > > [...]
> > > > +	i2c_bus->rst = devm_reset_control_get_shared(dev, NULL);
> > > > +	if (IS_ERR(i2c_bus->rst))
> > > > +		return dev_err_probe(dev, PTR_ERR(i2c_bus->rst),
> > > > "Missing reset
> > > > +ctrl\n");
> > > > +
> > > > +	reset_control_deassert(i2c_bus->rst);
> > >
> > > The shared reset should be asserted again in ast2600_i2c_remove().
> > >
> > Hello,
> > It is share reset, if unbond driver and asserted the reset, it will
> > affect others driver running (which is share with the same reset.)
> 
> Shared reset_control_deassert/assert are refcounted, like clk_enable/disable,
> see [1]. The reset line will only be asserted when the last driver calls
> reset_control_assert.
> 
> [1] https://docs.kernel.org/driver-api/reset.html#shared-and-exclusive-resets
> 
Thanks a lot, I will add in next version submit.

> regards
> Philipp

  reply	other threads:[~2024-11-15  0:18 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-07  3:52 [PATCH v15 0/3] Add ASPEED AST2600 I2Cv2 controller driver Ryan Chen
2024-10-07  3:52 ` [PATCH v15 1/3] dt-bindings: i2c: aspeed: support for AST2600-i2cv2 Ryan Chen
2025-02-21  8:25   ` Ryan Chen
2025-02-21  8:36     ` Krzysztof Kozlowski
2024-10-07  3:52 ` [PATCH v15 2/3] i2c: aspeed: support AST2600 i2c new register mode driver Ryan Chen
2024-11-11 11:00   ` Naresh Solanki
2024-11-12  7:00     ` Ryan Chen
2024-11-12  9:22       ` Naresh Solanki
2024-11-12  4:54   ` Yikai Tsai
2024-11-12  6:55     ` Ryan Chen
2024-11-12 10:22   ` Philipp Zabel
2024-11-13  7:43     ` Ryan Chen
2024-11-13 10:03       ` Philipp Zabel
2024-11-15  0:18         ` Ryan Chen [this message]
2024-10-07  3:52 ` [PATCH v15 3/3] i2c: aspeed: support AST2600 i2c new register target " Ryan Chen

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=OS8PR06MB75412A3FB0FD82174DD1C7D9F2242@OS8PR06MB7541.apcprd06.prod.outlook.com \
    --to=ryan_chen@aspeedtech.com \
    --cc=andi.shyti@kernel.org \
    --cc=andrew@codeconstruct.com.au \
    --cc=andriy.shevchenko@linux.intel.com \
    --cc=benh@kernel.crashing.org \
    --cc=brendan.higgins@linux.dev \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=joel@jms.id.au \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-aspeed@lists.ozlabs.org \
    --cc=linux-i2c@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=openbmc@lists.ozlabs.org \
    --cc=p.zabel@pengutronix.de \
    --cc=robh@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®