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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D15F7C433F5 for ; Fri, 30 Sep 2022 14:33:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231475AbiI3OdQ (ORCPT ); Fri, 30 Sep 2022 10:33:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230165AbiI3OdP (ORCPT ); Fri, 30 Sep 2022 10:33:15 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1972D1A88C0; Fri, 30 Sep 2022 07:33:15 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9EF4B62345; Fri, 30 Sep 2022 14:33:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9CF0FC433D6; Fri, 30 Sep 2022 14:33:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1664548394; bh=5epeeF6cHoZR+tq0tUOX3/+1Kb5T8cJOHegvWxP0eMg=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=kVPb6GAoSIk2UOnKJT+QUsxWIOQe78/TOg4iWYHmPRBb+jr9K9DOltPWe7LKA8TfQ Kx0Rnobx0hwvdk0qzzVYdPk3v9uNMOouF3yydnQcCfDsrqJHlU360ylESxk/o1oDyB mSrROU6mbdW+bVddaCtP1s60oA0PBAYIYRK8/Q6QB1za8ofrc0DpPYA44bz327aZuJ 72RijaREfNt5nt7DiCdqeuVD7DCUJcm8yyOPE0OmIW3CYF7leuE0GgZe0kQlBvj8vU TvbNEWVXbd8i3XJyFRneou5lnYJHuQHzwGnTwyO4kKwN2urBDBisM+8oqIABuVn1Qj dJPM9zOFK1PVA== Date: Fri, 30 Sep 2022 07:33:12 -0700 From: Jakub Kicinski To: Jiri Pirko Cc: Vadim Fedorenko , Arkadiusz Kubalewski , Jonathan Lemon , Vadim Fedorenko , Aya Levin , netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org Subject: Re: [RFC PATCH v2 0/3] Create common DPLL/clock configuration API Message-ID: <20220930073312.23685d5d@kernel.org> In-Reply-To: References: <20220626192444.29321-1-vfedorenko@novek.ru> <6b80b6c8-29fd-4c2a-e963-1f273d866f12@novek.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Fri, 30 Sep 2022 10:33:57 +0200 Jiri Pirko wrote: > >> Also, did you consider usage of sysfs? Why it isn't a better fit than > >> netlink? > > > >We already have sysfs implemented in the ptp_ocp driver. But it looks like > >more hardware is going to be available soon with almost the same functions, > >so it would be great to have common protocol to configure such devices. > > Sure, but more hw does not mean you can't use sysfs. Take netdev as an > example. The sysfs exposed for it is implemented net/core/net-sysfs.c > and is exposed for all netdev instances, no matter what the > driver/hardware is. Wait, *you* are suggesting someone uses sysfs instead of netlink? Could you say more because I feel like that's kicking the absolute. 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 49E4BC433F5 for ; Fri, 30 Sep 2022 14:34:23 +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=Nh5BFhle+s72ntZ736nMdwCEvChTpPAGZlHk2Aw2RlY=; b=AvWXmLIOvGYFkT ZOTCXfnMONydtEt891FBmmQ+tfsutAvWjHKoZXiANjsSChJM/HUb+RbXodL2F+PDVRWDFSleE/BQK RHv1BA0xcAmUhAjvWEKq844EU3dQu0l6lzm3Fh3Kz6+N5ZhUP1NVK84Ty/+kxYwQ7fe5kcQa51lRp VLd/0ZjZER7KTfIwKtZO7hKs2Zq57d2DWft6/DDiw9HSl2hFRIGbuNH+XXaeiaiUyX5pEQYXyxlAb zJZ1yifAFLDJQsVc2ergNMLtFmpvFgVjGNm6fB2MxyaALhSFR/mJV33iGgVZCv2sYzMTD81s6IH61 XJ7fjaeSF7SUr5kfi4Pg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oeH4q-009oOU-4U; Fri, 30 Sep 2022 14:33:20 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oeH4m-009oL0-VQ for linux-arm-kernel@lists.infradead.org; Fri, 30 Sep 2022 14:33:18 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8F09362301; Fri, 30 Sep 2022 14:33:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9CF0FC433D6; Fri, 30 Sep 2022 14:33:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1664548394; bh=5epeeF6cHoZR+tq0tUOX3/+1Kb5T8cJOHegvWxP0eMg=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=kVPb6GAoSIk2UOnKJT+QUsxWIOQe78/TOg4iWYHmPRBb+jr9K9DOltPWe7LKA8TfQ Kx0Rnobx0hwvdk0qzzVYdPk3v9uNMOouF3yydnQcCfDsrqJHlU360ylESxk/o1oDyB mSrROU6mbdW+bVddaCtP1s60oA0PBAYIYRK8/Q6QB1za8ofrc0DpPYA44bz327aZuJ 72RijaREfNt5nt7DiCdqeuVD7DCUJcm8yyOPE0OmIW3CYF7leuE0GgZe0kQlBvj8vU TvbNEWVXbd8i3XJyFRneou5lnYJHuQHzwGnTwyO4kKwN2urBDBisM+8oqIABuVn1Qj dJPM9zOFK1PVA== Date: Fri, 30 Sep 2022 07:33:12 -0700 From: Jakub Kicinski To: Jiri Pirko Cc: Vadim Fedorenko , Arkadiusz Kubalewski , Jonathan Lemon , Vadim Fedorenko , Aya Levin , netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org Subject: Re: [RFC PATCH v2 0/3] Create common DPLL/clock configuration API Message-ID: <20220930073312.23685d5d@kernel.org> In-Reply-To: References: <20220626192444.29321-1-vfedorenko@novek.ru> <6b80b6c8-29fd-4c2a-e963-1f273d866f12@novek.ru> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220930_073317_096091_CCFBB594 X-CRM114-Status: GOOD ( 14.62 ) 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, 30 Sep 2022 10:33:57 +0200 Jiri Pirko wrote: > >> Also, did you consider usage of sysfs? Why it isn't a better fit than > >> netlink? > > > >We already have sysfs implemented in the ptp_ocp driver. But it looks like > >more hardware is going to be available soon with almost the same functions, > >so it would be great to have common protocol to configure such devices. > > Sure, but more hw does not mean you can't use sysfs. Take netdev as an > example. The sysfs exposed for it is implemented net/core/net-sysfs.c > and is exposed for all netdev instances, no matter what the > driver/hardware is. Wait, *you* are suggesting someone uses sysfs instead of netlink? Could you say more because I feel like that's kicking the absolute. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel