From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 892CFC61DA4 for ; Fri, 3 Feb 2023 02:59:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To: Subject:MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=kLLDe74m/P5C+cfu38PoP2vEkySTG2uPORF/Fb9hrQM=; b=jcKEXn8+JQHazX 8f3pOa7ZkD5h8GFnfSY6z1ajA0aAgXFvaRcfCd3CZn7f4xGZB/P8xsrAeFTSVW6jFPmOeuz4/lHSu MMMFjloFIomBl7R6OZV0apcY6Vdyn4tlgj4ikXQ6A9x3iHMBMzkmBGQeVWfNq4jAyc+ZFgCwiRJv8 DD9min1pKtWzKwTdH56w9bC5ABWsrgNU3jnD1CHRNbxnFQX/VFdwkTQ9Pfkz6waisIgr7Sxw4IZg2 2MzHjaoBc+GvE9FumLzWI/v8KmFPgTXEBtMf2M/dRyqPGG3Xz1kSo3ZhZ8+5kGjB40ttwtvLsTbRT m4U0vV2zp2Xt+L6E4Bbw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pNmHe-0007CB-Gq; Fri, 03 Feb 2023 02:58:38 +0000 Received: from mail-ej1-x633.google.com ([2a00:1450:4864:20::633]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pNmHY-0007A2-LD for linux-arm-kernel@lists.infradead.org; Fri, 03 Feb 2023 02:58:34 +0000 Received: by mail-ej1-x633.google.com with SMTP id ml19so11913590ejb.0 for ; Thu, 02 Feb 2023 18:58:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=Hr14rJhyuOYS8CCUPkhJr0V/RzyGfQ4WdWOK9XcyHds=; b=DPYTk9LfruNrk0yQfRVEMZfhRtdFK/yxKmc6GwnKAYfCLVOGHi+ZWILSVVaHo/h4Rj j9PnLd7WJkD3q1H45Ojvmmwv5e8zj9mPpPaoZSOORM4TlcNoaIGvwAYMcxb//kbZSocz 4PmfYKbAcpc9BTzUlt1Xf4qN/sd2hxJpH8duI7IqxnXR9xvxdiiXwNRwJsgRByiI+JpC 2jk/uV9pr4sxIEa3yZr1QdYtcUVXpWnxKsRbu/uU4upnB4uGTDkmVyPQ4BLKxcpHhyuo U5kE/5oZN62u9tOpIAq18vaGybiTK+B77zK3K+pU4qtkJW8T3X0YITk0FUiJIuhShbkf ejXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Hr14rJhyuOYS8CCUPkhJr0V/RzyGfQ4WdWOK9XcyHds=; b=HwcYJGZzd1MgHCWhMVg1z7hAoMkNsW2YLaf9n9BBtmGe8ihAnUB80uDdwqhFFZNW3P f3u6eS0JhGOi7PQ0FX6a5LfGyLSVi6n0/mu46Z+VqXF02nX0/0YAnNT51R7d/E3pSAIt FBT8GmQLZjw0FFneKGGbEBWM4urmWyT23R8L+2kWhyVGChmaM7fznxpb2hfnRUkT04dq REpL+Pcum+il8h1/uyPJqLDEtP3imXXVfpjUQ2OuaHHAsfqb9BqNhqJIzFpOO9XSX5c4 7vmOVwi3nVgmn+ly2UkzXjC0WhVJUiquPJRIP8lzLUok/OB+k1AuUTn/DgDrjNlXwS09 tSow== X-Gm-Message-State: AO0yUKXxeVN0AuEKI73UuH9eCullbt0Zq8lzBek+cZ9LAYoy2RMWLnsU k3AV21bUJm8AZbvdqiHbbtpsWg== X-Google-Smtp-Source: AK7set+a/A9kd8g19vDm6ooyY/CnSwtS6HJyTItZX2sRwOTPiG+M9P8aPtzxyDm5bR2gT/CPNNQFuQ== X-Received: by 2002:a17:907:2d28:b0:88d:f759:15ae with SMTP id gs40-20020a1709072d2800b0088df75915aemr11932550ejc.42.1675393110296; Thu, 02 Feb 2023 18:58:30 -0800 (PST) Received: from [192.168.1.101] (abyl20.neoplus.adsl.tpnet.pl. [83.9.31.20]) by smtp.gmail.com with ESMTPSA id x26-20020a1709064bda00b00886c1a02d20sm680121ejv.47.2023.02.02.18.58.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 02 Feb 2023 18:58:30 -0800 (PST) Message-ID: Date: Fri, 3 Feb 2023 03:58:27 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.0 Subject: Re: [PATCH 21/23] interconnect: drop racy registration API Content-Language: en-US To: Johan Hovold , Georgi Djakov Cc: Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Andy Gross , Bjorn Andersson , Sylwester Nawrocki , =?UTF-8?B?QXJ0dXIgxZp3aWdvxYQ=?= , Krzysztof Kozlowski , Alim Akhtar , Thierry Reding , Jonathan Hunter , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230201101559.15529-1-johan+linaro@kernel.org> <20230201101559.15529-22-johan+linaro@kernel.org> From: Konrad Dybcio In-Reply-To: <20230201101559.15529-22-johan+linaro@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230202_185832_774333_8D7C2301 X-CRM114-Status: GOOD ( 15.30 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 1.02.2023 11:15, Johan Hovold wrote: > Now that all interconnect drivers have been converted to the new > provider registration API, the old racy interface can be removed. > > Signed-off-by: Johan Hovold > --- Reviewed-by: Konrad Dybcio Konrad > drivers/interconnect/core.c | 16 ---------------- > include/linux/interconnect-provider.h | 11 ----------- > 2 files changed, 27 deletions(-) > > diff --git a/drivers/interconnect/core.c b/drivers/interconnect/core.c > index 93d27ff8eef6..b8917823fd95 100644 > --- a/drivers/interconnect/core.c > +++ b/drivers/interconnect/core.c > @@ -1078,22 +1078,6 @@ void icc_provider_deregister(struct icc_provider *provider) > } > EXPORT_SYMBOL_GPL(icc_provider_deregister); > > -int icc_provider_add(struct icc_provider *provider) > -{ > - icc_provider_init(provider); > - > - return icc_provider_register(provider); > -} > -EXPORT_SYMBOL_GPL(icc_provider_add); > - > -void icc_provider_del(struct icc_provider *provider) > -{ > - WARN_ON(!list_empty(&provider->nodes)); > - > - icc_provider_deregister(provider); > -} > -EXPORT_SYMBOL_GPL(icc_provider_del); > - > static const struct of_device_id __maybe_unused ignore_list[] = { > { .compatible = "qcom,sc7180-ipa-virt" }, > { .compatible = "qcom,sc8180x-ipa-virt" }, > diff --git a/include/linux/interconnect-provider.h b/include/linux/interconnect-provider.h > index d12cd18aab3f..b9af9016a95e 100644 > --- a/include/linux/interconnect-provider.h > +++ b/include/linux/interconnect-provider.h > @@ -125,8 +125,6 @@ int icc_nodes_remove(struct icc_provider *provider); > void icc_provider_init(struct icc_provider *provider); > int icc_provider_register(struct icc_provider *provider); > void icc_provider_deregister(struct icc_provider *provider); > -int icc_provider_add(struct icc_provider *provider); > -void icc_provider_del(struct icc_provider *provider); > struct icc_node_data *of_icc_get_from_provider(struct of_phandle_args *spec); > void icc_sync_state(struct device *dev); > > @@ -179,15 +177,6 @@ static inline int icc_provider_register(struct icc_provider *provider) > > static inline void icc_provider_deregister(struct icc_provider *provider) { } > > -static inline int icc_provider_add(struct icc_provider *provider) > -{ > - return -ENOTSUPP; > -} > - > -static inline void icc_provider_del(struct icc_provider *provider) > -{ > -} > - > static inline struct icc_node_data *of_icc_get_from_provider(struct of_phandle_args *spec) > { > return ERR_PTR(-ENOTSUPP); _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel