All of lore.kernel.org
 help / color / mirror / Atom feed
From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Greg KH <greg@kroah.com>
Cc: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>,
	linux-renesas-soc@vger.kernel.org, linux-sh@vger.kernel.org,
	linux-serial@vger.kernel.org,
	Geert Uytterhoeven <geert+renesas@glider.be>
Subject: Re: [PATCH 00/19] sh-sci: Platform data simplification
Date: Wed, 11 Jan 2017 13:03:29 +0200	[thread overview]
Message-ID: <1559791.UE8yXL4Pxn@avalon> (raw)
In-Reply-To: <20170111080437.GA24055@kroah.com>

Hi Greg,

On Wednesday 11 Jan 2017 09:04:37 Greg KH wrote:
> On Wed, Jan 04, 2017 at 01:06:20AM +0200, Laurent Pinchart wrote:
> > Hello,
> > 
> > Most of the patches in this series have been sitting in my development
> > tree for three years now. While rebasing all my development branches I
> > decided it was time to send them out in case they're considered useful.
> > I've then thrown a few additional patches in to move the driver further in
> > the right direction (or at least the direction I consider right).
> > 
> > The idea behind this series is to move towards removal of the sh-sci
> > platform data. This won't be possible until SH platforms move to DT (and
> > I won't hold my breath), but we can get rid of most of the platform data
> > fields already and cleanup the sh-sci driver at the same time.
> > 
> > The series already removes the capabilities, port_reg, regshift,
> > dma_slave_tx and dma_slave_rx fields. We should be able to go further:
> > 
> > - The flags field is only used by sh5 to set UPF_IOREMAP. It should be
> >   possible to find another way to determine in the driver whether to
> >   ioremap the registers.
> > 
> > - The sampling_rate field is only used by sh7723 and sh7724 to override
> >   the value hardcoded in the driver, even though the datasheets of those
> >   SoCs don't mention any restriction. This might not be needed and should
> >   be investigated.
> > 
> > - The scscr REIE bit should be possible to compute in the driver, as it's
> >   set for all SCIF ports except SCIx_SH3_SCIF_REGTYPE,
> >   SCIx_SH7705_SCIF_REGTYPE,
> >   and the sh7343 SCIx_SH4_SCIF_REGTYPE. The latter will be trickier to
> >   handle.
> >
> > - Now that we have support for baud rate generators and externel clocks,
> >   the scscr CKE1 bit should be computed in the driver in all cases.
> > 
> > - The scscr TOIE bit doesn't seem to follow a clear rule, but given that
> >   it's the last scscr bit to handle I'm sure we'll find something :-)
> > 
> > - It might make sense to merge the type and regtype fields in a single
> >   type.
> > 
> > Finally, it might be time to drop support for the SH platforms that would
> > get in the way of sh-sci cleanup.
> 
> I've merged patches 1, 2, 12, 13, 14, 15, 16, 17, and 18 in my tty tree.
> 
> If I should take any others there as well, please let me know.

The other patches are needed, otherwise you'll break compilation of arch/sh/. 
I'm waiting for an ack from Geert on two patches and I'll then repost the 
whole series.

-- 
Regards,

Laurent Pinchart

WARNING: multiple messages have this Message-ID (diff)
From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Greg KH <greg@kroah.com>
Cc: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>,
	linux-renesas-soc@vger.kernel.org, linux-sh@vger.kernel.org,
	linux-serial@vger.kernel.org,
	Geert Uytterhoeven <geert+renesas@glider.be>
Subject: Re: [PATCH 00/19] sh-sci: Platform data simplification
Date: Wed, 11 Jan 2017 11:03:29 +0000	[thread overview]
Message-ID: <1559791.UE8yXL4Pxn@avalon> (raw)
In-Reply-To: <20170111080437.GA24055@kroah.com>

Hi Greg,

On Wednesday 11 Jan 2017 09:04:37 Greg KH wrote:
> On Wed, Jan 04, 2017 at 01:06:20AM +0200, Laurent Pinchart wrote:
> > Hello,
> > 
> > Most of the patches in this series have been sitting in my development
> > tree for three years now. While rebasing all my development branches I
> > decided it was time to send them out in case they're considered useful.
> > I've then thrown a few additional patches in to move the driver further in
> > the right direction (or at least the direction I consider right).
> > 
> > The idea behind this series is to move towards removal of the sh-sci
> > platform data. This won't be possible until SH platforms move to DT (and
> > I won't hold my breath), but we can get rid of most of the platform data
> > fields already and cleanup the sh-sci driver at the same time.
> > 
> > The series already removes the capabilities, port_reg, regshift,
> > dma_slave_tx and dma_slave_rx fields. We should be able to go further:
> > 
> > - The flags field is only used by sh5 to set UPF_IOREMAP. It should be
> >   possible to find another way to determine in the driver whether to
> >   ioremap the registers.
> > 
> > - The sampling_rate field is only used by sh7723 and sh7724 to override
> >   the value hardcoded in the driver, even though the datasheets of those
> >   SoCs don't mention any restriction. This might not be needed and should
> >   be investigated.
> > 
> > - The scscr REIE bit should be possible to compute in the driver, as it's
> >   set for all SCIF ports except SCIx_SH3_SCIF_REGTYPE,
> >   SCIx_SH7705_SCIF_REGTYPE,
> >   and the sh7343 SCIx_SH4_SCIF_REGTYPE. The latter will be trickier to
> >   handle.
> >
> > - Now that we have support for baud rate generators and externel clocks,
> >   the scscr CKE1 bit should be computed in the driver in all cases.
> > 
> > - The scscr TOIE bit doesn't seem to follow a clear rule, but given that
> >   it's the last scscr bit to handle I'm sure we'll find something :-)
> > 
> > - It might make sense to merge the type and regtype fields in a single
> >   type.
> > 
> > Finally, it might be time to drop support for the SH platforms that would
> > get in the way of sh-sci cleanup.
> 
> I've merged patches 1, 2, 12, 13, 14, 15, 16, 17, and 18 in my tty tree.
> 
> If I should take any others there as well, please let me know.

The other patches are needed, otherwise you'll break compilation of arch/sh/. 
I'm waiting for an ack from Geert on two patches and I'll then repost the 
whole series.

-- 
Regards,

Laurent Pinchart


  parent reply	other threads:[~2017-01-11 11:03 UTC|newest]

Thread overview: 104+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-03 23:06 [PATCH 00/19] sh-sci: Platform data simplification Laurent Pinchart
2017-01-03 23:06 ` Laurent Pinchart
2017-01-03 23:06 ` [PATCH 01/19] serial: sh-sci: Set the SCSCR TE and RE bits in the driver Laurent Pinchart
2017-01-03 23:06   ` Laurent Pinchart
2017-01-06 10:11   ` Geert Uytterhoeven
2017-01-06 10:11     ` Geert Uytterhoeven
2017-01-03 23:06 ` [PATCH 02/19] serial: sh-sci: Don't rely on platform data flags when not needed Laurent Pinchart
2017-01-03 23:06   ` Laurent Pinchart
2017-01-06 10:11   ` Geert Uytterhoeven
2017-01-06 10:11     ` Geert Uytterhoeven
2017-01-03 23:06 ` [PATCH 03/19] sh: Don't set sh-sci pdata scscr TE and RE bits Laurent Pinchart
2017-01-03 23:06   ` Laurent Pinchart
2017-01-06 10:11   ` Geert Uytterhoeven
2017-01-06 10:11     ` Geert Uytterhoeven
2017-01-03 23:06 ` [PATCH 04/19] sh: Don't set sh-sci pdata scscr TIE and RIE bits Laurent Pinchart
2017-01-03 23:06   ` Laurent Pinchart
2017-01-06 10:11   ` Geert Uytterhoeven
2017-01-06 10:11     ` Geert Uytterhoeven
2017-01-03 23:06 ` [PATCH 05/19] sh: sh726[49]: Don't set sh-sci pdata scscr TOIE bit Laurent Pinchart
2017-01-03 23:06   ` Laurent Pinchart
2017-01-06 10:13   ` Geert Uytterhoeven
2017-01-06 10:13     ` Geert Uytterhoeven
2017-01-03 23:06 ` [PATCH 06/19] sh: Don't set the sh-sci pdata UPF_BOOT_AUTOCONF flags Laurent Pinchart
2017-01-03 23:06   ` Laurent Pinchart
2017-01-06 10:13   ` Geert Uytterhoeven
2017-01-06 10:13     ` Geert Uytterhoeven
2017-01-03 23:06 ` [PATCH 07/19] sh: Don't set sh-sci port_reg Laurent Pinchart
2017-01-03 23:06   ` Laurent Pinchart
2017-01-06 10:17   ` Geert Uytterhoeven
2017-01-06 10:17     ` Geert Uytterhoeven
2017-01-03 23:06 ` [PATCH 08/19] sh: sh3: sh770x: Fix platform data for the IRDA serial port Laurent Pinchart
2017-01-03 23:06   ` Laurent Pinchart
2017-01-06 10:18   ` Geert Uytterhoeven
2017-01-06 10:18     ` Geert Uytterhoeven
2017-01-06 10:25     ` Laurent Pinchart
2017-01-06 10:25       ` Laurent Pinchart
2017-01-06 11:52     ` [PATCH v1.1 08/19] serial: sh-sci: Fix register offsets " Laurent Pinchart
2017-01-06 11:52       ` Laurent Pinchart
2017-01-11 12:31       ` Geert Uytterhoeven
2017-01-11 12:31         ` Geert Uytterhoeven
2017-01-03 23:06 ` [PATCH 09/19] sh: Don't set the sh-sci platform data regshift field Laurent Pinchart
2017-01-03 23:06   ` Laurent Pinchart
2017-01-06 10:18   ` Geert Uytterhoeven
2017-01-06 10:18     ` Geert Uytterhoeven
2017-01-03 23:06 ` [PATCH 10/19] sh: Don't set the sh-sci platform data scscr CKE0 bit Laurent Pinchart
2017-01-03 23:06   ` Laurent Pinchart
2017-01-06 10:23   ` Geert Uytterhoeven
2017-01-06 10:23     ` Geert Uytterhoeven
2017-01-03 23:06 ` [PATCH 11/19] sh: Don't set the sh-sci platform data REIE bit when not implemented Laurent Pinchart
2017-01-03 23:06   ` Laurent Pinchart
2017-01-06 10:27   ` Geert Uytterhoeven
2017-01-06 10:27     ` Geert Uytterhoeven
2017-01-03 23:06 ` [PATCH 12/19] serial: sh-sci: Remove initialization of zero fields in sci_port_params Laurent Pinchart
2017-01-03 23:06   ` Laurent Pinchart
2017-01-06 10:29   ` Geert Uytterhoeven
2017-01-06 10:29     ` Geert Uytterhoeven
2017-01-03 23:06 ` [PATCH 13/19] serial: sh-sci: Replace regmap array with port parameters Laurent Pinchart
2017-01-03 23:06   ` Laurent Pinchart
2017-01-06 10:36   ` Geert Uytterhoeven
2017-01-06 10:36     ` Geert Uytterhoeven
2017-01-03 23:06 ` [PATCH 14/19] serial: sh-sci: Constify platform data Laurent Pinchart
2017-01-03 23:06   ` Laurent Pinchart
2017-01-06 10:36   ` Geert Uytterhoeven
2017-01-06 10:36     ` Geert Uytterhoeven
2017-01-03 23:06 ` [PATCH 15/19] serial: sh-sci: Extend sci_port_params with more port parameters Laurent Pinchart
2017-01-03 23:06   ` Laurent Pinchart
2017-01-06 10:51   ` Geert Uytterhoeven
2017-01-06 10:51     ` Geert Uytterhoeven
2017-01-03 23:06 ` [PATCH 16/19] serial: sh-sci: Remove the platform data dma slave rx/tx channel IDs Laurent Pinchart
2017-01-03 23:06   ` Laurent Pinchart
2017-01-06 10:53   ` Geert Uytterhoeven
2017-01-06 10:53     ` Geert Uytterhoeven
2017-01-03 23:06 ` [PATCH 17/19] serial: sh-sci: Remove manual break debouncing Laurent Pinchart
2017-01-03 23:06   ` Laurent Pinchart
2017-01-06 10:57   ` Geert Uytterhoeven
2017-01-06 10:57     ` Geert Uytterhoeven
2017-01-03 23:06 ` [PATCH 18/19] serial: sh-sci: Remove unused platform data capabilities field Laurent Pinchart
2017-01-03 23:06   ` Laurent Pinchart
2017-01-06 10:59   ` Geert Uytterhoeven
2017-01-06 10:59     ` Geert Uytterhoeven
2017-01-06 11:05     ` Laurent Pinchart
2017-01-06 11:05       ` Laurent Pinchart
2017-01-03 23:06 ` [PATCH 19/19] serial: sh-sci: Compute the regshift value for SCI ports Laurent Pinchart
2017-01-03 23:06   ` Laurent Pinchart
2017-01-06 11:00   ` Geert Uytterhoeven
2017-01-06 11:00     ` Geert Uytterhoeven
2017-01-06 12:21     ` [PATCH v1.1 " Laurent Pinchart
2017-01-06 12:21       ` Laurent Pinchart
2017-01-11 12:37       ` Geert Uytterhoeven
2017-01-11 12:37         ` Geert Uytterhoeven
2017-01-06 11:01 ` [PATCH 00/19] sh-sci: Platform data simplification Geert Uytterhoeven
2017-01-06 11:01   ` Geert Uytterhoeven
2017-01-11  8:04 ` Greg KH
2017-01-11  8:04   ` Greg KH
2017-01-11 10:38   ` Geert Uytterhoeven
2017-01-11 10:38     ` Geert Uytterhoeven
2017-01-11 10:43     ` Greg KH
2017-01-11 10:43       ` Greg KH
2017-01-11 11:06       ` Laurent Pinchart
2017-01-11 11:06         ` Laurent Pinchart
2017-01-11 20:31         ` Greg KH
2017-01-11 20:31           ` Greg KH
2017-01-11 11:03   ` Laurent Pinchart [this message]
2017-01-11 11:03     ` Laurent Pinchart

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=1559791.UE8yXL4Pxn@avalon \
    --to=laurent.pinchart@ideasonboard.com \
    --cc=geert+renesas@glider.be \
    --cc=greg@kroah.com \
    --cc=laurent.pinchart+renesas@ideasonboard.com \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=linux-serial@vger.kernel.org \
    --cc=linux-sh@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is 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.