mbox series

[v9,0/7] clk: clk-wizard: clock-wizard: Driver updates

Message ID 1613623791-4598-1-git-send-email-shubhrajyoti.datta@xilinx.com (mailing list archive)
Headers show
Series clk: clk-wizard: clock-wizard: Driver updates | expand

Message

Shubhrajyoti Datta Feb. 18, 2021, 4:49 a.m. UTC
In the thread [1] Greg suggested that we move the driver
to the clk from the staging.
Add patches to address the concerns regarding the fractional and
set rate support in the TODO.

The patch set does the following
- Trivial fixes for kernel doc.
- Move the driver to the clk folder
- Add capability to set rate.
- Add fractional support.
- Add support for configurable outputs.
- Make the output names unique so that multiple instances
do not crib.

Changes in the v3:
Added the cover-letter.
Add patches for rate setting and fractional support
Add patches for warning.
Remove the driver from staging as suggested

v4:
Reorder the patches.
Merge the CLK_IS_BASIC patch.
Add the yaml form of binding document

v5:
Fix a mismerge

v6:
Fix the yaml warning
use poll timedout

v7:
Binding doc updates
Use common divisor function.

v8:
Fix Robs comments

v9:
Fix device tree warnings

[1] https://spinics.net/lists/linux-driver-devel/msg117326.html

Shubhrajyoti Datta (7):
  dt-bindings: add documentation of xilinx clocking wizard
  clk: clock-wizard: Add the clockwizard to clk directory
  clk: clock-wizard: Fix kernel-doc warning
  clk: clock-wizard: Add support for dynamic reconfiguration
  clk: clock-wizard: Add support for fractional support
  clk: clock-wizard: Remove the hardcoding of the clock outputs
  clk: clock-wizard: Update the fixed factor divisors

 .../bindings/clock/xlnx,clocking-wizard.yaml       |  65 ++
 drivers/clk/Kconfig                                |   9 +
 drivers/clk/Makefile                               |   1 +
 drivers/clk/clk-xlnx-clock-wizard.c                | 689 +++++++++++++++++++++
 drivers/staging/Kconfig                            |   2 -
 drivers/staging/Makefile                           |   1 -
 drivers/staging/clocking-wizard/Kconfig            |  10 -
 drivers/staging/clocking-wizard/Makefile           |   2 -
 drivers/staging/clocking-wizard/TODO               |  12 -
 .../clocking-wizard/clk-xlnx-clock-wizard.c        | 333 ----------
 drivers/staging/clocking-wizard/dt-binding.txt     |  30 -
 11 files changed, 764 insertions(+), 390 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/clock/xlnx,clocking-wizard.yaml
 create mode 100644 drivers/clk/clk-xlnx-clock-wizard.c
 delete mode 100644 drivers/staging/clocking-wizard/Kconfig
 delete mode 100644 drivers/staging/clocking-wizard/Makefile
 delete mode 100644 drivers/staging/clocking-wizard/TODO
 delete mode 100644 drivers/staging/clocking-wizard/clk-xlnx-clock-wizard.c
 delete mode 100644 drivers/staging/clocking-wizard/dt-binding.txt

Comments

Miquel Raynal Feb. 18, 2021, 8:24 a.m. UTC | #1
Hi Shubhrajyoti,

Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com> wrote on Thu, 18 Feb
2021 10:19:44 +0530:

> In the thread [1] Greg suggested that we move the driver
> to the clk from the staging.
> Add patches to address the concerns regarding the fractional and
> set rate support in the TODO.
> 
> The patch set does the following
> - Trivial fixes for kernel doc.
> - Move the driver to the clk folder
> - Add capability to set rate.
> - Add fractional support.
> - Add support for configurable outputs.
> - Make the output names unique so that multiple instances
> do not crib.

I think we prefer to move "clean" drivers out of the staging tree
rather than "to be fixed" code. So I would invert the order of the
patches in this series to make more sense:
* 3/7-7/7 (various fixes/improvements)
* 1/7 (bindings)
* 2/7 (move to clk)

> Shubhrajyoti Datta (7):
>   dt-bindings: add documentation of xilinx clocking wizard
>   clk: clock-wizard: Add the clockwizard to clk directory
>   clk: clock-wizard: Fix kernel-doc warning
>   clk: clock-wizard: Add support for dynamic reconfiguration
>   clk: clock-wizard: Add support for fractional support
>   clk: clock-wizard: Remove the hardcoding of the clock outputs
>   clk: clock-wizard: Update the fixed factor divisors
> 
>  .../bindings/clock/xlnx,clocking-wizard.yaml       |  65 ++
>  drivers/clk/Kconfig                                |   9 +
>  drivers/clk/Makefile                               |   1 +
>  drivers/clk/clk-xlnx-clock-wizard.c                | 689 +++++++++++++++++++++
>  drivers/staging/Kconfig                            |   2 -
>  drivers/staging/Makefile                           |   1 -
>  drivers/staging/clocking-wizard/Kconfig            |  10 -
>  drivers/staging/clocking-wizard/Makefile           |   2 -
>  drivers/staging/clocking-wizard/TODO               |  12 -
>  .../clocking-wizard/clk-xlnx-clock-wizard.c        | 333 ----------
>  drivers/staging/clocking-wizard/dt-binding.txt     |  30 -
>  11 files changed, 764 insertions(+), 390 deletions(-)
>  create mode 100644 Documentation/devicetree/bindings/clock/xlnx,clocking-wizard.yaml
>  create mode 100644 drivers/clk/clk-xlnx-clock-wizard.c
>  delete mode 100644 drivers/staging/clocking-wizard/Kconfig
>  delete mode 100644 drivers/staging/clocking-wizard/Makefile
>  delete mode 100644 drivers/staging/clocking-wizard/TODO
>  delete mode 100644 drivers/staging/clocking-wizard/clk-xlnx-clock-wizard.c
>  delete mode 100644 drivers/staging/clocking-wizard/dt-binding.txt
> 

Thanks,
Miquèl
Shubhrajyoti Datta Feb. 24, 2021, 2:11 p.m. UTC | #2
On Thu, Feb 18, 2021 at 1:54 PM Miquel Raynal <miquel.raynal@bootlin.com> wrote:
>
> Hi Shubhrajyoti,
>
> Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com> wrote on Thu, 18 Feb
> 2021 10:19:44 +0530:
>
> > In the thread [1] Greg suggested that we move the driver
> > to the clk from the staging.
> > Add patches to address the concerns regarding the fractional and
> > set rate support in the TODO.
> >
> > The patch set does the following
> > - Trivial fixes for kernel doc.
> > - Move the driver to the clk folder
> > - Add capability to set rate.
> > - Add fractional support.
> > - Add support for configurable outputs.
> > - Make the output names unique so that multiple instances
> > do not crib.
>
> I think we prefer to move "clean" drivers out of the staging tree
> rather than "to be fixed" code. So I would invert the order of the
> patches in this series to make more sense:
> * 3/7-7/7 (various fixes/improvements)
> * 1/7 (bindings)
> * 2/7 (move to clk)
>
Will update in next version

> > Shubhrajyoti Datta (7):
> >   dt-bindings: add documentation of xilinx clocking wizard
> >   clk: clock-wizard: Add the clockwizard to clk directory
> >   clk: clock-wizard: Fix kernel-doc warning
> >   clk: clock-wizard: Add support for dynamic reconfiguration
> >   clk: clock-wizard: Add support for fractional support
> >   clk: clock-wizard: Remove the hardcoding of the clock outputs
> >   clk: clock-wizard: Update the fixed factor divisors
> >
> >  .../bindings/clock/xlnx,clocking-wizard.yaml       |  65 ++
> >  drivers/clk/Kconfig                                |   9 +
> >  drivers/clk/Makefile                               |   1 +
> >  drivers/clk/clk-xlnx-clock-wizard.c                | 689 +++++++++++++++++++++
> >  drivers/staging/Kconfig                            |   2 -
> >  drivers/staging/Makefile                           |   1 -
> >  drivers/staging/clocking-wizard/Kconfig            |  10 -
> >  drivers/staging/clocking-wizard/Makefile           |   2 -
> >  drivers/staging/clocking-wizard/TODO               |  12 -
> >  .../clocking-wizard/clk-xlnx-clock-wizard.c        | 333 ----------
> >  drivers/staging/clocking-wizard/dt-binding.txt     |  30 -
> >  11 files changed, 764 insertions(+), 390 deletions(-)
> >  create mode 100644 Documentation/devicetree/bindings/clock/xlnx,clocking-wizard.yaml
> >  create mode 100644 drivers/clk/clk-xlnx-clock-wizard.c
> >  delete mode 100644 drivers/staging/clocking-wizard/Kconfig
> >  delete mode 100644 drivers/staging/clocking-wizard/Makefile
> >  delete mode 100644 drivers/staging/clocking-wizard/TODO
> >  delete mode 100644 drivers/staging/clocking-wizard/clk-xlnx-clock-wizard.c
> >  delete mode 100644 drivers/staging/clocking-wizard/dt-binding.txt
> >
>
> Thanks,
> Miquèl