[PATCH v5 3/5] ARM: dts: am33xx-clocks: add spread spectrum support

2021-04-18 Thread Dario Binacchi
are mapped for all PLLs (CORE, MPU, DDR, PER, DISP). Signed-off-by: Dario Binacchi Acked-by: Tony Lindgren --- (no changes since v4) Changes in v4: - Add SSC registers for CORE, DDR and PER PLLs. - Update commit message. Changes in v3: - Add Tony Lindgren acked tag. Changes in v2: - Remove

[PATCH v5 2/5] dt-bindings: ti: dpll: add spread spectrum support

2021-04-18 Thread Dario Binacchi
DT bindings for enabling and adjusting spread spectrum clocking have been added. Signed-off-by: Dario Binacchi Reviewed-by: Rob Herring --- (no changes since v4) Changes in v4: - Add Rob Herring review tag. Changes in v3: - Add '-hz' suffix to "ti,ssc-modfreq" bindi

[PATCH v5 5/5] clk: ti: add am33xx/am43xx spread spectrum clock support

2021-04-18 Thread Dario Binacchi
C. Signed-off-by: Dario Binacchi --- Changes in v5: - Remove ssc_ack_mask field from dpll_data structure. It was not used. - Change ssc_downspread type from u8 to bool in dpll_data structure. Changes in v4: - Update commit message. Changes in v3: - Use "ti,ssc-modfreq-hz" binding instea

[PATCH v5 4/5] ARM: dts: am43xx-clocks: add spread spectrum support

2021-04-18 Thread Dario Binacchi
PRCM_CM_CLKMODE_DPLL_XXX registers are mapped for all PLLs (CORE, MPU, DDR, PER, DISP, EXTDEV). Signed-off-by: Dario Binacchi --- (no changes since v1) arch/arm/boot/dts/am43xx-clocks.dtsi | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm/boot/dts/am43xx-clocks.dtsi b/arch

[PATCH v5 0/5] clk: ti: add am33xx spread spectrum clock support

2021-04-18 Thread Dario Binacchi
uot;ti,ssc-modfreq". Changes in v2: - Remove SSC registers from dpll_core_ck@490 node (SSC is not supported) - Add SSC registers to dpll_mpu_ck@488 node. - Move the DT changes to the previous patch in the series. Dario Binacchi (5): clk: ti: fix typo in routine description dt-bindings: ti: dpll

[PATCH v5 1/5] clk: ti: fix typo in routine description

2021-04-18 Thread Dario Binacchi
Replace _omap3_noncore_dpll_program with omap3_noncore_dpll_program. Signed-off-by: Dario Binacchi Reviewed-by: Stephen Boyd --- (no changes since v4) Changes in v4: - Add Stephen Boyd review tag. drivers/clk/ti/dpll3xxx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a

Re: [PATCH v4 5/5] clk: ti: add am33xx/am43xx spread spectrum clock support

2021-04-18 Thread Dario Binacchi
Hi Tero, > Il 16/04/2021 14:43 Tero Kristo ha scritto: > > > Hi Dario, > > Spent some time looking at this, had to read through the TRM chapter of > it also in quite detailed level to figure out how this is supposed to > work out. > > Other than couple of mi

[PATCH v4] serial: omap: fix rs485 half-duplex filtering

2021-04-18 Thread Dario Binacchi
first bytes. Fixes: 3a13884abea0 ("tty/serial: omap: empty the RX FIFO at the end of half-duplex TX") Signed-off-by: Dario Binacchi --- Changes in v4: - Change the type of the rs485_tx_filter_count variable from atomic_t to unsigned int and related read / write accesses. Cha

Re: [PATCH v3] serial: omap: fix rs485 half-duplex filtering

2021-04-18 Thread Dario Binacchi
> Il 16/04/2021 08:46 Greg Kroah-Hartman ha > scritto: > > > On Thu, Apr 15, 2021 at 11:02:52PM +0200, Dario Binacchi wrote: > > Data received during half-duplex transmission must be filtered. > > If the target device responds quickly, emptying the FIFO at the

[PATCH v2] serial: omap: don't disable rs485 if rts gpio is missing

2021-04-15 Thread Dario Binacchi
There are rs485 transceivers (e.g. MAX13487E/MAX13488E) which automatically disable or enable the driver and receiver to keep the bus in the correct state. In these cases we don't need a GPIO for flow control. Fixes: 4a0ac0f55b18 ("OMAP: add RS485 support") Signed-off-by:

[PATCH v3] serial: omap: fix rs485 half-duplex filtering

2021-04-15 Thread Dario Binacchi
first bytes. Fixes: 3a13884abea0 ("tty/serial: omap: empty the RX FIFO at the end of half-duplex TX") Signed-off-by: Dario Binacchi --- Changes in v3: - Add 'Fixes' tag Changes in v2: - Fix compiling error drivers/tty/serial/omap-serial.c | 39

Re: [PATCH 0/2] fdt: translate address if #size-cells = <0>

2021-04-14 Thread Dario Binacchi
Hi Tero, > Il 12/04/2021 09:41 Tero Kristo ha scritto: > > > On 11/04/2021 22:30, Dario Binacchi wrote: > > > >> Il 09/04/2021 12:32 Tero Kristo ha scritto: > >> > >> > >> On 08/04/2021 23:24, Dario Binacchi wrote: &g

Re: [PATCH 0/2] fdt: translate address if #size-cells = <0>

2021-04-11 Thread Dario Binacchi
> Il 09/04/2021 12:32 Tero Kristo ha scritto: > > > On 08/04/2021 23:24, Dario Binacchi wrote: > > > >> Il 07/04/2021 15:21 Tero Kristo ha scritto: > >> > >> > >> On 07/04/2021 15:52, Rob Herring wrote: > >>> On Wed, Apr

[PATCH v2] serial: omap: fix rs485 half-duplex filtering

2021-04-11 Thread Dario Binacchi
first bytes. Signed-off-by: Dario Binacchi --- Changes in v2: - Fix compiling error drivers/tty/serial/omap-serial.c | 39 1 file changed, 24 insertions(+), 15 deletions(-) diff --git a/drivers/tty/serial/omap-serial.c b/drivers/tty/serial/omap-serial.c

[PATCH] serial: omap: fix rs485 half-duplex filtering

2021-04-11 Thread Dario Binacchi
first bytes. Signed-off-by: Dario Binacchi --- drivers/tty/serial/omap-serial.c | 38 +++- 1 file changed, 23 insertions(+), 15 deletions(-) diff --git a/drivers/tty/serial/omap-serial.c b/drivers/tty/serial/omap-serial.c index 76b94d0ff586..9d17c52be2a6 100644

[PATCH] serial: omap: don't disable rs485 if rts gpio is missing

2021-04-11 Thread Dario Binacchi
There are rs485 transceivers (e.g. MAX13487E/MAX13488E) which automatically disable or enable the driver and receiver to keep the bus in the correct state. In these cases we don't need a GPIO for flow control. Signed-off-by: Dario Binacchi --- drivers/tty/serial/omap-serial.c

Re: [PATCH 0/2] fdt: translate address if #size-cells = <0>

2021-04-08 Thread Dario Binacchi
> Il 07/04/2021 15:21 Tero Kristo ha scritto: > > > On 07/04/2021 15:52, Rob Herring wrote: > > On Wed, Apr 7, 2021 at 2:07 AM Dario Binacchi wrote: > >> > >> > >>> Il 07/04/2021 03:16 Rob Herring ha scritto: > >>> >

Re: [PATCH 0/2] fdt: translate address if #size-cells = <0>

2021-04-07 Thread Dario Binacchi
> Il 07/04/2021 03:16 Rob Herring ha scritto: > > > On Tue, Apr 6, 2021 at 5:02 PM Dario Binacchi wrote: > > > > > > > Il 06/04/2021 16:06 Rob Herring ha scritto: > > > > > > > > > On Fri, Apr 2, 2021 at 2:21 PM Dario Binacchi wr

Re: [PATCH 0/2] fdt: translate address if #size-cells = <0>

2021-04-06 Thread Dario Binacchi
> Il 06/04/2021 16:06 Rob Herring ha scritto: > > > On Fri, Apr 2, 2021 at 2:21 PM Dario Binacchi wrote: > > > > > > The series comes from my commit in U-boot > > d64b9cdcd4 ("fdt: translate address if #size-cells = <0>") > > and fr

[PATCH] ARM: OMAP2+: remove omap2_set_globals_control()

2021-04-02 Thread Dario Binacchi
The function is no longer used, so let's remove it. Signed-off-by: Dario Binacchi --- arch/arm/mach-omap2/control.c | 5 - arch/arm/mach-omap2/control.h | 1 - 2 files changed, 6 deletions(-) diff --git a/arch/arm/mach-omap2/control.c b/arch/arm/mach-omap2/control.c index 73338cf

[PATCH] ARM: OMAP2+: CM: remove omap2_set_globals_cm()

2021-04-02 Thread Dario Binacchi
The function is no longer used, so let's remove it. Signed-off-by: Dario Binacchi --- arch/arm/mach-omap2/cm.h| 1 - arch/arm/mach-omap2/cm_common.c | 13 - 2 files changed, 14 deletions(-) diff --git a/arch/arm/mach-omap2/cm.h b/arch/arm/mach-omap2/cm.h

[PATCH 2/2] clk: ti: get register address from device tree

2021-04-02 Thread Dario Binacchi
Until now, only the register offset was retrieved from the device tree to be added, during access, to a common base address for the clocks. If possible, we try to retrieve the physical address of the register directly from the device tree. Signed-off-by: Dario Binacchi --- drivers/clk/ti

[PATCH 0/2] fdt: translate address if #size-cells = <0>

2021-04-02 Thread Dario Binacchi
61314-1-git-send-email-bmeng...@gmail.com/). The second patch of the series aims to demonstrate that the first one, which enables the translation of addresses also for crossings of DT nodes with #size-cells = <0>, it really works. Dario Binacchi (2): fdt: translate address if #size-cell

[PATCH 1/2] fdt: translate address if #size-cells = <0>

2021-04-02 Thread Dario Binacchi
ock registers are those specified by the AM335x reference manual. Signed-off-by: Dario Binacchi --- drivers/of/Kconfig | 13 + drivers/of/address.c | 8 +++- drivers/of/fdt_address.c | 6 -- 3 files changed, 24 insertions(+), 3 deletions(-) diff --git a/drivers/

[PATCH v4 3/5] ARM: dts: am33xx-clocks: add spread spectrum support

2021-04-01 Thread Dario Binacchi
are mapped for all PLLs (CORE, MPU, DDR, PER, DISP). Signed-off-by: Dario Binacchi Acked-by: Tony Lindgren --- Changes in v4: - Add SSC registers for CORE, DDR and PER PLLs. - Update commit message. Changes in v3: - Add Tony Lindgren acked tag. Changes in v2: - Remove SSC registers from

[PATCH v4 2/5] dt-bindings: ti: dpll: add spread spectrum support

2021-04-01 Thread Dario Binacchi
DT bindings for enabling and adjusting spread spectrum clocking have been added. Signed-off-by: Dario Binacchi Reviewed-by: Rob Herring --- Changes in v4: - Add Rob Herring review tag. Changes in v3: - Add '-hz' suffix to "ti,ssc-modfreq" binding. .../devicetree/bindin

[PATCH v4 5/5] clk: ti: add am33xx/am43xx spread spectrum clock support

2021-04-01 Thread Dario Binacchi
C. Signed-off-by: Dario Binacchi --- Changes in v4: - Update commit message. Changes in v3: - Use "ti,ssc-modfreq-hz" binding instead of "ti,ssc-modfreq". Changes in v2: - Move the DT changes to the previous patch in the series. drivers/clk/ti/dpll.c | 42 +

[PATCH v4 4/5] ARM: dts: am43xx-clocks: add spread spectrum support

2021-04-01 Thread Dario Binacchi
PRCM_CM_CLKMODE_DPLL_XXX registers are mapped for all PLLs (CORE, MPU, DDR, PER, DISP, EXTDEV). Signed-off-by: Dario Binacchi --- (no changes since v1) arch/arm/boot/dts/am43xx-clocks.dtsi | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm/boot/dts/am43xx-clocks.dtsi b/arch

[PATCH v4 1/5] clk: ti: fix typo in routine description

2021-04-01 Thread Dario Binacchi
Replace _omap3_noncore_dpll_program with omap3_noncore_dpll_program. Signed-off-by: Dario Binacchi Reviewed-by: Stephen Boyd --- Changes in v4: - Add Stephen Boyd review tag. drivers/clk/ti/dpll3xxx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/ti

[PATCH v4 0/5] clk: ti: add am33xx spread spectrum clock support

2021-04-01 Thread Dario Binacchi
the DT changes to the previous patch in the series. Dario Binacchi (5): clk: ti: fix typo in routine description dt-bindings: ti: dpll: add spread spectrum support ARM: dts: am33xx-clocks: add spread spectrum support ARM: dts: am43xx-clocks: add spread spectrum support clk: ti: add am3

Re: [PATCH v3 0/4] clk: ti: add am33xx spread spectrum clock support

2021-03-31 Thread Dario Binacchi
> Il 31/03/2021 07:51 Tony Lindgren ha scritto: > > > * Stephen Boyd [210330 02:25]: > > Quoting Dario Binacchi (2021-03-29 09:42:17) > > > > > > As reported by the TI spruh73x RM, MPU and LCD modules support spread > > > spectrum clocking

[PATCH v3 4/4] clk: ti: add am33xx spread spectrum clock support

2021-03-29 Thread Dario Binacchi
Signed-off-by: Dario Binacchi --- Changes in v3: - Use "ti,ssc-modfreq-hz" binding instead of "ti,ssc-modfreq". Changes in v2: - Move the DT changes to the previous patch in the series. drivers/clk/ti/dpll.c | 42 +++

[PATCH v3 2/4] dt-bindings: ti: dpll: add spread spectrum support

2021-03-29 Thread Dario Binacchi
DT bindings for enabling and adjusting spread spectrum clocking have been added. Signed-off-by: Dario Binacchi --- Changes in v3: - Add '-hz' suffix to "ti,ssc-modfreq" binding. .../devicetree/bindings/clock/ti/dpll.txt | 20 +++ 1 file changed, 20

[PATCH v3 3/4] ARM: dts: am33xx-clocks: add spread spectrum support

2021-03-29 Thread Dario Binacchi
Registers for adjusting the spread spectrum clocking (SSC) have been added. As reported by the TI spruh73x RM, SSC is supported only for LCD and MPU PLLs. Signed-off-by: Dario Binacchi Acked-by: Tony Lindgren --- Changes in v3: - Add Tony Lindgren acked tag. Changes in v2: - Remove SSC

[PATCH v3 0/4] clk: ti: add am33xx spread spectrum clock support

2021-03-29 Thread Dario Binacchi
uot;ti,ssc-modfreq". Changes in v2: - Remove SSC registers from dpll_core_ck@490 node (SSC is not supported) - Add SSC registers to dpll_mpu_ck@488 node. - Move the DT changes to the previous patch in the series. Dario Binacchi (4): clk: ti: fix typo in routine description dt-bindings: ti: dpll

[PATCH v3 1/4] clk: ti: fix typo in routine description

2021-03-29 Thread Dario Binacchi
Replace _omap3_noncore_dpll_program with omap3_noncore_dpll_program. Signed-off-by: Dario Binacchi --- (no changes since v1) drivers/clk/ti/dpll3xxx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/ti/dpll3xxx.c b/drivers/clk/ti/dpll3xxx.c index 6097b099a5df

[PATCH v3 3/3] drm/tilcdc: fix pixel clock setting warning message

2021-03-22 Thread Dario Binacchi
The warning message did not printed the LCD pixel clock rate but the LCD clock divisor input rate. As a consequence, the required and real pixel clock rates are now passed to the tilcdc_pclk_diff(). Signed-off-by: Dario Binacchi --- Changes in v3: - Replace calculated with requested in the

[PATCH v3 2/3] drm/tilcdc: fix LCD pixel clock setting

2021-03-22 Thread Dario Binacchi
The tilcdc_pclk_diff() compares the requested pixel clock rate to the real one, so passing it clk_rate instead of clk_rate / clkdiv caused it to fail even if the clk_rate was properly set. Adding the real_pclk_rate variable makes the code more readable. Signed-off-by: Dario Binacchi --- (no

[PATCH v3 1/3] drm/tilcdc: rename req_rate to pclk_rate

2021-03-22 Thread Dario Binacchi
The req_rate name is a little misleading, so let's rename to pclk_rate (pixel clock rate). Signed-off-by: Dario Binacchi --- (no changes since v2) Changes in v2: - The patch has been added in version 2. drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 12 ++-- 1 file changed, 6 inser

[PATCH v3 0/3] drm/tilcdc: fix LCD pixel clock setting

2021-03-22 Thread Dario Binacchi
. Dario Binacchi (3): drm/tilcdc: rename req_rate to pclk_rate drm/tilcdc: fix LCD pixel clock setting drm/tilcdc: fix pixel clock setting warning message drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 19 ++- 1 file changed, 10 insertions(+), 9 deletions(-) -- 2.17.1

[PATCH v2 0/3] drm/tilcdc: fix LCD pixel clock setting

2021-03-21 Thread Dario Binacchi
. - Rename clk_div_rate to real_pclk_rate. - Provide pixel clock rate to tilcdc_pclk_diff(). - The patch has been added in version 2. Dario Binacchi (3): drm/tilcdc: rename req_rate to pclk_rate drm/tilcdc: fix LCD pixel clock setting drm/tilcdc: fix pixel clock setting warning message drivers

[PATCH v2 1/3] drm/tilcdc: rename req_rate to pclk_rate

2021-03-21 Thread Dario Binacchi
The req_rate name is a little misleading, so let's rename to pclk_rate (pixel clock rate). Signed-off-by: Dario Binacchi --- Changes in v2: - The patch has been added in version 2. drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-)

[PATCH v2 2/3] drm/tilcdc: fix LCD pixel clock setting

2021-03-21 Thread Dario Binacchi
The tilcdc_pclk_diff() compares the requested pixel clock rate to the real one, so passing it clk_rate instead of clk_rate / clkdiv caused it to fail even if the clk_rate was properly set. Adding the real_pclk_rate variable makes the code more readable. Signed-off-by: Dario Binacchi

[PATCH v2 3/3] drm/tilcdc: fix pixel clock setting warning message

2021-03-21 Thread Dario Binacchi
The warning message did not printed the LCD pixel clock rate but the LCD clock divisor input rate. As a consequence, the required and real pixel clock rates are now passed to the tilcdc_pclk_diff(). Signed-off-by: Dario Binacchi --- Changes in v2: - The patch has been added in version 2

Re: [PATCH] drm/tilcdc: fix LCD pixel clock setting

2021-03-18 Thread Dario Binacchi
> Il 17/03/2021 09:19 Tomi Valkeinen ha scritto: > > > On 14/03/2021 17:13, Dario Binacchi wrote: > > As reported by TI spruh73x RM, the LCD pixel clock (LCD_PCLK) frequency > > is obtained by dividing LCD_CLK, the LCD controller reference clock, > > for CLKDI

[PATCH v2 4/4] clk: ti: add am33xx spread spectrum clock support

2021-03-18 Thread Dario Binacchi
Signed-off-by: Dario Binacchi --- Changes in v2: - Move the DT changes to the previous patch in the series. drivers/clk/ti/dpll.c | 41 +++ drivers/clk/ti/dpll3xxx.c | 85 +++ include/linux/clk/ti.h| 24 +++ 3 files ch

[PATCH v2 3/4] ARM: dts: am33xx-clocks: add spread spectrum support

2021-03-18 Thread Dario Binacchi
Registers for adjusting the spread spectrum clocking (SSC) have been added. As reported by the TI spruh73x RM, SSC is supported only for LCD and MPU PLLs. Signed-off-by: Dario Binacchi --- Changes in v2: - Remove SSC registers from dpll_core_ck@490 node (SSC is not supported) - Add SSC

[PATCH v2 1/4] clk: ti: fix typo in routine description

2021-03-18 Thread Dario Binacchi
Replace _omap3_noncore_dpll_program with omap3_noncore_dpll_program. Signed-off-by: Dario Binacchi --- (no changes since v1) drivers/clk/ti/dpll3xxx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/ti/dpll3xxx.c b/drivers/clk/ti/dpll3xxx.c index 6097b099a5df

[PATCH v2 2/4] dt-bindings: ti: dpll: add spread spectrum support

2021-03-18 Thread Dario Binacchi
DT bindings for enabling and adjusting spread spectrum clocking have been added. Signed-off-by: Dario Binacchi --- (no changes since v1) .../devicetree/bindings/clock/ti/dpll.txt | 20 +++ 1 file changed, 20 insertions(+) diff --git a/Documentation/devicetree/bindings

[PATCH v2 0/4] clk: ti: add am33xx spread spectrum clock support

2021-03-18 Thread Dario Binacchi
in the series. Dario Binacchi (4): clk: ti: fix typo in routine description dt-bindings: ti: dpll: add spread spectrum support ARM: dts: am33xx-clocks: add spread spectrum support clk: ti: add am33xx spread spectrum clock support .../devicetree/bindings/clock/ti/dpll.txt | 20

Re: [PATCH 4/4] clk: ti: add am33xx spread spectrum clock support

2021-03-18 Thread Dario Binacchi
Hi Grygorii, > Il 16/03/2021 12:52 Grygorii Strashko ha scritto: > > > On 14/03/2021 17:12, Dario Binacchi wrote: > > The patch enables spread spectrum clocking (SSC) for MPU and LCD PLLs. > > As reported by the TI spruh73x RM, SSC is only supported for the > > D

[RESEND PATCH] ARM: dts: am33xx-l4: fix tscadc@0 node indentation

2021-03-14 Thread Dario Binacchi
Fix the broken indentation of tscadc@0 node. Signed-off-by: Dario Binacchi --- arch/arm/boot/dts/am33xx-l4.dtsi | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/arch/arm/boot/dts/am33xx-l4.dtsi b/arch/arm/boot/dts/am33xx-l4.dtsi index

[PATCH 3/4] ARM: dts: am33xx-clocks: add spread spectrum support

2021-03-14 Thread Dario Binacchi
Registers for adjusting the spread spectrum clocking (SSC) have been added. As reported by the TI spruh73x RM, SSC is supported only for LCD and MPU PLLs. Signed-off-by: Dario Binacchi --- arch/arm/boot/dts/am33xx-clocks.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[PATCH] drm/tilcdc: fix LCD pixel clock setting

2021-03-14 Thread Dario Binacchi
q_rate and the real LCD_CLK rate must be compared with 'req_rate * CLKDIV' and not with req_rate. Passing req_rate instead of 'req_rate * CLKDIV' to the tilcdc_pclk_diff routine caused it to fail even if LCD_CLK was properly set. Signed-off-by: Dario Binacchi --- drivers/gp

[PATCH 2/4] dt-bindings: ti: dpll: add spread spectrum support

2021-03-14 Thread Dario Binacchi
DT bindings for enabling and adjusting spread spectrum clocking have been added. Signed-off-by: Dario Binacchi --- .../devicetree/bindings/clock/ti/dpll.txt | 20 +++ 1 file changed, 20 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/ti/dpll.txt b

[PATCH 0/4] clk: ti: add am33xx spread spectrum clock support

2021-03-14 Thread Dario Binacchi
. The series allows you to enable and adjust the spread spectrum clocking for all am33xx PLLs for which it is supported. Dario Binacchi (4): clk: ti: fix typo in routine description dt-bindings: ti: dpll: add spread spectrum support ARM: dts: am33xx-clocks: add spread spectrum support clk

[PATCH 4/4] clk: ti: add am33xx spread spectrum clock support

2021-03-14 Thread Dario Binacchi
Signed-off-by: Dario Binacchi --- arch/arm/boot/dts/am33xx-clocks.dtsi | 4 +- drivers/clk/ti/dpll.c| 41 ++ drivers/clk/ti/dpll3xxx.c| 85 include/linux/clk/ti.h | 24 4 files changed, 152 insert

[PATCH 1/4] clk: ti: fix typo in routine description

2021-03-14 Thread Dario Binacchi
Replace _omap3_noncore_dpll_program with omap3_noncore_dpll_program. Signed-off-by: Dario Binacchi --- drivers/clk/ti/dpll3xxx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/ti/dpll3xxx.c b/drivers/clk/ti/dpll3xxx.c index 6097b099a5df..94d5b5fe9a2b 100644

Re: [PATCH v4 5/6] can: c_can: prepare to up the message objects number

2021-03-05 Thread Dario Binacchi
> Il 04/03/2021 16:26 Marc Kleine-Budde ha scritto: > > > On 02.03.2021 22:54:34, Dario Binacchi wrote: > > diff --git a/drivers/net/can/c_can/c_can.c b/drivers/net/can/c_can/c_can.c > > index 77b9aee56154..0052ba5197e0 100644 > > --- a/drivers/net/can/c_can/c_c

Re: [PATCH v3 5/6] can: c_can: prepare to up the message objects number

2021-03-03 Thread Dario Binacchi
Hi Marc, > Il 03/03/2021 10:00 Marc Kleine-Budde ha scritto: > > > On 03.03.2021 09:23:13, Dario Binacchi wrote: > [...] > > > > @@ -1205,17 +1203,31 @@ static int c_can_close(struct net_device *dev) > > > > return 0; > > > > } &g

Re: [PATCH v3 5/6] can: c_can: prepare to up the message objects number

2021-03-03 Thread Dario Binacchi
Hi Kurt, > Il 02/03/2021 19:49 Kurt Van Dijck ha > scritto: > > > On Sun, 28 Feb 2021 11:38:54 +0100, Dario Binacchi wrote: > > Date: Sun, 28 Feb 2021 11:38:54 +0100 > > From: Dario Binacchi > > To: linux-kernel@vger.kernel.org > > Cc: Federico Vaga

Re: [PATCH v3 3/6] can: c_can: fix control interface used by c_can_do_tx

2021-03-03 Thread Dario Binacchi
Hi Kurt, > Il 02/03/2021 19:44 Kurt Van Dijck ha > scritto: > > > On Sun, 28 Feb 2021 11:38:52 +0100, Dario Binacchi wrote: > > According to commit 640916db2bf7 ("can: c_can: Make it SMP safe") let RX use > > IF1 (i.e. IF_RX) and TX use IF2 (i.e.

[PATCH v4 5/6] can: c_can: prepare to up the message objects number

2021-03-02 Thread Dario Binacchi
bjects beyond the 32 currently managed. This was achieved by transforming the constants used to manage RX/TX messages into variables without changing the driver policy. Signed-off-by: Dario Binacchi Reported-by: kernel test robot --- Changes in v4: - Use GENMASK() for setting msg_obj_rx_mask.

[PATCH v4 3/6] can: c_can: add a comment about IF_RX interface's use

2021-03-02 Thread Dario Binacchi
After reading the commit 640916db2bf7 ("can: c_can: Make it SMP safe") it may sound strange to see the IF_RX interface used by the can_inval_tx_object function. A comment was added to avoid any misunderstanding. Signed-off-by: Dario Binacchi --- Changes in v4: - Restore IF_RX interf

[PATCH v4 4/6] can: c_can: use 32-bit write to set arbitration register

2021-03-02 Thread Dario Binacchi
The arbitration register is already set up with 32-bit writes in the other parts of the code except for this point. Signed-off-by: Dario Binacchi --- (no changes since v1) drivers/net/can/c_can/c_can.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/can/c_can

[PATCH v4 1/6] can: c_can: remove unused code

2021-03-02 Thread Dario Binacchi
de a comment useless and misleading. Signed-off-by: Dario Binacchi --- (no changes since v1) drivers/net/can/c_can/c_can.c | 3 +-- drivers/net/can/c_can/c_can.h | 4 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/net/can/c_can/c_can.c b/drivers/net/can/c_can/c_can.

[PATCH v4 2/6] can: c_can: fix indentation

2021-03-02 Thread Dario Binacchi
Commit 524369e2391f ("can: c_can: remove obsolete STRICT_FRAME_ORDERING Kconfig option") left behind wrong indentation, fix it. Signed-off-by: Dario Binacchi --- (no changes since v1) drivers/net/can/c_can/c_can.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v4 0/6] can: c_can: add support to 64 message objects

2021-03-02 Thread Dario Binacchi
routine to avoid an additional memory allocation/deallocation. - Add message objects number to PCI driver data. Dario Binacchi (6): can: c_can: remove unused code can: c_can: fix indentation can: c_can: add a comment about IF_RX interface's use can: c_can: use 32-bit write to se

[PATCH v4 6/6] can: c_can: add support to 64 message objects

2021-03-02 Thread Dario Binacchi
d accesses are in fact required, which however remained at 16-bit for configurations with 32 message objects. Signed-off-by: Dario Binacchi --- Changes in v4: - Use BIT() for setting single bits and GENMASK() for setting masks. Changes in v3: - Use unsigned int instead of int as type of the m

Re: [PATCH v3 5/6] can: c_can: prepare to up the message objects number

2021-03-02 Thread Dario Binacchi
Hi Marc, > Il 01/03/2021 20:45 Marc Kleine-Budde ha scritto: > > > On 01.03.2021 18:21:42, Dario Binacchi wrote: > > > > @@ -730,7 +728,7 @@ static void c_can_do_tx(struct net_device *dev) > > > > while ((idx = ffs(pend))) { > > > >

Re: [PATCH v2 3/6] can: c_can: fix control interface used by c_can_do_tx

2021-03-01 Thread Dario Binacchi
> Il 01/03/2021 12:36 Marc Kleine-Budde ha scritto: > > > On 28.02.2021 11:35:31, Dario Binacchi wrote: > > > On 25.02.2021 22:51:52, Dario Binacchi wrote: > > > > According to commit 640916db2bf7 ("can: c_can: Make it SMP safe") let > > &

Re: [PATCH v3 5/6] can: c_can: prepare to up the message objects number

2021-03-01 Thread Dario Binacchi
Hi Marc, > Il 01/03/2021 14:08 Marc Kleine-Budde ha scritto: > > > On 01.03.2021 12:38:05, Marc Kleine-Budde wrote: > > On 28.02.2021 11:38:54, Dario Binacchi wrote: > > [...] > > > > > @@ -730,7 +728,7 @@ static void c_can_do_tx(struct net_devi

Re: [PATCH v3 5/6] can: c_can: prepare to up the message objects number

2021-03-01 Thread Dario Binacchi
Hi Marc, > Il 01/03/2021 12:38 Marc Kleine-Budde ha scritto: > > > On 28.02.2021 11:38:54, Dario Binacchi wrote: > [...] > > > @@ -730,7 +728,7 @@ static void c_can_do_tx(struct net_device *dev) > > while ((idx = ffs(pend))) { > > idx--

[PATCH v3 6/6] can: c_can: add support to 64 message objects

2021-02-28 Thread Dario Binacchi
d accesses are in fact required, which however remained at 16-bit for configurations with 32 message objects. Signed-off-by: Dario Binacchi --- Changes in v3: - Use unsigned int instead of int as type of the msg_obj_num field in c_can_driver_data and c_can_pci_data structures. Changes in

[PATCH v3 3/6] can: c_can: fix control interface used by c_can_do_tx

2021-02-28 Thread Dario Binacchi
According to commit 640916db2bf7 ("can: c_can: Make it SMP safe") let RX use IF1 (i.e. IF_RX) and TX use IF2 (i.e. IF_TX). Signed-off-by: Dario Binacchi --- (no changes since v1) drivers/net/can/c_can/c_can.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drive

[PATCH v3 2/6] can: c_can: fix indentation

2021-02-28 Thread Dario Binacchi
Commit 524369e2391f ("can: c_can: remove obsolete STRICT_FRAME_ORDERING Kconfig option") left behind wrong indentation, fix it. Signed-off-by: Dario Binacchi --- (no changes since v1) drivers/net/can/c_can/c_can.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v3 4/6] can: c_can: use 32-bit write to set arbitration register

2021-02-28 Thread Dario Binacchi
The arbitration register is already set up with 32-bit writes in the other parts of the code except for this point. Signed-off-by: Dario Binacchi --- (no changes since v1) drivers/net/can/c_can/c_can.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/can/c_can

[PATCH v3 5/6] can: c_can: prepare to up the message objects number

2021-02-28 Thread Dario Binacchi
bjects beyond the 32 currently managed. This was achieved by transforming the constants used to manage RX/TX messages into variables without changing the driver policy. Signed-off-by: Dario Binacchi Reported-by: kernel test robot --- Changes in v3: - Use unsigned int instead of int as type of

[PATCH v3 1/6] can: c_can: remove unused code

2021-02-28 Thread Dario Binacchi
de a comment useless and misleading. Signed-off-by: Dario Binacchi --- (no changes since v1) drivers/net/can/c_can/c_can.c | 3 +-- drivers/net/can/c_can/c_can.h | 4 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/net/can/c_can/c_can.c b/drivers/net/can/c_can/c_can.

[PATCH v3 0/6] can: c_can: add support to 64 message objects

2021-02-28 Thread Dario Binacchi
nel test robot. - Add Reported-by tag. - Pass larger size to alloc_candev() routine to avoid an additional memory allocation/deallocation. - Add message objects number to PCI driver data. Dario Binacchi (6): can: c_can: remove unused code can: c_can: fix indentation can: c_can: fix control i

Re: [PATCH v2 3/6] can: c_can: fix control interface used by c_can_do_tx

2021-02-28 Thread Dario Binacchi
Hi Marc, > Il 26/02/2021 09:44 Marc Kleine-Budde ha scritto: > > > On 25.02.2021 22:51:52, Dario Binacchi wrote: > > According to commit 640916db2bf7 ("can: c_can: Make it SMP safe") let RX use > > IF1 (i.e. IF_RX) and TX use IF2 (i.e. IF_TX). > &

Re: [PATCH v2 5/6] can: c_can: prepare to up the message objects number

2021-02-28 Thread Dario Binacchi
Hi Marc, > Il 26/02/2021 09:33 Marc Kleine-Budde ha scritto: > > > On 25.02.2021 22:51:54, Dario Binacchi wrote: > > As pointed by commit c0a9f4d396c9 ("can: c_can: Reduce register access") > > the "driver casts the 16 message objects in ston

[PATCH v2 4/6] can: c_can: use 32-bit write to set arbitration register

2021-02-25 Thread Dario Binacchi
The arbitration register is already set up with 32-bit writes in the other parts of the code except for this point. Signed-off-by: Dario Binacchi --- (no changes since v1) drivers/net/can/c_can/c_can.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/can/c_can

[PATCH v2 3/6] can: c_can: fix control interface used by c_can_do_tx

2021-02-25 Thread Dario Binacchi
According to commit 640916db2bf7 ("can: c_can: Make it SMP safe") let RX use IF1 (i.e. IF_RX) and TX use IF2 (i.e. IF_TX). Signed-off-by: Dario Binacchi --- (no changes since v1) drivers/net/can/c_can/c_can.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drive

[PATCH v2 2/6] can: c_can: fix indentation

2021-02-25 Thread Dario Binacchi
Commit 524369e2391f ("can: c_can: remove obsolete STRICT_FRAME_ORDERING Kconfig option") left behind wrong indentation, fix it. Signed-off-by: Dario Binacchi --- (no changes since v1) drivers/net/can/c_can/c_can.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v2 6/6] can: c_can: add support to 64 message objects

2021-02-25 Thread Dario Binacchi
d accesses are in fact required, which however remained at 16-bit for configurations with 32 message objects. Signed-off-by: Dario Binacchi --- Changes in v2: - Add message objects number to PCI driver data. drivers/net/can/c_can/c_can.c | 19 +++ drivers/net/can/c_c

[PATCH v2 5/6] can: c_can: prepare to up the message objects number

2021-02-25 Thread Dario Binacchi
bjects beyond the 32 currently managed. This was achieved by transforming the constants used to manage RX/TX messages into variables without changing the driver policy. Signed-off-by: Dario Binacchi Reported-by: kernel test robot --- Changes in v2: - Fix compiling error reported by kernel test r

[PATCH v2 1/6] can: c_can: remove unused code

2021-02-25 Thread Dario Binacchi
de a comment useless and misleading. Signed-off-by: Dario Binacchi --- (no changes since v1) drivers/net/can/c_can/c_can.c | 3 +-- drivers/net/can/c_can/c_can.h | 4 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/net/can/c_can/c_can.c b/drivers/net/can/c_can/c_can.

[PATCH v2 0/6] can: c_can: add support to 64 message objects

2021-02-25 Thread Dario Binacchi
orted by kernel test robot. - Add Reported-by tag. - Pass larger size to alloc_candev() routine to avoid an additional memory allocation/deallocation. - Add message objects number to PCI driver data. Dario Binacchi (6): can: c_can: remove unused code can: c_can: fix indentation can: c_can: fix

[PATCH 4/6] can: c_can: use 32-bit write to set arbitration register

2021-02-24 Thread Dario Binacchi
The arbitration register is already set up with 32-bit writes in the other parts of the code except for this point. Signed-off-by: Dario Binacchi --- drivers/net/can/c_can/c_can.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/can/c_can/c_can.c b/drivers/net

[PATCH 0/6] can: c_can: add support to 64 messages objects

2021-02-24 Thread Dario Binacchi
atomic64_t because I think the atomic_t type has size of at least 32 bits on x86 and arm, which is enough to handle 64 messages. http://marc.info/?l=linux-can&m=139746476821294&w=2 reports the results of tests performed just on x86 and arm architectures. Dario Binacchi (6): can: c_can: remove unu

[PATCH 6/6] can: c_can: add support to 64 messages objects

2021-02-24 Thread Dario Binacchi
d accesses are in fact required, which however remained at 16-bit for configurations with 32 message objects. Signed-off-by: Dario Binacchi --- drivers/net/can/c_can/c_can.c | 19 +++ drivers/net/can/c_can/c_can.h | 5 +++-- drivers/net/can/c_can/c_can_platf

[PATCH 2/6] can: c_can: fix indentation

2021-02-24 Thread Dario Binacchi
Commit 524369e2391f ("can: c_can: remove obsolete STRICT_FRAME_ORDERING Kconfig option") left behind wrong indentation, fix it. Signed-off-by: Dario Binacchi --- drivers/net/can/c_can/c_can.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/can/c_can

[PATCH 3/6] can: c_can: fix control interface used by c_can_do_tx

2021-02-24 Thread Dario Binacchi
According to commit 640916db2bf7 ("can: c_can: Make it SMP safe") let RX use IF1 (i.e. IF_RX) and TX use IF2 (i.e. IF_TX). Signed-off-by: Dario Binacchi --- drivers/net/can/c_can/c_can.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/can/c_can/c_can.c

[PATCH 5/6] can: c_can: prepare to up the message objects number

2021-02-24 Thread Dario Binacchi
bjects beyond the 32 currently managed. This was achieved by transforming the constants used to manage RX/TX messages into variables without changing the driver policy. Signed-off-by: Dario Binacchi --- drivers/net/can/c_can/c_can.c | 56 +- drivers/net/can/c_can/c

[PATCH 1/6] can: c_can: remove unused code

2021-02-24 Thread Dario Binacchi
de a comment useless and misleading. Signed-off-by: Dario Binacchi --- drivers/net/can/c_can/c_can.c | 3 +-- drivers/net/can/c_can/c_can.h | 4 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/net/can/c_can/c_can.c b/drivers/net/can/c_can/c_can.c index ef474bae47a1.

Re: [RESEND PATCH] drm/tilcdc: fix raster control register setting

2021-02-17 Thread Dario Binacchi
Hi Tomi, > Il 17/02/2021 07:41 Tomi Valkeinen ha > scritto: > > > On 16/02/2021 22:22, Dario Binacchi wrote: > > The fdd property of the tilcdc_panel_info structure must set the reqdly > > bit field (bit 12 to 19) of the raster control register. The previous

[RESEND PATCH] drm/tilcdc: fix raster control register setting

2021-02-16 Thread Dario Binacchi
The fdd property of the tilcdc_panel_info structure must set the reqdly bit field (bit 12 to 19) of the raster control register. The previous statement set the least significant bit instead. Signed-off-by: Dario Binacchi --- drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 2 +- 1 file changed, 1

[RESEND PATCH] drm/tilcdc: fix raster control register setting

2021-02-16 Thread Dario Binacchi
The fdd property of the tilcdc_panel_info structure must set the reqdly bit field (bit 12 to 19) of the raster control register. The previous statement set the least significant bit instead. Signed-off-by: Dario Binacchi --- drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 2 +- 1 file changed, 1

[PATCH] ARM: dts: am33xx-l4: fix tscadc@0 node indentation

2021-02-14 Thread Dario Binacchi
Fix the broken indentation of tscadc@0 node. Signed-off-by: Dario Binacchi --- arch/arm/boot/dts/am33xx-l4.dtsi | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/arch/arm/boot/dts/am33xx-l4.dtsi b/arch/arm/boot/dts/am33xx-l4.dtsi index

  1   2   >