From: Jonathan Cameron <Jonathan.Cameron@Huawei.com>
To: Serge Semin <fancer.lancer@gmail.com>
Cc: Li Zetao <lizetao1@huawei.com>, <andrew@aj.id.au>,
<angelogioacchino.delregno@collabora.com>,
<avifishman70@gmail.com>, <bcm-kernel-feedback-list@broadcom.com>,
<benjaminfair@google.com>, <broonie@kernel.org>,
<chin-ting_kuo@aspeedtech.com>, <clg@kaod.org>,
<conor.dooley@microchip.com>, <daire.mcnamara@microchip.com>,
<florian.fainelli@broadcom.com>, <heiko@sntech.de>,
<jbrunet@baylibre.com>, <joel@jms.id.au>, <khilman@baylibre.com>,
<linus.walleij@linaro.org>, <linux-amlogic@lists.infradead.org>,
<linux-arm-kernel@lists.infradead.org>,
<linux-aspeed@lists.ozlabs.org>,
<linux-mediatek@lists.infradead.org>,
<linux-riscv@lists.infradead.org>,
<linux-rockchip@lists.infradead.org>,
<linux-rpi-kernel@lists.infradead.org>,
<linux-spi@vger.kernel.org>, <martin.blumenstingl@googlemail.com>,
<matthias.bgg@gmail.com>, <neil.armstrong@linaro.org>,
<olteanv@gmail.com>, <openbmc@lists.ozlabs.org>,
<rjui@broadcom.com>, <sbranden@broadcom.com>,
<tali.perry1@gmail.com>, <tmaimon77@gmail.com>,
<venture@google.com>, <yuenn@google.com>
Subject: Re: [PATCH -next v2 12/25] spi: dw-mmio: Use helper function devm_clk_get_*()
Date: Wed, 23 Aug 2023 18:15:06 +0100 [thread overview]
Message-ID: <20230823181506.00007731@Huawei.com> (raw)
In-Reply-To: <pflv2canelmm3ea7zpqgxrzj3s7cl56crpdbupkgqlabfnasjj@dkfyiubao2gj>
On Wed, 23 Aug 2023 17:20:12 +0300
Serge Semin <fancer.lancer@gmail.com> wrote:
> On Wed, Aug 23, 2023 at 09:39:25PM +0800, Li Zetao wrote:
> > Since commit 7ef9651e9792 ("clk: Provide new devm_clk helpers for prepared
> > and enabled clocks"), devm_clk_get() and clk_prepare_enable() can now be
> > replaced by devm_clk_get_enabled() when driver enables (and possibly
> > prepares) the clocks for the whole lifetime of the device. Moreover, it is
> > no longer necessary to unprepare and disable the clocks explicitly. Also,
> > devm_clk_get_optional() and clk_prepare_enable() can now be replaced by
> > devm_clk_get_optional_enabled(). Moreover, the lable "out_clk" no longer
> > makes sense, rename it to "out_reset".
> >
> > Signed-off-by: Li Zetao <lizetao1@huawei.com>
> > ---
> > v1 -> v2: Return directly instead of calling reset_control_deassert()
> > before the reset control handler has been requested. And use the
> > "out_reset" label instead of "out" before calling pm_runtime_enable().
>
> LGTM. Thanks!
> Acked-by: Serge Semin <fancer.lancer@gmail.com>
Agreed - looks much better now.
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
>
> -Serge(y)
>
> >
> > drivers/spi/spi-dw-mmio.c | 31 +++++++++----------------------
> > 1 file changed, 9 insertions(+), 22 deletions(-)
> >
> > diff --git a/drivers/spi/spi-dw-mmio.c b/drivers/spi/spi-dw-mmio.c
> > index 805264c9c65c..46801189a651 100644
> > --- a/drivers/spi/spi-dw-mmio.c
> > +++ b/drivers/spi/spi-dw-mmio.c
> > @@ -340,29 +340,20 @@ static int dw_spi_mmio_probe(struct platform_device *pdev)
> > if (dws->irq < 0)
> > return dws->irq; /* -ENXIO */
> >
> > - dwsmmio->clk = devm_clk_get(&pdev->dev, NULL);
> > + dwsmmio->clk = devm_clk_get_enabled(&pdev->dev, NULL);
> > if (IS_ERR(dwsmmio->clk))
> > return PTR_ERR(dwsmmio->clk);
> > - ret = clk_prepare_enable(dwsmmio->clk);
> > - if (ret)
> > - return ret;
> >
> > /* Optional clock needed to access the registers */
> > - dwsmmio->pclk = devm_clk_get_optional(&pdev->dev, "pclk");
> > - if (IS_ERR(dwsmmio->pclk)) {
> > - ret = PTR_ERR(dwsmmio->pclk);
> > - goto out_clk;
> > - }
> > - ret = clk_prepare_enable(dwsmmio->pclk);
> > - if (ret)
> > - goto out_clk;
> > + dwsmmio->pclk = devm_clk_get_optional_enabled(&pdev->dev, "pclk");
> > + if (IS_ERR(dwsmmio->pclk))
> > + return PTR_ERR(dwsmmio->pclk);
> >
> > /* find an optional reset controller */
> > dwsmmio->rstc = devm_reset_control_get_optional_exclusive(&pdev->dev, "spi");
> > - if (IS_ERR(dwsmmio->rstc)) {
> > - ret = PTR_ERR(dwsmmio->rstc);
> > - goto out_clk;
> > - }
> > + if (IS_ERR(dwsmmio->rstc))
> > + return PTR_ERR(dwsmmio->rstc);
> > +
> > reset_control_deassert(dwsmmio->rstc);
> >
> > dws->bus_num = pdev->id;
> > @@ -383,7 +374,7 @@ static int dw_spi_mmio_probe(struct platform_device *pdev)
> > if (init_func) {
> > ret = init_func(pdev, dwsmmio);
> > if (ret)
> > - goto out;
> > + goto out_reset;
> > }
> >
> > pm_runtime_enable(&pdev->dev);
> > @@ -397,9 +388,7 @@ static int dw_spi_mmio_probe(struct platform_device *pdev)
> >
> > out:
> > pm_runtime_disable(&pdev->dev);
> > - clk_disable_unprepare(dwsmmio->pclk);
> > -out_clk:
> > - clk_disable_unprepare(dwsmmio->clk);
> > +out_reset:
> > reset_control_assert(dwsmmio->rstc);
> >
> > return ret;
> > @@ -411,8 +400,6 @@ static void dw_spi_mmio_remove(struct platform_device *pdev)
> >
> > dw_spi_remove_host(&dwsmmio->dws);
> > pm_runtime_disable(&pdev->dev);
> > - clk_disable_unprepare(dwsmmio->pclk);
> > - clk_disable_unprepare(dwsmmio->clk);
> > reset_control_assert(dwsmmio->rstc);
> > }
> >
> > --
> > 2.34.1
> >
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
>
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
WARNING: multiple messages have this Message-ID (diff)
From: Jonathan Cameron <Jonathan.Cameron@Huawei.com>
To: linux-aspeed@lists.ozlabs.org
Subject: [PATCH -next v2 12/25] spi: dw-mmio: Use helper function devm_clk_get_*()
Date: Wed, 23 Aug 2023 18:15:06 +0100 [thread overview]
Message-ID: <20230823181506.00007731@Huawei.com> (raw)
In-Reply-To: <pflv2canelmm3ea7zpqgxrzj3s7cl56crpdbupkgqlabfnasjj@dkfyiubao2gj>
On Wed, 23 Aug 2023 17:20:12 +0300
Serge Semin <fancer.lancer@gmail.com> wrote:
> On Wed, Aug 23, 2023 at 09:39:25PM +0800, Li Zetao wrote:
> > Since commit 7ef9651e9792 ("clk: Provide new devm_clk helpers for prepared
> > and enabled clocks"), devm_clk_get() and clk_prepare_enable() can now be
> > replaced by devm_clk_get_enabled() when driver enables (and possibly
> > prepares) the clocks for the whole lifetime of the device. Moreover, it is
> > no longer necessary to unprepare and disable the clocks explicitly. Also,
> > devm_clk_get_optional() and clk_prepare_enable() can now be replaced by
> > devm_clk_get_optional_enabled(). Moreover, the lable "out_clk" no longer
> > makes sense, rename it to "out_reset".
> >
> > Signed-off-by: Li Zetao <lizetao1@huawei.com>
> > ---
> > v1 -> v2: Return directly instead of calling reset_control_deassert()
> > before the reset control handler has been requested. And use the
> > "out_reset" label instead of "out" before calling pm_runtime_enable().
>
> LGTM. Thanks!
> Acked-by: Serge Semin <fancer.lancer@gmail.com>
Agreed - looks much better now.
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
>
> -Serge(y)
>
> >
> > drivers/spi/spi-dw-mmio.c | 31 +++++++++----------------------
> > 1 file changed, 9 insertions(+), 22 deletions(-)
> >
> > diff --git a/drivers/spi/spi-dw-mmio.c b/drivers/spi/spi-dw-mmio.c
> > index 805264c9c65c..46801189a651 100644
> > --- a/drivers/spi/spi-dw-mmio.c
> > +++ b/drivers/spi/spi-dw-mmio.c
> > @@ -340,29 +340,20 @@ static int dw_spi_mmio_probe(struct platform_device *pdev)
> > if (dws->irq < 0)
> > return dws->irq; /* -ENXIO */
> >
> > - dwsmmio->clk = devm_clk_get(&pdev->dev, NULL);
> > + dwsmmio->clk = devm_clk_get_enabled(&pdev->dev, NULL);
> > if (IS_ERR(dwsmmio->clk))
> > return PTR_ERR(dwsmmio->clk);
> > - ret = clk_prepare_enable(dwsmmio->clk);
> > - if (ret)
> > - return ret;
> >
> > /* Optional clock needed to access the registers */
> > - dwsmmio->pclk = devm_clk_get_optional(&pdev->dev, "pclk");
> > - if (IS_ERR(dwsmmio->pclk)) {
> > - ret = PTR_ERR(dwsmmio->pclk);
> > - goto out_clk;
> > - }
> > - ret = clk_prepare_enable(dwsmmio->pclk);
> > - if (ret)
> > - goto out_clk;
> > + dwsmmio->pclk = devm_clk_get_optional_enabled(&pdev->dev, "pclk");
> > + if (IS_ERR(dwsmmio->pclk))
> > + return PTR_ERR(dwsmmio->pclk);
> >
> > /* find an optional reset controller */
> > dwsmmio->rstc = devm_reset_control_get_optional_exclusive(&pdev->dev, "spi");
> > - if (IS_ERR(dwsmmio->rstc)) {
> > - ret = PTR_ERR(dwsmmio->rstc);
> > - goto out_clk;
> > - }
> > + if (IS_ERR(dwsmmio->rstc))
> > + return PTR_ERR(dwsmmio->rstc);
> > +
> > reset_control_deassert(dwsmmio->rstc);
> >
> > dws->bus_num = pdev->id;
> > @@ -383,7 +374,7 @@ static int dw_spi_mmio_probe(struct platform_device *pdev)
> > if (init_func) {
> > ret = init_func(pdev, dwsmmio);
> > if (ret)
> > - goto out;
> > + goto out_reset;
> > }
> >
> > pm_runtime_enable(&pdev->dev);
> > @@ -397,9 +388,7 @@ static int dw_spi_mmio_probe(struct platform_device *pdev)
> >
> > out:
> > pm_runtime_disable(&pdev->dev);
> > - clk_disable_unprepare(dwsmmio->pclk);
> > -out_clk:
> > - clk_disable_unprepare(dwsmmio->clk);
> > +out_reset:
> > reset_control_assert(dwsmmio->rstc);
> >
> > return ret;
> > @@ -411,8 +400,6 @@ static void dw_spi_mmio_remove(struct platform_device *pdev)
> >
> > dw_spi_remove_host(&dwsmmio->dws);
> > pm_runtime_disable(&pdev->dev);
> > - clk_disable_unprepare(dwsmmio->pclk);
> > - clk_disable_unprepare(dwsmmio->clk);
> > reset_control_assert(dwsmmio->rstc);
> > }
> >
> > --
> > 2.34.1
> >
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
>
WARNING: multiple messages have this Message-ID (diff)
From: Jonathan Cameron <Jonathan.Cameron@Huawei.com>
To: Serge Semin <fancer.lancer@gmail.com>
Cc: Li Zetao <lizetao1@huawei.com>, <andrew@aj.id.au>,
<angelogioacchino.delregno@collabora.com>,
<avifishman70@gmail.com>, <bcm-kernel-feedback-list@broadcom.com>,
<benjaminfair@google.com>, <broonie@kernel.org>,
<chin-ting_kuo@aspeedtech.com>, <clg@kaod.org>,
<conor.dooley@microchip.com>, <daire.mcnamara@microchip.com>,
<florian.fainelli@broadcom.com>, <heiko@sntech.de>,
<jbrunet@baylibre.com>, <joel@jms.id.au>, <khilman@baylibre.com>,
<linus.walleij@linaro.org>, <linux-amlogic@lists.infradead.org>,
<linux-arm-kernel@lists.infradead.org>,
<linux-aspeed@lists.ozlabs.org>,
<linux-mediatek@lists.infradead.org>,
<linux-riscv@lists.infradead.org>,
<linux-rockchip@lists.infradead.org>,
<linux-rpi-kernel@lists.infradead.org>,
<linux-spi@vger.kernel.org>, <martin.blumenstingl@googlemail.com>,
<matthias.bgg@gmail.com>, <neil.armstrong@linaro.org>,
<olteanv@gmail.com>, <openbmc@lists.ozlabs.org>,
<rjui@broadcom.com>, <sbranden@broadcom.com>,
<tali.perry1@gmail.com>, <tmaimon77@gmail.com>,
<venture@google.com>, <yuenn@google.com>
Subject: Re: [PATCH -next v2 12/25] spi: dw-mmio: Use helper function devm_clk_get_*()
Date: Wed, 23 Aug 2023 18:15:06 +0100 [thread overview]
Message-ID: <20230823181506.00007731@Huawei.com> (raw)
In-Reply-To: <pflv2canelmm3ea7zpqgxrzj3s7cl56crpdbupkgqlabfnasjj@dkfyiubao2gj>
On Wed, 23 Aug 2023 17:20:12 +0300
Serge Semin <fancer.lancer@gmail.com> wrote:
> On Wed, Aug 23, 2023 at 09:39:25PM +0800, Li Zetao wrote:
> > Since commit 7ef9651e9792 ("clk: Provide new devm_clk helpers for prepared
> > and enabled clocks"), devm_clk_get() and clk_prepare_enable() can now be
> > replaced by devm_clk_get_enabled() when driver enables (and possibly
> > prepares) the clocks for the whole lifetime of the device. Moreover, it is
> > no longer necessary to unprepare and disable the clocks explicitly. Also,
> > devm_clk_get_optional() and clk_prepare_enable() can now be replaced by
> > devm_clk_get_optional_enabled(). Moreover, the lable "out_clk" no longer
> > makes sense, rename it to "out_reset".
> >
> > Signed-off-by: Li Zetao <lizetao1@huawei.com>
> > ---
> > v1 -> v2: Return directly instead of calling reset_control_deassert()
> > before the reset control handler has been requested. And use the
> > "out_reset" label instead of "out" before calling pm_runtime_enable().
>
> LGTM. Thanks!
> Acked-by: Serge Semin <fancer.lancer@gmail.com>
Agreed - looks much better now.
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
>
> -Serge(y)
>
> >
> > drivers/spi/spi-dw-mmio.c | 31 +++++++++----------------------
> > 1 file changed, 9 insertions(+), 22 deletions(-)
> >
> > diff --git a/drivers/spi/spi-dw-mmio.c b/drivers/spi/spi-dw-mmio.c
> > index 805264c9c65c..46801189a651 100644
> > --- a/drivers/spi/spi-dw-mmio.c
> > +++ b/drivers/spi/spi-dw-mmio.c
> > @@ -340,29 +340,20 @@ static int dw_spi_mmio_probe(struct platform_device *pdev)
> > if (dws->irq < 0)
> > return dws->irq; /* -ENXIO */
> >
> > - dwsmmio->clk = devm_clk_get(&pdev->dev, NULL);
> > + dwsmmio->clk = devm_clk_get_enabled(&pdev->dev, NULL);
> > if (IS_ERR(dwsmmio->clk))
> > return PTR_ERR(dwsmmio->clk);
> > - ret = clk_prepare_enable(dwsmmio->clk);
> > - if (ret)
> > - return ret;
> >
> > /* Optional clock needed to access the registers */
> > - dwsmmio->pclk = devm_clk_get_optional(&pdev->dev, "pclk");
> > - if (IS_ERR(dwsmmio->pclk)) {
> > - ret = PTR_ERR(dwsmmio->pclk);
> > - goto out_clk;
> > - }
> > - ret = clk_prepare_enable(dwsmmio->pclk);
> > - if (ret)
> > - goto out_clk;
> > + dwsmmio->pclk = devm_clk_get_optional_enabled(&pdev->dev, "pclk");
> > + if (IS_ERR(dwsmmio->pclk))
> > + return PTR_ERR(dwsmmio->pclk);
> >
> > /* find an optional reset controller */
> > dwsmmio->rstc = devm_reset_control_get_optional_exclusive(&pdev->dev, "spi");
> > - if (IS_ERR(dwsmmio->rstc)) {
> > - ret = PTR_ERR(dwsmmio->rstc);
> > - goto out_clk;
> > - }
> > + if (IS_ERR(dwsmmio->rstc))
> > + return PTR_ERR(dwsmmio->rstc);
> > +
> > reset_control_deassert(dwsmmio->rstc);
> >
> > dws->bus_num = pdev->id;
> > @@ -383,7 +374,7 @@ static int dw_spi_mmio_probe(struct platform_device *pdev)
> > if (init_func) {
> > ret = init_func(pdev, dwsmmio);
> > if (ret)
> > - goto out;
> > + goto out_reset;
> > }
> >
> > pm_runtime_enable(&pdev->dev);
> > @@ -397,9 +388,7 @@ static int dw_spi_mmio_probe(struct platform_device *pdev)
> >
> > out:
> > pm_runtime_disable(&pdev->dev);
> > - clk_disable_unprepare(dwsmmio->pclk);
> > -out_clk:
> > - clk_disable_unprepare(dwsmmio->clk);
> > +out_reset:
> > reset_control_assert(dwsmmio->rstc);
> >
> > return ret;
> > @@ -411,8 +400,6 @@ static void dw_spi_mmio_remove(struct platform_device *pdev)
> >
> > dw_spi_remove_host(&dwsmmio->dws);
> > pm_runtime_disable(&pdev->dev);
> > - clk_disable_unprepare(dwsmmio->pclk);
> > - clk_disable_unprepare(dwsmmio->clk);
> > reset_control_assert(dwsmmio->rstc);
> > }
> >
> > --
> > 2.34.1
> >
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
>
WARNING: multiple messages have this Message-ID (diff)
From: Jonathan Cameron <Jonathan.Cameron@Huawei.com>
To: Serge Semin <fancer.lancer@gmail.com>
Cc: Li Zetao <lizetao1@huawei.com>, <andrew@aj.id.au>,
<angelogioacchino.delregno@collabora.com>,
<avifishman70@gmail.com>, <bcm-kernel-feedback-list@broadcom.com>,
<benjaminfair@google.com>, <broonie@kernel.org>,
<chin-ting_kuo@aspeedtech.com>, <clg@kaod.org>,
<conor.dooley@microchip.com>, <daire.mcnamara@microchip.com>,
<florian.fainelli@broadcom.com>, <heiko@sntech.de>,
<jbrunet@baylibre.com>, <joel@jms.id.au>, <khilman@baylibre.com>,
<linus.walleij@linaro.org>, <linux-amlogic@lists.infradead.org>,
<linux-arm-kernel@lists.infradead.org>,
<linux-aspeed@lists.ozlabs.org>,
<linux-mediatek@lists.infradead.org>,
<linux-riscv@lists.infradead.org>,
<linux-rockchip@lists.infradead.org>,
<linux-rpi-kernel@lists.infradead.org>,
<linux-spi@vger.kernel.org>, <martin.blumenstingl@googlemail.com>,
<matthias.bgg@gmail.com>, <neil.armstrong@linaro.org>,
<olteanv@gmail.com>, <openbmc@lists.ozlabs.org>,
<rjui@broadcom.com>, <sbranden@broadcom.com>,
<tali.perry1@gmail.com>, <tmaimon77@gmail.com>,
<venture@google.com>, <yuenn@google.com>
Subject: Re: [PATCH -next v2 12/25] spi: dw-mmio: Use helper function devm_clk_get_*()
Date: Wed, 23 Aug 2023 18:15:06 +0100 [thread overview]
Message-ID: <20230823181506.00007731@Huawei.com> (raw)
In-Reply-To: <pflv2canelmm3ea7zpqgxrzj3s7cl56crpdbupkgqlabfnasjj@dkfyiubao2gj>
On Wed, 23 Aug 2023 17:20:12 +0300
Serge Semin <fancer.lancer@gmail.com> wrote:
> On Wed, Aug 23, 2023 at 09:39:25PM +0800, Li Zetao wrote:
> > Since commit 7ef9651e9792 ("clk: Provide new devm_clk helpers for prepared
> > and enabled clocks"), devm_clk_get() and clk_prepare_enable() can now be
> > replaced by devm_clk_get_enabled() when driver enables (and possibly
> > prepares) the clocks for the whole lifetime of the device. Moreover, it is
> > no longer necessary to unprepare and disable the clocks explicitly. Also,
> > devm_clk_get_optional() and clk_prepare_enable() can now be replaced by
> > devm_clk_get_optional_enabled(). Moreover, the lable "out_clk" no longer
> > makes sense, rename it to "out_reset".
> >
> > Signed-off-by: Li Zetao <lizetao1@huawei.com>
> > ---
> > v1 -> v2: Return directly instead of calling reset_control_deassert()
> > before the reset control handler has been requested. And use the
> > "out_reset" label instead of "out" before calling pm_runtime_enable().
>
> LGTM. Thanks!
> Acked-by: Serge Semin <fancer.lancer@gmail.com>
Agreed - looks much better now.
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
>
> -Serge(y)
>
> >
> > drivers/spi/spi-dw-mmio.c | 31 +++++++++----------------------
> > 1 file changed, 9 insertions(+), 22 deletions(-)
> >
> > diff --git a/drivers/spi/spi-dw-mmio.c b/drivers/spi/spi-dw-mmio.c
> > index 805264c9c65c..46801189a651 100644
> > --- a/drivers/spi/spi-dw-mmio.c
> > +++ b/drivers/spi/spi-dw-mmio.c
> > @@ -340,29 +340,20 @@ static int dw_spi_mmio_probe(struct platform_device *pdev)
> > if (dws->irq < 0)
> > return dws->irq; /* -ENXIO */
> >
> > - dwsmmio->clk = devm_clk_get(&pdev->dev, NULL);
> > + dwsmmio->clk = devm_clk_get_enabled(&pdev->dev, NULL);
> > if (IS_ERR(dwsmmio->clk))
> > return PTR_ERR(dwsmmio->clk);
> > - ret = clk_prepare_enable(dwsmmio->clk);
> > - if (ret)
> > - return ret;
> >
> > /* Optional clock needed to access the registers */
> > - dwsmmio->pclk = devm_clk_get_optional(&pdev->dev, "pclk");
> > - if (IS_ERR(dwsmmio->pclk)) {
> > - ret = PTR_ERR(dwsmmio->pclk);
> > - goto out_clk;
> > - }
> > - ret = clk_prepare_enable(dwsmmio->pclk);
> > - if (ret)
> > - goto out_clk;
> > + dwsmmio->pclk = devm_clk_get_optional_enabled(&pdev->dev, "pclk");
> > + if (IS_ERR(dwsmmio->pclk))
> > + return PTR_ERR(dwsmmio->pclk);
> >
> > /* find an optional reset controller */
> > dwsmmio->rstc = devm_reset_control_get_optional_exclusive(&pdev->dev, "spi");
> > - if (IS_ERR(dwsmmio->rstc)) {
> > - ret = PTR_ERR(dwsmmio->rstc);
> > - goto out_clk;
> > - }
> > + if (IS_ERR(dwsmmio->rstc))
> > + return PTR_ERR(dwsmmio->rstc);
> > +
> > reset_control_deassert(dwsmmio->rstc);
> >
> > dws->bus_num = pdev->id;
> > @@ -383,7 +374,7 @@ static int dw_spi_mmio_probe(struct platform_device *pdev)
> > if (init_func) {
> > ret = init_func(pdev, dwsmmio);
> > if (ret)
> > - goto out;
> > + goto out_reset;
> > }
> >
> > pm_runtime_enable(&pdev->dev);
> > @@ -397,9 +388,7 @@ static int dw_spi_mmio_probe(struct platform_device *pdev)
> >
> > out:
> > pm_runtime_disable(&pdev->dev);
> > - clk_disable_unprepare(dwsmmio->pclk);
> > -out_clk:
> > - clk_disable_unprepare(dwsmmio->clk);
> > +out_reset:
> > reset_control_assert(dwsmmio->rstc);
> >
> > return ret;
> > @@ -411,8 +400,6 @@ static void dw_spi_mmio_remove(struct platform_device *pdev)
> >
> > dw_spi_remove_host(&dwsmmio->dws);
> > pm_runtime_disable(&pdev->dev);
> > - clk_disable_unprepare(dwsmmio->pclk);
> > - clk_disable_unprepare(dwsmmio->clk);
> > reset_control_assert(dwsmmio->rstc);
> > }
> >
> > --
> > 2.34.1
> >
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
>
_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip
WARNING: multiple messages have this Message-ID (diff)
From: Jonathan Cameron <Jonathan.Cameron@Huawei.com>
To: Serge Semin <fancer.lancer@gmail.com>
Cc: Li Zetao <lizetao1@huawei.com>, <andrew@aj.id.au>,
<angelogioacchino.delregno@collabora.com>,
<avifishman70@gmail.com>, <bcm-kernel-feedback-list@broadcom.com>,
<benjaminfair@google.com>, <broonie@kernel.org>,
<chin-ting_kuo@aspeedtech.com>, <clg@kaod.org>,
<conor.dooley@microchip.com>, <daire.mcnamara@microchip.com>,
<florian.fainelli@broadcom.com>, <heiko@sntech.de>,
<jbrunet@baylibre.com>, <joel@jms.id.au>, <khilman@baylibre.com>,
<linus.walleij@linaro.org>, <linux-amlogic@lists.infradead.org>,
<linux-arm-kernel@lists.infradead.org>,
<linux-aspeed@lists.ozlabs.org>,
<linux-mediatek@lists.infradead.org>,
<linux-riscv@lists.infradead.org>,
<linux-rockchip@lists.infradead.org>,
<linux-rpi-kernel@lists.infradead.org>,
<linux-spi@vger.kernel.org>, <martin.blumenstingl@googlemail.com>,
<matthias.bgg@gmail.com>, <neil.armstrong@linaro.org>,
<olteanv@gmail.com>, <openbmc@lists.ozlabs.org>,
<rjui@broadcom.com>, <sbranden@broadcom.com>,
<tali.perry1@gmail.com>, <tmaimon77@gmail.com>,
<venture@google.com>, <yuenn@google.com>
Subject: Re: [PATCH -next v2 12/25] spi: dw-mmio: Use helper function devm_clk_get_*()
Date: Wed, 23 Aug 2023 18:15:06 +0100 [thread overview]
Message-ID: <20230823181506.00007731@Huawei.com> (raw)
In-Reply-To: <pflv2canelmm3ea7zpqgxrzj3s7cl56crpdbupkgqlabfnasjj@dkfyiubao2gj>
On Wed, 23 Aug 2023 17:20:12 +0300
Serge Semin <fancer.lancer@gmail.com> wrote:
> On Wed, Aug 23, 2023 at 09:39:25PM +0800, Li Zetao wrote:
> > Since commit 7ef9651e9792 ("clk: Provide new devm_clk helpers for prepared
> > and enabled clocks"), devm_clk_get() and clk_prepare_enable() can now be
> > replaced by devm_clk_get_enabled() when driver enables (and possibly
> > prepares) the clocks for the whole lifetime of the device. Moreover, it is
> > no longer necessary to unprepare and disable the clocks explicitly. Also,
> > devm_clk_get_optional() and clk_prepare_enable() can now be replaced by
> > devm_clk_get_optional_enabled(). Moreover, the lable "out_clk" no longer
> > makes sense, rename it to "out_reset".
> >
> > Signed-off-by: Li Zetao <lizetao1@huawei.com>
> > ---
> > v1 -> v2: Return directly instead of calling reset_control_deassert()
> > before the reset control handler has been requested. And use the
> > "out_reset" label instead of "out" before calling pm_runtime_enable().
>
> LGTM. Thanks!
> Acked-by: Serge Semin <fancer.lancer@gmail.com>
Agreed - looks much better now.
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
>
> -Serge(y)
>
> >
> > drivers/spi/spi-dw-mmio.c | 31 +++++++++----------------------
> > 1 file changed, 9 insertions(+), 22 deletions(-)
> >
> > diff --git a/drivers/spi/spi-dw-mmio.c b/drivers/spi/spi-dw-mmio.c
> > index 805264c9c65c..46801189a651 100644
> > --- a/drivers/spi/spi-dw-mmio.c
> > +++ b/drivers/spi/spi-dw-mmio.c
> > @@ -340,29 +340,20 @@ static int dw_spi_mmio_probe(struct platform_device *pdev)
> > if (dws->irq < 0)
> > return dws->irq; /* -ENXIO */
> >
> > - dwsmmio->clk = devm_clk_get(&pdev->dev, NULL);
> > + dwsmmio->clk = devm_clk_get_enabled(&pdev->dev, NULL);
> > if (IS_ERR(dwsmmio->clk))
> > return PTR_ERR(dwsmmio->clk);
> > - ret = clk_prepare_enable(dwsmmio->clk);
> > - if (ret)
> > - return ret;
> >
> > /* Optional clock needed to access the registers */
> > - dwsmmio->pclk = devm_clk_get_optional(&pdev->dev, "pclk");
> > - if (IS_ERR(dwsmmio->pclk)) {
> > - ret = PTR_ERR(dwsmmio->pclk);
> > - goto out_clk;
> > - }
> > - ret = clk_prepare_enable(dwsmmio->pclk);
> > - if (ret)
> > - goto out_clk;
> > + dwsmmio->pclk = devm_clk_get_optional_enabled(&pdev->dev, "pclk");
> > + if (IS_ERR(dwsmmio->pclk))
> > + return PTR_ERR(dwsmmio->pclk);
> >
> > /* find an optional reset controller */
> > dwsmmio->rstc = devm_reset_control_get_optional_exclusive(&pdev->dev, "spi");
> > - if (IS_ERR(dwsmmio->rstc)) {
> > - ret = PTR_ERR(dwsmmio->rstc);
> > - goto out_clk;
> > - }
> > + if (IS_ERR(dwsmmio->rstc))
> > + return PTR_ERR(dwsmmio->rstc);
> > +
> > reset_control_deassert(dwsmmio->rstc);
> >
> > dws->bus_num = pdev->id;
> > @@ -383,7 +374,7 @@ static int dw_spi_mmio_probe(struct platform_device *pdev)
> > if (init_func) {
> > ret = init_func(pdev, dwsmmio);
> > if (ret)
> > - goto out;
> > + goto out_reset;
> > }
> >
> > pm_runtime_enable(&pdev->dev);
> > @@ -397,9 +388,7 @@ static int dw_spi_mmio_probe(struct platform_device *pdev)
> >
> > out:
> > pm_runtime_disable(&pdev->dev);
> > - clk_disable_unprepare(dwsmmio->pclk);
> > -out_clk:
> > - clk_disable_unprepare(dwsmmio->clk);
> > +out_reset:
> > reset_control_assert(dwsmmio->rstc);
> >
> > return ret;
> > @@ -411,8 +400,6 @@ static void dw_spi_mmio_remove(struct platform_device *pdev)
> >
> > dw_spi_remove_host(&dwsmmio->dws);
> > pm_runtime_disable(&pdev->dev);
> > - clk_disable_unprepare(dwsmmio->pclk);
> > - clk_disable_unprepare(dwsmmio->clk);
> > reset_control_assert(dwsmmio->rstc);
> > }
> >
> > --
> > 2.34.1
> >
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
>
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
WARNING: multiple messages have this Message-ID (diff)
From: Jonathan Cameron <Jonathan.Cameron@Huawei.com>
To: Serge Semin <fancer.lancer@gmail.com>
Cc: Li Zetao <lizetao1@huawei.com>, <andrew@aj.id.au>,
<angelogioacchino.delregno@collabora.com>,
<avifishman70@gmail.com>, <bcm-kernel-feedback-list@broadcom.com>,
<benjaminfair@google.com>, <broonie@kernel.org>,
<chin-ting_kuo@aspeedtech.com>, <clg@kaod.org>,
<conor.dooley@microchip.com>, <daire.mcnamara@microchip.com>,
<florian.fainelli@broadcom.com>, <heiko@sntech.de>,
<jbrunet@baylibre.com>, <joel@jms.id.au>, <khilman@baylibre.com>,
<linus.walleij@linaro.org>, <linux-amlogic@lists.infradead.org>,
<linux-arm-kernel@lists.infradead.org>,
<linux-aspeed@lists.ozlabs.org>,
<linux-mediatek@lists.infradead.org>,
<linux-riscv@lists.infradead.org>,
<linux-rockchip@lists.infradead.org>,
<linux-rpi-kernel@lists.infradead.org>,
<linux-spi@vger.kernel.org>, <martin.blumenstingl@googlemail.com>,
<matthias.bgg@gmail.com>, <neil.armstrong@linaro.org>,
<olteanv@gmail.com>, <openbmc@lists.ozlabs.org>,
<rjui@broadcom.com>, <sbranden@broadcom.com>,
<tali.perry1@gmail.com>, <tmaimon77@gmail.com>,
<venture@google.com>, <yuenn@google.com>
Subject: Re: [PATCH -next v2 12/25] spi: dw-mmio: Use helper function devm_clk_get_*()
Date: Wed, 23 Aug 2023 18:15:06 +0100 [thread overview]
Message-ID: <20230823181506.00007731@Huawei.com> (raw)
In-Reply-To: <pflv2canelmm3ea7zpqgxrzj3s7cl56crpdbupkgqlabfnasjj@dkfyiubao2gj>
On Wed, 23 Aug 2023 17:20:12 +0300
Serge Semin <fancer.lancer@gmail.com> wrote:
> On Wed, Aug 23, 2023 at 09:39:25PM +0800, Li Zetao wrote:
> > Since commit 7ef9651e9792 ("clk: Provide new devm_clk helpers for prepared
> > and enabled clocks"), devm_clk_get() and clk_prepare_enable() can now be
> > replaced by devm_clk_get_enabled() when driver enables (and possibly
> > prepares) the clocks for the whole lifetime of the device. Moreover, it is
> > no longer necessary to unprepare and disable the clocks explicitly. Also,
> > devm_clk_get_optional() and clk_prepare_enable() can now be replaced by
> > devm_clk_get_optional_enabled(). Moreover, the lable "out_clk" no longer
> > makes sense, rename it to "out_reset".
> >
> > Signed-off-by: Li Zetao <lizetao1@huawei.com>
> > ---
> > v1 -> v2: Return directly instead of calling reset_control_deassert()
> > before the reset control handler has been requested. And use the
> > "out_reset" label instead of "out" before calling pm_runtime_enable().
>
> LGTM. Thanks!
> Acked-by: Serge Semin <fancer.lancer@gmail.com>
Agreed - looks much better now.
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
>
> -Serge(y)
>
> >
> > drivers/spi/spi-dw-mmio.c | 31 +++++++++----------------------
> > 1 file changed, 9 insertions(+), 22 deletions(-)
> >
> > diff --git a/drivers/spi/spi-dw-mmio.c b/drivers/spi/spi-dw-mmio.c
> > index 805264c9c65c..46801189a651 100644
> > --- a/drivers/spi/spi-dw-mmio.c
> > +++ b/drivers/spi/spi-dw-mmio.c
> > @@ -340,29 +340,20 @@ static int dw_spi_mmio_probe(struct platform_device *pdev)
> > if (dws->irq < 0)
> > return dws->irq; /* -ENXIO */
> >
> > - dwsmmio->clk = devm_clk_get(&pdev->dev, NULL);
> > + dwsmmio->clk = devm_clk_get_enabled(&pdev->dev, NULL);
> > if (IS_ERR(dwsmmio->clk))
> > return PTR_ERR(dwsmmio->clk);
> > - ret = clk_prepare_enable(dwsmmio->clk);
> > - if (ret)
> > - return ret;
> >
> > /* Optional clock needed to access the registers */
> > - dwsmmio->pclk = devm_clk_get_optional(&pdev->dev, "pclk");
> > - if (IS_ERR(dwsmmio->pclk)) {
> > - ret = PTR_ERR(dwsmmio->pclk);
> > - goto out_clk;
> > - }
> > - ret = clk_prepare_enable(dwsmmio->pclk);
> > - if (ret)
> > - goto out_clk;
> > + dwsmmio->pclk = devm_clk_get_optional_enabled(&pdev->dev, "pclk");
> > + if (IS_ERR(dwsmmio->pclk))
> > + return PTR_ERR(dwsmmio->pclk);
> >
> > /* find an optional reset controller */
> > dwsmmio->rstc = devm_reset_control_get_optional_exclusive(&pdev->dev, "spi");
> > - if (IS_ERR(dwsmmio->rstc)) {
> > - ret = PTR_ERR(dwsmmio->rstc);
> > - goto out_clk;
> > - }
> > + if (IS_ERR(dwsmmio->rstc))
> > + return PTR_ERR(dwsmmio->rstc);
> > +
> > reset_control_deassert(dwsmmio->rstc);
> >
> > dws->bus_num = pdev->id;
> > @@ -383,7 +374,7 @@ static int dw_spi_mmio_probe(struct platform_device *pdev)
> > if (init_func) {
> > ret = init_func(pdev, dwsmmio);
> > if (ret)
> > - goto out;
> > + goto out_reset;
> > }
> >
> > pm_runtime_enable(&pdev->dev);
> > @@ -397,9 +388,7 @@ static int dw_spi_mmio_probe(struct platform_device *pdev)
> >
> > out:
> > pm_runtime_disable(&pdev->dev);
> > - clk_disable_unprepare(dwsmmio->pclk);
> > -out_clk:
> > - clk_disable_unprepare(dwsmmio->clk);
> > +out_reset:
> > reset_control_assert(dwsmmio->rstc);
> >
> > return ret;
> > @@ -411,8 +400,6 @@ static void dw_spi_mmio_remove(struct platform_device *pdev)
> >
> > dw_spi_remove_host(&dwsmmio->dws);
> > pm_runtime_disable(&pdev->dev);
> > - clk_disable_unprepare(dwsmmio->pclk);
> > - clk_disable_unprepare(dwsmmio->clk);
> > reset_control_assert(dwsmmio->rstc);
> > }
> >
> > --
> > 2.34.1
> >
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2023-08-23 17:15 UTC|newest]
Thread overview: 427+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-22 13:12 [PATCH -next 00/25] spi: Use devm_clk_get_*() helper function to simplify the drivers Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` [PATCH -next 01/25] spi: ar934x: Use helper function devm_clk_get_enabled() Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` [PATCH -next 02/25] spi: armada-3700: Use helper function devm_clk_get_prepared() Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 15:55 ` Jonathan Cameron
2023-08-22 15:55 ` Jonathan Cameron
2023-08-22 15:55 ` Jonathan Cameron
2023-08-22 15:55 ` Jonathan Cameron
2023-08-22 15:55 ` Jonathan Cameron
2023-08-22 15:55 ` Jonathan Cameron
2023-08-22 13:12 ` [PATCH -next 03/25] spi: aspeed: Use helper function devm_clk_get_enabled() Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-23 7:11 ` Chin-Ting Kuo
2023-08-23 7:11 ` Chin-Ting Kuo
2023-08-23 7:11 ` Chin-Ting Kuo
2023-08-23 7:11 ` Chin-Ting Kuo
2023-08-23 7:11 ` Chin-Ting Kuo
2023-08-23 7:11 ` Chin-Ting Kuo
2023-08-24 8:55 ` Cédric Le Goater
2023-08-24 8:55 ` Cédric Le Goater
2023-08-24 8:55 ` Cédric Le Goater
2023-08-24 8:55 ` Cédric Le Goater
2023-08-24 8:55 ` Cédric Le Goater
2023-08-24 8:55 ` Cédric Le Goater
2023-08-22 13:12 ` [PATCH -next 04/25] spi: ath79: " Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` [PATCH -next 05/25] spi: spi-axi-spi-engine: " Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` [PATCH -next 06/25] spi: bcm2835: " Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` [PATCH -next 07/25] spi: bcm2835aux: " Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` [PATCH -next 08/25] spi: spi-cadence: " Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` [PATCH -next 09/25] spi: spi-cavium-thunderx: " Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` [PATCH -next 10/25] spi: davinci: " Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` [PATCH -next 11/25] spi: dw-bt1: " Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:48 ` Serge Semin
2023-08-22 13:48 ` Serge Semin
2023-08-22 13:48 ` Serge Semin
2023-08-22 13:48 ` Serge Semin
2023-08-22 13:48 ` Serge Semin
2023-08-22 13:48 ` Serge Semin
2023-08-22 13:12 ` [PATCH -next 12/25] spi: dw-mmio: Use helper function devm_clk_get_*() Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:46 ` Serge Semin
2023-08-22 13:46 ` Serge Semin
2023-08-22 13:46 ` Serge Semin
2023-08-22 13:46 ` Serge Semin
2023-08-22 13:46 ` Serge Semin
2023-08-22 13:46 ` Serge Semin
2023-08-22 13:12 ` [PATCH -next 13/25] spi: spi-fsl-dspi: Use helper function devm_clk_get_enabled() Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` [PATCH -next 14/25] spi: lantiq-ssc: " Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` [PATCH -next 15/25] spi: meson-spicc: " Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` [PATCH -next 16/25] spi: spi-meson-spifc: " Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` [PATCH -next 17/25] spi: microchip-core-qspi: " Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` [PATCH -next 18/25] spi: microchip-core: " Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` [PATCH -next 19/25] spi: mtk-snfi: " Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` [PATCH -next 20/25] spi: npcm-fiu: " Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` [PATCH -next 21/25] spi: orion: " Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` [PATCH -next 22/25] spi: pic32-sqi: " Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` [PATCH -next 23/25] spi: pic32: " Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` [PATCH -next 24/25] spi: spl022: " Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 16:14 ` Jonathan Cameron
2023-08-22 16:14 ` Jonathan Cameron
2023-08-22 16:14 ` Jonathan Cameron
2023-08-22 16:14 ` Jonathan Cameron
2023-08-22 16:14 ` Jonathan Cameron
2023-08-22 16:14 ` Jonathan Cameron
2023-08-23 6:55 ` Linus Walleij
2023-08-23 6:55 ` Linus Walleij
2023-08-23 6:55 ` Linus Walleij
2023-08-23 6:55 ` Linus Walleij
2023-08-23 6:55 ` Linus Walleij
2023-08-23 6:55 ` Linus Walleij
2023-08-22 13:12 ` [PATCH -next 25/25] spi: rockchip: " Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-08-22 13:12 ` Li Zetao
2023-10-04 21:18 ` Heiko Stübner
2023-10-04 21:18 ` Heiko Stübner
2023-10-04 21:18 ` Heiko Stübner
2023-10-04 21:18 ` Heiko Stübner
2023-10-04 21:18 ` Heiko Stübner
2023-10-04 21:18 ` Heiko Stübner
2023-10-04 21:18 ` Heiko Stübner
2023-08-22 16:16 ` [PATCH -next 00/25] spi: Use devm_clk_get_*() helper function to simplify the drivers Jonathan Cameron
2023-08-22 16:16 ` Jonathan Cameron
2023-08-22 16:16 ` Jonathan Cameron
2023-08-22 16:16 ` Jonathan Cameron
2023-08-22 16:16 ` Jonathan Cameron
2023-08-22 16:16 ` Jonathan Cameron
2023-08-23 13:39 ` [PATCH -next v2 " Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` [PATCH -next v2 01/25] spi: ar934x: Use helper function devm_clk_get_enabled() Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` [PATCH -next v2 02/25] spi: armada-3700: Use helper function devm_clk_get_prepared() Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 17:10 ` Jonathan Cameron
2023-08-23 17:10 ` Jonathan Cameron
2023-08-23 17:10 ` Jonathan Cameron
2023-08-23 17:10 ` Jonathan Cameron
2023-08-23 17:10 ` Jonathan Cameron
2023-08-23 17:10 ` Jonathan Cameron
2023-08-23 13:39 ` [PATCH -next v2 03/25] spi: aspeed: Use helper function devm_clk_get_enabled() Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` [PATCH -next v2 04/25] spi: ath79: " Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` [PATCH -next v2 05/25] spi: spi-axi-spi-engine: " Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` [PATCH -next v2 06/25] spi: bcm2835: " Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` [PATCH -next v2 07/25] spi: bcm2835aux: " Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` [PATCH -next v2 08/25] spi: spi-cadence: " Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` [PATCH -next v2 09/25] spi: spi-cavium-thunderx: " Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` [PATCH -next v2 10/25] spi: davinci: " Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` [PATCH -next v2 11/25] spi: dw-bt1: " Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 14:35 ` Serge Semin
2023-08-23 14:35 ` Serge Semin
2023-08-23 14:35 ` Serge Semin
2023-08-23 14:35 ` Serge Semin
2023-08-23 14:35 ` Serge Semin
2023-08-23 14:35 ` Serge Semin
2023-08-23 17:13 ` Jonathan Cameron
2023-08-23 17:13 ` Jonathan Cameron
2023-08-23 17:13 ` Jonathan Cameron
2023-08-23 17:13 ` Jonathan Cameron
2023-08-23 17:13 ` Jonathan Cameron
2023-08-23 17:13 ` Jonathan Cameron
2023-08-25 18:01 ` Serge Semin
2023-08-25 18:01 ` Serge Semin
2023-08-25 18:01 ` Serge Semin
2023-08-25 18:01 ` Serge Semin
2023-08-25 18:01 ` Serge Semin
2023-08-25 18:01 ` Serge Semin
2023-08-23 13:39 ` [PATCH -next v2 12/25] spi: dw-mmio: Use helper function devm_clk_get_*() Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 14:20 ` Serge Semin
2023-08-23 14:20 ` Serge Semin
2023-08-23 14:20 ` Serge Semin
2023-08-23 14:20 ` Serge Semin
2023-08-23 14:20 ` Serge Semin
2023-08-23 14:20 ` Serge Semin
2023-08-23 17:15 ` Jonathan Cameron [this message]
2023-08-23 17:15 ` Jonathan Cameron
2023-08-23 17:15 ` Jonathan Cameron
2023-08-23 17:15 ` Jonathan Cameron
2023-08-23 17:15 ` Jonathan Cameron
2023-08-23 17:15 ` Jonathan Cameron
2023-08-23 13:39 ` [PATCH -next v2 13/25] spi: spi-fsl-dspi: Use helper function devm_clk_get_enabled() Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` [PATCH -next v2 14/25] spi: lantiq-ssc: " Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` [PATCH -next v2 15/25] spi: meson-spicc: " Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` [PATCH -next v2 16/25] spi: spi-meson-spifc: " Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` [PATCH -next v2 17/25] spi: microchip-core-qspi: " Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` [PATCH -next v2 18/25] spi: microchip-core: " Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` [PATCH -next v2 19/25] spi: mtk-snfi: " Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-09-13 9:15 ` AngeloGioacchino Del Regno
2023-09-13 9:15 ` AngeloGioacchino Del Regno
2023-09-13 9:15 ` AngeloGioacchino Del Regno
2023-09-13 9:15 ` AngeloGioacchino Del Regno
2023-09-13 9:15 ` AngeloGioacchino Del Regno
2023-09-13 9:15 ` AngeloGioacchino Del Regno
2023-08-23 13:39 ` [PATCH -next v2 20/25] spi: npcm-fiu: " Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` [PATCH -next v2 21/25] spi: orion: " Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` [PATCH -next v2 22/25] spi: pic32-sqi: " Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` [PATCH -next v2 23/25] spi: pic32: " Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` [PATCH -next v2 24/25] spi: spl022: " Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 17:16 ` Jonathan Cameron
2023-08-23 17:16 ` Jonathan Cameron
2023-08-23 17:16 ` Jonathan Cameron
2023-08-23 17:16 ` Jonathan Cameron
2023-08-23 17:16 ` Jonathan Cameron
2023-08-23 17:16 ` Jonathan Cameron
2023-08-23 13:39 ` [PATCH -next v2 25/25] spi: rockchip: " Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 13:39 ` Li Zetao
2023-08-23 14:33 ` [PATCH -next v2 00/25] spi: Use devm_clk_get_*() helper function to simplify the drivers Mark Brown
2023-08-23 14:33 ` Mark Brown
2023-08-23 14:33 ` Mark Brown
2023-08-23 14:33 ` Mark Brown
2023-08-23 14:33 ` Mark Brown
2023-08-23 14:33 ` Mark Brown
2023-09-12 11:37 ` Mark Brown
2023-09-12 11:37 ` Mark Brown
2023-09-12 11:37 ` Mark Brown
2023-09-12 11:37 ` Mark Brown
2023-09-12 11:37 ` Mark Brown
2023-09-12 11:37 ` Mark Brown
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=20230823181506.00007731@Huawei.com \
--to=jonathan.cameron@huawei.com \
--cc=andrew@aj.id.au \
--cc=angelogioacchino.delregno@collabora.com \
--cc=avifishman70@gmail.com \
--cc=bcm-kernel-feedback-list@broadcom.com \
--cc=benjaminfair@google.com \
--cc=broonie@kernel.org \
--cc=chin-ting_kuo@aspeedtech.com \
--cc=clg@kaod.org \
--cc=conor.dooley@microchip.com \
--cc=daire.mcnamara@microchip.com \
--cc=fancer.lancer@gmail.com \
--cc=florian.fainelli@broadcom.com \
--cc=heiko@sntech.de \
--cc=jbrunet@baylibre.com \
--cc=joel@jms.id.au \
--cc=khilman@baylibre.com \
--cc=linus.walleij@linaro.org \
--cc=linux-amlogic@lists.infradead.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-aspeed@lists.ozlabs.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux-riscv@lists.infradead.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=linux-rpi-kernel@lists.infradead.org \
--cc=linux-spi@vger.kernel.org \
--cc=lizetao1@huawei.com \
--cc=martin.blumenstingl@googlemail.com \
--cc=matthias.bgg@gmail.com \
--cc=neil.armstrong@linaro.org \
--cc=olteanv@gmail.com \
--cc=openbmc@lists.ozlabs.org \
--cc=rjui@broadcom.com \
--cc=sbranden@broadcom.com \
--cc=tali.perry1@gmail.com \
--cc=tmaimon77@gmail.com \
--cc=venture@google.com \
--cc=yuenn@google.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.