From: Tom Rini Date: Sat, 21 Nov 2015 21:50:36 -0500 Subject: [U-Boot] [PATCH v3 05/13] ns16550: unify serial_ppc In-Reply-To: References: <1447684616-10297-1-git-send-email-thomas@wytron.com.tw> <1447940895-7763-1-git-send-email-thomas@wytron.com.tw> <1447940895-7763-6-git-send-email-thomas@wytron.com.tw> <564FB8A6.2090502@wytron.com.tw> <564FD97A.4070807@wytron.com.tw> <20151121152229.GT9551@bill-the-cat> Message-ID: <20151122025036.GU9551@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sat, Nov 21, 2015 at 09:10:07AM -0700, Simon Glass wrote: > Hi Tom, > > On 21 November 2015 at 08:22, Tom Rini wrote: > > On Sat, Nov 21, 2015 at 10:39:54AM +0800, Thomas Chou wrote: > >> Hi Simon, > >> > >> On 2015?11?21? 08:27, Simon Glass wrote: > >> >>I moved it to a macro. > >> >>#define CONFIG_SYS_NS16550_CLK get_serial_clock() > >> > > >> >Ah, we shouldn't do that with driver model. This should be in some > >> >sort of clock driver. Perhaps we should leave this serial driver along > >> >for now? > >> > >> I understand a clock driver should be used for driver model. But I > >> would suggest that we use this get_serial_clock macro until the > >> clock driver for powerpc is ready to get UART clock. This will help > >> things moving forwards to driver model. > > > > Yes, how do you want to proceed here Simon? I have all of these (and a > > few other things) build-tested now and will be doing some quick sanity > > run time testing later. Thanks! > > My first thought would be to leave serial_ppc.c out of the conversion, > but that would be tricky given how the series is structured (with the > temporary CONFIG). > > Perhaps a TODO on the #define above since it should be cleaned up, and > we want to make sure no one copies it. > > Since you have it ready I think it should go in, with the TODO if you > can manage it. OK, I'll add the TODO comment. -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: