From: Michal Simek Date: Tue, 16 Oct 2018 17:00:04 +0200 Subject: [U-Boot] [PATCH] serial: pl01x: Get clock from clock node if no clock property found In-Reply-To: <94f26550-627d-abe1-6c5b-6c1bf99ce288@suse.de> References: <41abe8ae8caa57672660321ff54368ccc0927f3f.1538545499.git.michal.simek@xilinx.com> <2613910a-8e60-5847-9d71-5a3f5a04b99e@suse.de> <35e805cb-edb1-08a8-c230-1eb0022061d9@xilinx.com> <94f26550-627d-abe1-6c5b-6c1bf99ce288@suse.de> Message-ID: <8ff38611-6dc6-5b28-e537-b86fa066439c@xilinx.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 16.10.2018 16:57, Alexander Graf wrote: > > > On 16.10.18 16:46, Michal Simek wrote: >> On 16.10.2018 16:25, Alexander Graf wrote: >>> >>> >>> On 03.10.18 07:45, Michal Simek wrote: >>>> From: Siva Durga Prasad Paladugu >>>> >>>> This patch gets clock from clock nodes if no clock property found >>>> in serial node. >>>> >>>> Signed-off-by: Siva Durga Prasad Paladugu >>>> Signed-off-by: Michal Simek >>> >>> Is this what Linux does? If so, you probably want to explicitly state that. >> >> yes. Linux does that. >> On the other hand reading clock property is something what it is out of >> dt binding spec. > > In that case, please at least note that in the patch description or > maybe even in a comment in the code, so the next time someone looks at > the code they don't get confused :). Right now I have removed this patch from my PR because it is breaking generic arm/arm64 model because there are missing some dt patches on qemu side. Look at our discussing in my PR to Tom done yesterday. > > Speaking of which, why isn't this handled generically already? I was > expecting that find clocks would be a matter of 2 lines of code - or > maybe none thanks to magic. It depends. M