Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp5137709pxu; Wed, 21 Oct 2020 14:44:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjPqfkGHhnWDGl1rFmepZJRkuEE1t11zm3u+p1XKOY6IZ2vZvf3+WLOEQudxUalymZ2Er5 X-Received: by 2002:aa7:d7d9:: with SMTP id e25mr5004554eds.253.1603316645886; Wed, 21 Oct 2020 14:44:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1603316645; cv=pass; d=google.com; s=arc-20160816; b=nm8akwRb3QWut6TqP9vxGHYegmKHlpSAfqTBRs58W0Jen3FqpK1p91XMLu3OnFFjNl cDAkA1g5ISNRRJ9H9O6sgxVDvBTYIRfT+Fs6/R6YCdcd6a4zmPxz904mRFF0dXXXehHs ICI2xE2+tjSR86rn5Fu6zPclnkQVY3dTkMV+G/4HlbhLfb0H2ISP3xfUActjaINPDQMJ eNDp4FoSk98l4o47APFUbsnaymCFe0yoUar3R92fVq5ZbCfdnsXvaqQgN2c6gtOrIggO wQN/okZ3VAT3ljG2WlQ4YSgVuSNgsuxeHA4fbLht8WA7sZ9D5+NpYmg+vtHC4rMR6Lz6 c4Yw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=GjBlu8dd+HbRB5BRC3rgx3KdHTCcot+sQJdNGJF/i3I=; b=Hn4CNjnxlkcyAv4jEwfB8t1wfJRJ33W2ma0jOZy17T2IFA8yCp6jRdtzYWlo/gBzx5 U06dJKSbLVpim4zXiNEtduqJcGhzxN0QdUZEXngUq/u8cZUtCOda8hy1XK2y4/eEzAtZ RAnmytXNkmT5voo5jJdOwxWWe8XGCQL3oapRZuE62E4GeluDbYtOOPg5vxLgXWcPusfD SOsgI2NBG9NOgE9WrXbTXP0BwuuiW3FDOYDUqcy4gMWVhxQoExKrds1uGNLtvYlmUMxn Qv+qU9XtYjrwSIEh9+kMjmUZv9Qas14uF4Cv08e22kTVGg+VX5leFZOX8ibepwkFWpzL Ix0g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=I6BB5mok; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d23si2051532edj.468.2020.10.21.14.43.28; Wed, 21 Oct 2020 14:44:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=I6BB5mok; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2440457AbgJUIg7 (ORCPT + 99 others); Wed, 21 Oct 2020 04:36:59 -0400 Received: from mail-eopbgr10067.outbound.protection.outlook.com ([40.107.1.67]:59471 "EHLO EUR02-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2408113AbgJUIg6 (ORCPT ); Wed, 21 Oct 2020 04:36:58 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jjdrq1DPK8H3Gcjr9p9radct6o9ZlXxXohYsO3U3iUo7FwVqqhoSJ1U5qHwsNRp/TuDfj3ZbXWGzG0keKZenEWva9ayEqlUibRyQR8mjXYQgEZMmMI1m+n+jWB8vL9wcqf0A0ARkqpB6/Dq3EljazDIVC+giiQp5YqQZgP5/gnMqh3+O0BAbWeBqCGrImVmMGXboQvfpE7AdmLhX9Y4ix1zqH58uFfH1GL1XhLgo8d4U+lljvfsdbHHyThaZ2kTAQpajAoYiCiGS/Bog/xS9kdf/8LLvgGH0J3M9iYTxfn8r+ukb9CVHnkg54whvRbqEkdNRbHzYjYFa+rnosUvjeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=GjBlu8dd+HbRB5BRC3rgx3KdHTCcot+sQJdNGJF/i3I=; b=dIgcSAgic2PTCWMSYa6G2XTVpLpi6WtJAcQKwm8bSB9XLrVQ8TkWZc1R6Jtd5qOSm0uzieufv2BoI4OxLW2mCTW2hWv16e2rzdrhju9MT2WMM0vb5m7aa4DgTyDfP0srO/AZLnGyWuPGIn9rORgJ9SkAO14tjLDnuBXFl0uT0i7JaurnzjWVZb33U1a+RA7XSp0XZa3oaXNdrPmuhYl7L1wBHvt8OoMXtiPGclJXUQ8qBuSBRwfjgH2XlOLmRpdRevZIK8h78Kg39m4nJKAAmrQ6b13Wr6TGq9hXO5AlTJIBwkEOYOZJYqu0S/EiNK4gBY+ZxJgiwM60kuevX8OBlQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=GjBlu8dd+HbRB5BRC3rgx3KdHTCcot+sQJdNGJF/i3I=; b=I6BB5mokONH/Lx0P9L+e9e/VYpqgabB20iWpvKOsrsXBqiHJywd/+gPgnfhqagLJ0i3rVaAIXXA8wX2nrSh9/BnNY5M/h2vpVFYUOIv9fqzO65fWNwpXFYNEgU1TG4bF4pUX6aFESXGhOfzDbQAXzd8XWJh7P1rrjbUw33tlmnY= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=nxp.com; Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) by DB6PR0401MB2376.eurprd04.prod.outlook.com (2603:10a6:4:51::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3477.27; Wed, 21 Oct 2020 08:36:52 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::ec42:b6d0:7666:19ef]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::ec42:b6d0:7666:19ef%8]) with mapi id 15.20.3477.028; Wed, 21 Oct 2020 08:36:52 +0000 From: peng.fan@nxp.com To: sboyd@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, festevam@gmail.com, abel.vesa@nxp.com Cc: kernel@pengutronix.de, linux-imx@nxp.com, Anson.Huang@nxp.com, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, aisheng.dong@nxp.com, Peng Fan Subject: [PATCH 0/5] clk: imx: fix bus critical clk registration Date: Wed, 21 Oct 2020 16:31:29 +0800 Message-Id: <1603269094-29367-1-git-send-email-peng.fan@nxp.com> X-Mailer: git-send-email 2.7.4 Content-Type: text/plain X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: SG2PR03CA0155.apcprd03.prod.outlook.com (2603:1096:4:c9::10) To DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (119.31.174.66) by SG2PR03CA0155.apcprd03.prod.outlook.com (2603:1096:4:c9::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3499.4 via Frontend Transport; Wed, 21 Oct 2020 08:36:48 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 061eba6a-1e53-4029-8d73-08d8759c7590 X-MS-TrafficTypeDiagnostic: DB6PR0401MB2376: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:765; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: kVqWRAPP+/9/mk9lI6akYRq/H6FeGKvLpVcZnhcG/2TRQdfXdE0YRZ0xYCixHm5dz5YxAwwdO/KHVfWhu9O3r9wS/ck2jx8LdwXPr1SV8hdZ1GBIyvW1yq6WLR1r+cq6IiD3jxZnaIPoX0Fw15sRcjGgom3VI8ZSDxT6YQA8W29bLAkCY6XRS+E06ApMz8uxzEwkyb75qYRIlW6DIV9ugmRSM8JqPadw7eXyAFt3Rx5j7pOgT8DBm8VhpChBs9Jy7Vocf+M6Um+OU1NqlnJpB+0PEnH6rwFYEBcNgFI0i8OmCrEa1zjYMXDunjcovkoX2SNPjK4BdHyNZkbBvdf+3WsSveEN9PWsKLtTjwjr9SUejbxaISHNbwi1KKCEJ6rL/nrYroCfvblOVl+m+s6rhKek+J11CQgwmoaKmkqn8+kZcP7/i8CAJBk1ZH4MMdms77G7yfxT03zC5iN1iIdoxA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB6PR0402MB2760.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(376002)(396003)(39860400002)(136003)(346002)(366004)(69590400008)(956004)(2616005)(16526019)(966005)(5660300002)(83380400001)(26005)(52116002)(4326008)(6506007)(36756003)(316002)(478600001)(8936002)(66556008)(8676002)(186003)(66946007)(9686003)(6486002)(6666004)(86362001)(66476007)(6512007)(2906002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: 0IMl0VFbniP0pTK310LB8JyNn6geyIoepQHtDp/wwtC9e0fRWkBpSB1/Psz0QabeJGaMU/nPjDpet8sHVDChvpfCbZ2A+LjC8x46CZit3oRMab8UYm2bKgMeRMf5+z2AFffzg1yxK8sLbQO7MQCarHqzM1UE0A18ZEfaDfWs4qPoU2GFSO5JEU4CB5ponYIG1IqkD++bsnWQCRWvHcXpwegn4psQVGpDilqJcpUzwkVLeDv1hrGMjign3/fJK94hIwkLG5oI3eyGalDErdk97eqlJKGivSTcMRTGPl0eCUKY0/FN++56/ZB8mCAz/np0yhmMRKrwaCTw3htsveobZ53tdjQtANlMiW/mHf0r0Vugh3t69o2CL/8zEpbdLpyz/QuHz4m0YnBGhudZei5T3X78Iu+36gOsgpAiHCUfYk2/YTvFdVZK6LOOgv1ShjKmnUVm0fbTL/vIRlQJnt6Bdhm7AYnEl59vcbNHYUcporI2fZsXA3C16r1WhbZqhmEytFfcWMXol1sGfyYVReKlp6Gz7qQLAACEqcfV9TpPGBvKHUhbMcgBFUAZr11dBDL+n51UFppZlYkg8PErBPnRkYAqRDnwHrQeKbNcJDYMOi1KWYSndFrxdlWOoaw0T8jungYfXksMNKjlKW+pgGQ/ug== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 061eba6a-1e53-4029-8d73-08d8759c7590 X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Oct 2020 08:36:52.4748 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: woiyPXXeVTEYWe8Pa30mrYU5xQ0EOAdsR0x6Qp+BaAPQ6PaXbkqn3FHczH9fJcGoicEbR9GmA+3112Z7dkFlHA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0401MB2376 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Peng Fan The issue is exposed by https://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/ linux.git/commit/?h=for-next&id=936c383673b9e3007432f17140ac62de53d87db9 Since the upper patch not in Linus tree, I not add Fixed tag. The issue is bus clk should be registered using bus composite api, not peripheral api. Otherwise we will met failed to assigned clock parents error log. Because peripheral critical clk has CLK_SET_PARENT_GATE and CLK_IS_CRITICAL, you will not able to set clk parents. We need use bus critical clk api to register the clks, so introduce a new helper and use it. Peng Fan (5): clk: imx: add imx8m_clk_hw_composite_bus_critical clk: imx8mq: fix noc and noc_io registration clk: imx8mm: fix bus critical clk registration clk: imx8mn: fix bus critical clk registration clk: imx8mp: fix bus critical clk registration drivers/clk/imx/clk-imx8mm.c | 10 +++++----- drivers/clk/imx/clk-imx8mn.c | 6 +++--- drivers/clk/imx/clk-imx8mp.c | 10 +++++----- drivers/clk/imx/clk-imx8mq.c | 8 ++++---- drivers/clk/imx/clk.h | 5 +++++ 5 files changed, 22 insertions(+), 17 deletions(-) -- 2.28.0