Received: by 10.223.185.116 with SMTP id b49csp742356wrg; Sat, 10 Feb 2018 18:44:10 -0800 (PST) X-Google-Smtp-Source: AH8x226P9D0P/ZuWOMt5sSF+w7ijEugZCrZ8kWT4tHeJciUNlB9hcOSeZbaidA3VlQbCycQC9jZk X-Received: by 10.99.163.111 with SMTP id v47mr5452717pgn.80.1518317050043; Sat, 10 Feb 2018 18:44:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518317050; cv=none; d=google.com; s=arc-20160816; b=PJkJJxkNtAl6Zn6yU7uFLRQf/dcBR/qXl4bPHxpTZcznfK07Ks0yZZmAdW7H8VY9be QPq4rQIyXmmsb6ITsrsIwGLFHQ4A3ZG/UQnxQw8+0pFOBnZlZAbLsnliXVQ8yPiBerD3 535e2LUPP7aD/R2mWRdWi1PpbVfoDXEit1OMVmiFsh/kfIdUvld2uTe6OykFBb60GQZQ IzolfBQT062sjzDwuUldrVg7BwRw9TZu25/ga37bY92SWcfirbFmBGc08/zhGSgBDaVp dxHWCR8GUsVhDG4GgSRd4iXbTflP0DRLau/KMGWTGaQzq9gtsj7QfF0GftzJvJp9h4ur KkKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :date:cc:to:from:subject:message-id:dkim-signature :arc-authentication-results; bh=gUbhvpGnYAhypTQG2VklWjj6pEI+j9ez0xRhklnXHOk=; b=LfoPZI72JiumYyH7kv1QcGLR9/7kLc8c9Vb/M/OWF8fm6oIDOet7OXrai2ea0E0lo4 S7HnIgHGfUCkxfufNHs+aq+600X+HlQ8QQq4mGUfDQRrRd4xwFJOp9RlKKa0DC11pPpn SpbU4yXZK+w8E7o3LZ363l8I5OCylQ/HkUo0RlfO1pVoYj1EeIFycooQL9oLiFLSPlU2 xERD4M1kax39Iqs4uz3xgmD7BT1bC+RDZLtVpiNBersmknoapsbMvNm9tpv9HSmGFol3 6ZRXMQmIKthXRPlrHD+mQ/NecDzIEAZiwXeLT2+6yXBYsJspw+fAVIloffkOxnP7OAv6 Z5lA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=IZFu6fMh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u64si4143784pfk.340.2018.02.10.18.43.54; Sat, 10 Feb 2018 18:44:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=IZFu6fMh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752054AbeBKCnO (ORCPT + 99 others); Sat, 10 Feb 2018 21:43:14 -0500 Received: from mail-wm0-f48.google.com ([74.125.82.48]:54409 "EHLO mail-wm0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751050AbeBKCnN (ORCPT ); Sat, 10 Feb 2018 21:43:13 -0500 Received: by mail-wm0-f48.google.com with SMTP id i186so3853817wmi.4; Sat, 10 Feb 2018 18:43:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:cc:date:mime-version :content-transfer-encoding; bh=gUbhvpGnYAhypTQG2VklWjj6pEI+j9ez0xRhklnXHOk=; b=IZFu6fMhJh2WeL/W75UvyZO2vFaeJvLeKmmCkSXYPW49hRb+A731ILi4t1tKGu79yV TdEYJ9sy8ZQXgy+Yq28LaobZdbwQ8HK5mT7uSpqzgs/e3k7sEmlK9V4gMzFgYZqsZRpN 95s1cw+g6wvFQukmQTmVjbEOArt+YJ1BSIAjYtCLh/Wvy0B9BsztWaF5S8p+bu5uTQli jKlkEmRrn/DzbW6nJ2FFhIkUqnc7heDVARjju6GEHf2FwUgVkGGj02NfMsL1DXDMbdku ZQn06w8tthyNgInUXZ2xDSMy1QwWqTHYFCws9nsLAoz6mg2stuJE2VLZeO5756CDzGeL ScWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:mime-version :content-transfer-encoding; bh=gUbhvpGnYAhypTQG2VklWjj6pEI+j9ez0xRhklnXHOk=; b=QyPf/jYdgeTSDuMNMbhcWUinnq623eIVJBLyONxvti8mGSYotDJVuj+tpEBEt2dSwr +2q0Fdf4AW7LqsV26okkBsFj1LWDKocjJ04NRfAuSPRka/G4IvrsWqLuSdXeAeSie2iF E9rcTQyw9CuDppFtObfYa//GNwKOHkSQ/Zt/NrCRmr19ol39NxH8cDFO92SIcmZGCDID RDpgbTduEM3Biv4e6N+99hJx/OKMqhUgIG6RIK5we7Hm8LgidGFmLpDnOyFbUF8AP/hX JN2bAllA0qoh6RmaF0BJYXK+/qlKdbvkPvIfvQLASKzCVcudklJqEvkkwHs4JLP6QeAe wSfQ== X-Gm-Message-State: APf1xPC1yvdPFlAS6YJUP7NbrOZwygSmxKCc6xEDfrhYbw1qQoPUoi1C scSrFiGSl1ehz122LAjP8E8= X-Received: by 10.28.22.201 with SMTP id 192mr300100wmw.45.1518316991578; Sat, 10 Feb 2018 18:43:11 -0800 (PST) Received: from debian-laptop.fritz.box (p578F04D2.dip0.t-ipconnect.de. [87.143.4.210]) by smtp.googlemail.com with ESMTPSA id m13sm11733874wrm.18.2018.02.10.18.43.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 10 Feb 2018 18:43:10 -0800 (PST) Message-ID: <1518316987.5562.7.camel@gmail.com> Subject: [BUG]: A83T - AC100 gets the wrong number of parents From: Philipp Rossak To: linux-sunxi@googlegroups.com, maxime.ripard@free-electrons.com, wens@csie.org Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-rtc@vger.kernel.org Date: Sun, 11 Feb 2018 03:43:07 +0100 Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.6-1+deb9u1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hey, When I boot my A83T I get the following bootlog [1]. After some debugging, I found out that the function call: clk_hw_get_num_parents() returns 2. After a look in the devicetree I found out that this value should be 1, since we only have one parent clock [3]. Setting the variable num_parents to 1 fixes the problem, but this is no soultion. Regards, Philipp [1]: https://pastebin.com/5c7hxjsS [2]: http://lxr.bootlin.com/linux/v4.15/source/drivers/rtc/rtc-ac100.c# L180 [3]: http://lxr.bootlin.com/linux/v4.15/source/arch/arm/boot/dts/sun8i- a83t-bananapi-m3.dts#L159