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 6DC57C001E0 for ; Tue, 15 Aug 2023 03:23:36 +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:MIME-Version:References:In-Reply-To: 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=O6W7lzJDt91pE1n4oKssKZ9n5x002IbYp/3U3XSrBZs=; b=aa7QalJx0Ksys4 QadPIZKWnbAO6raqDhELvRfUxkhH5PPpu24l7+TBbMrddu2EJW8IyCSFk6wcgmfB0ujLh61J5nn99 bLQcSMboG9fglI7ZV05iIgukMcQvjLLUd0VqpWHrIYjFHGQWxr9C3bff+RKVwyM+XP6+zsqYzVCxh YISC+cYcnYEVhU/weHUZKBv5NWsozzhtAadEi0+FJ0ga8G3onXT56GSbjFfU3v7VrXOuLl2Y6EjBp XACLJgtnoldgaOqcvit1iXMCyQ+rnMqXwUj8aDAAZI7e/UTdxRYdL4bN+KYe2x8iL8ZdJK5s8t+hc UxAZfxdHvT94EGLqneqg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qVkeF-000nQz-1r; Tue, 15 Aug 2023 03:23:11 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qVke9-000nQU-0q for linux-arm-kernel@lists.infradead.org; Tue, 15 Aug 2023 03:23:07 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 2436C601FE; Tue, 15 Aug 2023 03:23:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D18B7C433C8; Tue, 15 Aug 2023 03:23:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692069783; bh=3+FTO5tYbyi0mvftVJwDIuqYnqD2lynJbuJhWEOFv1I=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=DDjT8cCx82/67tu2egRePi9MaFGJvhbGmQdECqvo3CMYdryzy5u1IkjR1YOVlL9c3 YyBOTPAFUmedSEl0lngnxJeQjXUg0N3pu9DdN/2PL1jRsrY4X7rmiLOAKJ6SEWhovx wh5zpVLlWqMTw7ydONqAUZVo/Rt24gXumrstNuqDv/w6mycYXkjKSDgTrN70shfk8L G4wqRmevtZvHMTdTSXhKPmpvGYlR6kAsG7GXGEczOIT/Rlzfk5L/kFVzOj9Rev7iCm o5N5AfLFEYsmCJm9KK/OywOrhC+6eiL08ImPk0dTLXJ38Haicc4dMoCf93o0lRx5Hs MRRNk9E5qw7Eg== Date: Mon, 14 Aug 2023 20:23:01 -0700 From: Jakub Kicinski To: Vadim Fedorenko Cc: Jiri Pirko , 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, Jiri Pirko Subject: Re: [PATCH net-next v4 4/9] dpll: netlink: Add DPLL framework base functions Message-ID: <20230814202301.13768f0d@kernel.org> In-Reply-To: <20230811200340.577359-5-vadim.fedorenko@linux.dev> References: <20230811200340.577359-1-vadim.fedorenko@linux.dev> <20230811200340.577359-5-vadim.fedorenko@linux.dev> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230814_202305_367289_63E6826C X-CRM114-Status: UNSURE ( 9.64 ) 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 On Fri, 11 Aug 2023 21:03:35 +0100 Vadim Fedorenko wrote: > +static int > +dpll_pin_freq_set(struct dpll_pin *pin, struct nlattr *a, > + struct netlink_ext_ack *extack) > +{ > + u64 freq = nla_get_u64(a); > + struct dpll_pin_ref *ref; > + unsigned long i; > + int ret; > + > + if (!dpll_pin_is_freq_supported(pin, freq)) { > + NL_SET_ERR_MSG_FMT(extack, "not supported freq:%llu", freq); > + return -EINVAL; > + } NL_SET_ERR_MSG_ATTR(extack, a, "frequency not supported by the device") _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel