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 EC83DC001DB for ; Thu, 10 Aug 2023 06:44:00 +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:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=nuAedTsaM9o2a74e7XVuT9sYkhmAUHhdWSK1haQfeW4=; b=NzzXz7bkZkBXkf W/eLzngOrPdX4445Lzblsn2TwN4QObA5gZ7MqIpkQKpdPUkT1NQXMpwHA4XgWqRlHqOH3DW7pqjF2 zIXRkh9hfiSyDhE1xmFpMCV76v8hxDejtE2bKhdploAvs/2fB0f1+IvymNK7CCvrwujAv8tUQJ8wr 72Ex6RwHlCtpT5HFGIH/A8oOPGT8xJ4N5I9OaK8+FyWna8rGYQZw1bDuux0UMwfg8SIfMPmXgv6OW K0/fWQRvNjqqvG8BvY04yomxVfOXhwsQOBVZ8za5AzyXMcOp963Rw1z74tbGuYHdrYUSt8u1Kymbu Fu4Q9yjGNT134Znc0KsA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qTzOA-006gt1-1r; Thu, 10 Aug 2023 06:43:18 +0000 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qTzO0-006grn-1Y for linux-arm-kernel@lists.infradead.org; Thu, 10 Aug 2023 06:43:16 +0000 Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-3fe4cdb727cso5354945e9.0 for ; Wed, 09 Aug 2023 23:43:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli-us.20221208.gappssmtp.com; s=20221208; t=1691649783; x=1692254583; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=yut2Z+a14yxMcDEXkZzdFPLfRVZ9Qb94p4k3EOO68Sk=; b=1jfPBNHE0y4mAOO5VPnZKKKbCc0i2D7mzRSFE7xLau88UAVMFTX/eIuLcqpU9qIQqF nTnGkB+J9fE04oWwgeY69dzIzbrmF5HkVCJfbjUZYUxWqtVAeGP/n/32olVrS/Kq9gP0 AdyrPcVcNQKU7lmrCLa6Q/x6Q3yOqy5Q/MuD0TDr8+p44PerbSjSQCyClZSUb61+HMwx 05UzRyUzxOz48sQV74+3TaRKFSxhTkC4j6c7aYvU5iK1WLq8pWDPehJlpEXtCwNaSitv zCuNUMe+m53dt2TPiqkgm7G1h+L+qYGH7c+p+gc5KfR+yJdkbVBMsdUgF81bOGfrXvAa imJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691649783; x=1692254583; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=yut2Z+a14yxMcDEXkZzdFPLfRVZ9Qb94p4k3EOO68Sk=; b=TpdPdy+lNKev4Sjo84mh9nEla8qaQOA78kJDoxrdz07siOgwxMe6GwSM+JKgyy/j7V QJuQtYyYTmAGZvlrDdbnkmOm/aD4XiVgbOFaT7ain7wYrzuazkb8+0V6u5xzXrXhci0g H+chWnPRsny55r7vO5bH3PzVbYFuhvVHxdtQYgKZkW2F+qAlY4hMyznwcMCPWDdZeX8A XQsnlp4yKcj/VqBCN+KcZtoRgMg0lniWHb4Eks/bquVzztDgOuxLZLqFmU5sQf0Fp8Kc BWveEZXvdJ3lNUx+RQp1DgFMd2Ot6UoqL3WhswVr7gkYjr8DOU6eTF0QAqDe+gnre1tH w4hQ== X-Gm-Message-State: AOJu0YwLE3CkmgKnzL0oC4FobErGqvIoDPviP7sdBsWEc1Ao9tlEP5RN J4LHHg4Tz7o687P9xikmfOjTNQ== X-Google-Smtp-Source: AGHT+IEb+I3lyZINCDfzufoiEQMlOzN4F9fGAh7xM3gOhb0li7sIX6eV0rOgKMK5X7Ymolf57qXmPA== X-Received: by 2002:a05:600c:4fd5:b0:3fe:4d66:2d4b with SMTP id o21-20020a05600c4fd500b003fe4d662d4bmr1096237wmq.28.1691649782577; Wed, 09 Aug 2023 23:43:02 -0700 (PDT) Received: from localhost ([212.23.236.67]) by smtp.gmail.com with ESMTPSA id b10-20020a5d550a000000b0031801aa34e2sm1066784wrv.9.2023.08.09.23.43.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Aug 2023 23:43:01 -0700 (PDT) Date: Thu, 10 Aug 2023 08:43:00 +0200 From: Jiri Pirko To: Vadim Fedorenko Cc: Jakub Kicinski , Arkadiusz Kubalewski , Jonathan Lemon , Paolo Abeni , Milena Olech , Michal Michalik , linux-arm-kernel@lists.infradead.org, poros@redhat.com, mschmidt@redhat.com, netdev@vger.kernel.org, linux-clk@vger.kernel.org, Bart Van Assche , intel-wired-lan@lists.osuosl.org Subject: Re: [PATCH net-next v3 7/9] ice: implement dpll interface to control cgu Message-ID: References: <20230809214027.556192-1-vadim.fedorenko@linux.dev> <20230809214027.556192-8-vadim.fedorenko@linux.dev> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20230809214027.556192-8-vadim.fedorenko@linux.dev> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230809_234308_706331_D1B455D7 X-CRM114-Status: UNSURE ( 8.72 ) X-CRM114-Notice: Please train this message. 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 Wed, Aug 09, 2023 at 11:40:25PM CEST, vadim.fedorenko@linux.dev wrote: >From: Arkadiusz Kubalewski [...] >+/** >+ * ice_dpll_deinit - Disable the driver/HW support for dpll subsystem >+ * the dpll device. >+ * @pf: board private structure >+ * >+ * Handles the cleanup work required after dpll initialization, freeing >+ * resources and unregistering the dpll, pin and all resources used for >+ * handling them. >+ * >+ * Context: Destroys pf->dplls.lock mutex. >+ */ >+void ice_dpll_deinit(struct ice_pf *pf) >+{ >+ bool cgu = ice_is_feature_supported(pf, ICE_F_CGU); >+ >+ if (!test_bit(ICE_FLAG_DPLL, pf->flags)) >+ return; >+ if (cgu) >+ ice_dpll_deinit_worker(pf); >+ clear_bit(ICE_FLAG_DPLL, pf->flags); Clearing the flag after deinit worker somehow implicates that it needs to be set until here. That is not true. Please rather use test_and_clear_bit() instead of test_bit() which would takes care of the clear alongside with the check. With or without that. Signed-off-by: Jiri Pirko [...] _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel