Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp260910rwl; Thu, 23 Mar 2023 15:59:50 -0700 (PDT) X-Google-Smtp-Source: AKy350aPO69kkb8cIMtgblwbZatFsAgNwDqywpD7PZDwMd2F7n/oTiwTRTMk0ob7C0UtCDySJ0Wt X-Received: by 2002:aa7:c74d:0:b0:4ac:bbaa:867a with SMTP id c13-20020aa7c74d000000b004acbbaa867amr787141eds.24.1679612390425; Thu, 23 Mar 2023 15:59:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679612390; cv=none; d=google.com; s=arc-20160816; b=tTb19Y+HAloBAHiFeXxENirgmV0mvGkreZa3kXmIDVTZUxyzU4yYy7GMXZbzOsMJXz NRUeA1WW8U87SsO0VQqpnoyNCA9/OKiO7p83jUEXaJDeyAls58ez2d8wyif6jhW2Lu6F vJywEUuw4ahf8/owX9PERh+Eu/BJ7pMjd+3lTtfNgeUZAw6d3aH5daNsItaYuLEX7lWn MQwNaNmJWIVfh0WTRqL5tgg1cymUEQkAcp9Tv/KrFO+/dWgnqxmCVGXEu0YG+pImpdTb telOq3RIRh6QmMsHE2y1NI3DreEVSE26d2DHwYajBhUvMr3e7pyJVgvkX4+9K+XI7BLE 4Gnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=RB081nZVc8dV6VyELhQ3vJcnmVLV2KlhEV8rp6VNfxY=; b=XtHo13qe+WGcBIegGZENJ0pMQLIlzaWaxR0UG921UFZc1cLQG0D1YMt/JQDtiQGuCn xcio4zYNkVjA+OERp0llnQXBUWaAQe1zIMMvkc7r9lSLF4CYrJ9jDYQWubSV1FjfPghG ZSFFViGxpdZCbjNdVjmrkIqrIpChnh/eWYXDP95idMpJIbBQuArJk8JWBzxmH5pkNkV9 03NKTowrIqhs9pqemOs8k8NnR6toLorVQ19KjtdUSNahnnU0YI7ko/LFHkUW4MAvXAaJ ykS1G+3mxVyu2muHyi9DPCcoSSZjXJ9BP7zZNeQvY2ukb8T++sYFZvBlS6BO/zcy+9i/ YaNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=DevLSpZI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d27-20020a056402517b00b004fa4bc4a916si3080879ede.555.2023.03.23.15.59.26; Thu, 23 Mar 2023 15:59:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=DevLSpZI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S231721AbjCWWwB (ORCPT + 99 others); Thu, 23 Mar 2023 18:52:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231614AbjCWWvu (ORCPT ); Thu, 23 Mar 2023 18:51:50 -0400 Received: from mail-io1-xd32.google.com (mail-io1-xd32.google.com [IPv6:2607:f8b0:4864:20::d32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 953442CC74; Thu, 23 Mar 2023 15:51:45 -0700 (PDT) Received: by mail-io1-xd32.google.com with SMTP id k17so99287iob.1; Thu, 23 Mar 2023 15:51:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679611904; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=RB081nZVc8dV6VyELhQ3vJcnmVLV2KlhEV8rp6VNfxY=; b=DevLSpZI1a3F/+379l0Zvj4w4XbRQvDKbOpvV0cg607xGcW5H8AV0vIqnaJ+2uOLDM qYioT5oSWGj/OvxIdVR6D58xOqo8W9QIgJEprnIDSkoCN0A7fqHPU7QcnCIW6uFCYGx/ WZ9kAIOMJ3+EbrUHZE3KkJ/VtCwElycR5fqU5snaNd5KmNxUvs7P7PrSOdjgHA3aNZwb UvFltyjGpeIVKmGLOn62W3mh+rjVDuwVh+rDCmdqKQfIinj8sQ2WA8EZFTcKhPQYF5CS Xh6YW/7KTAuQjlzimGJLELBzUwYUU3d5RkQLaOo5cxZgrvRjNYPw8WI847Xj5Ny/kXH9 Z7fQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679611904; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=RB081nZVc8dV6VyELhQ3vJcnmVLV2KlhEV8rp6VNfxY=; b=zSAsxEJPsxV1CSm48llqG7sNBMISbg1vmc1GaNQT3FkkVXq+kAz8y0H7xj+AOlevVo XNUkUvjYicCmD6GZI89pCydg+npprnUUiTie5Z0gKceNqSBW4WESoDTemxYwrN/8o8+C FDGFRyrMcIKCzV4eMIcKaGW+aDTuPktWKGVto8CR9oKfi54T4CAPqQAl9i2JJuSEsEJy y0BlyAb1Cu9QufGfUVTIJJ7e2a8wNxoJ9c4tAX7rDU7fmuc7eT8EvcuP3ZMIMOt81nAg ZNaGRb80PF3zG333fOpVWMpkKu+Bzvc9Kupe9Fgi4u2GknhWcYSPKOvQIc28EsSGmViy eBOw== X-Gm-Message-State: AO0yUKXqEbJkzHR1K9JEnWmczhOJJGw8KAdjQEp7qUk3f6uWHWFwSEX0 scwxSAhijc3TzlWGU8TwJZg4olaREVU= X-Received: by 2002:a5e:d606:0:b0:750:6c44:3454 with SMTP id w6-20020a5ed606000000b007506c443454mr563080iom.12.1679611904360; Thu, 23 Mar 2023 15:51:44 -0700 (PDT) Received: from aford-IdeaCentre-A730.lan ([2601:447:d001:897f:f38d:f05d:4666:1249]) by smtp.gmail.com with ESMTPSA id f102-20020a0284ef000000b0040631e8bf89sm6266988jai.38.2023.03.23.15.51.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Mar 2023 15:51:44 -0700 (PDT) From: Adam Ford To: linux-clk@vger.kernel.org Cc: aford@beaconembedded.com, Adam Ford , Fabio Estevam , Abel Vesa , Peng Fan , Michael Turquette , Stephen Boyd , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , NXP Linux Team , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH V3 2/4] clk: imx: Add imx8m_clk_hw_composite_flags macro Date: Thu, 23 Mar 2023 17:51:26 -0500 Message-Id: <20230323225128.117061-3-aford173@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230323225128.117061-1-aford173@gmail.com> References: <20230323225128.117061-1-aford173@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In order to set custom flags to imx8m_clk_hw_composite, split it off into a separate macro which can accept additional flags. Signed-off-by: Adam Ford Reviewed-by: Fabio Estevam diff --git a/drivers/clk/imx/clk.h b/drivers/clk/imx/clk.h index 3d94722bbf99..621b0e84ef27 100644 --- a/drivers/clk/imx/clk.h +++ b/drivers/clk/imx/clk.h @@ -417,6 +417,10 @@ struct clk_hw *__imx8m_clk_hw_composite(const char *name, _imx8m_clk_hw_composite(name, parent_names, reg, \ 0, IMX_COMPOSITE_CLK_FLAGS_DEFAULT) +#define imx8m_clk_hw_composite_flags(name, parent_names, reg, flags) \ + _imx8m_clk_hw_composite(name, parent_names, reg, \ + 0, IMX_COMPOSITE_CLK_FLAGS_DEFAULT | flags) + #define imx8m_clk_hw_composite_critical(name, parent_names, reg) \ _imx8m_clk_hw_composite(name, parent_names, reg, \ 0, IMX_COMPOSITE_CLK_FLAGS_CRITICAL) -- 2.34.1