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 smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (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 3D597C282EC for ; Tue, 18 Mar 2025 14:10:18 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id F21A481EF1; Tue, 18 Mar 2025 14:10:17 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id UHPH5Fkfjerd; Tue, 18 Mar 2025 14:10:17 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=intel-wired-lan-bounces@osuosl.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 4BC09820D8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osuosl.org; s=default; t=1742307017; bh=WO2E6cjNY1CTMGVsm5YZZ4qwmSM43bLrknvEgMpIsR8=; h=Date:From:To:Cc:References:In-Reply-To:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=MwYMRETElTQJyHzj/ZbAeuI8zfTdKkp39QH0yiS1aMj++Sexx7aWZW6EB5BEvWtZ6 oaWy/64GyOXeUyXgS7wfmsUZM4wuaqDSKjpqCxRCnCyOfEtNo9V2VoNnZLIGYVsE7p QfJBX/8998Pe8ioUJ22A8dHmcvigPS/Z1OXYepXD6uwoNTxigBm+xq5aFc4Hkq37C5 04mWmxXG/VixPI5vuyRnhVrkVSmTRdQYVESBEzh0FsgQIBD2VAaIqSiMs4Rz2DDKkn LLQwZA7TXltTZ2dDBknxcxD8GvTdNMYiykZwa8E2QBC7oV3xnjLYUoFoDdeHlZfc6G SaotjSQ0V+QmQ== Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp1.osuosl.org (Postfix) with ESMTP id 4BC09820D8; Tue, 18 Mar 2025 14:10:17 +0000 (UTC) Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by lists1.osuosl.org (Postfix) with ESMTP id F3FFD950 for ; Tue, 18 Mar 2025 14:10:15 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id E241F60669 for ; Tue, 18 Mar 2025 14:10:15 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id KmD5wWEG6Z2m for ; Tue, 18 Mar 2025 14:10:15 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2604:1380:4641:c500::1; helo=dfw.source.kernel.org; envelope-from=horms@kernel.org; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp3.osuosl.org 57F5360585 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 57F5360585 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by smtp3.osuosl.org (Postfix) with ESMTPS id 57F5360585 for ; Tue, 18 Mar 2025 14:10:15 +0000 (UTC) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id AA98D5C572E; Tue, 18 Mar 2025 14:07:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C6D42C4CEDD; Tue, 18 Mar 2025 14:10:09 +0000 (UTC) Date: Tue, 18 Mar 2025 14:10:07 +0000 From: Simon Horman To: Jacob Keller Cc: Tony Nguyen , Przemek Kitszel , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Richard Cochran , Ruud Bos , Paul Barker , Niklas =?utf-8?Q?S=C3=B6derlund?= , Bryan Whitehead , UNGLinuxDriver@microchip.com, Florian Fainelli , Broadcom internal kernel review list , Andrew Lunn , Heiner Kallweit , Russell King , Jonathan Lemon , Lasse Johnsen , Vadim Fedorenko , Michal Swiatkowski , intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, linux-renesas-soc@vger.kernel.org Message-ID: <20250318141007.GZ688833@kernel.org> References: <20250312-jk-net-fixes-supported-extts-flags-v2-0-ea930ba82459@intel.com> <20250312-jk-net-fixes-supported-extts-flags-v2-5-ea930ba82459@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250312-jk-net-fixes-supported-extts-flags-v2-5-ea930ba82459@intel.com> X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1742307014; bh=q5doRqVam6s64ULpfBirzLVtZzdBmnrPWU3KtXCaEFE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=VO5wTwW4FKWFMGm8TLIOOBFOUXU+nrVANM2qDIIedoNkR2NsWznIgxsmYloV3vnGG LSqXchU0sWFIQwjsr38lz9eLc7r+uRPKdl/iPwv5D0KzDKhR5fF+PhxqfxlJuOKZQ6 4yWeS4r/HCX3EHsCkAAGRZO0rPNVOsnIqPTFi+xRYEpVbDCA4+DiH7fgTTqDb5Fzf7 t6JkBU7Homnc+IILhZfi+PLblKw7B6quuHdfiKV8jXGrccazOTaFm7ryxD5jiIiKKN NG+go5DJtea+vmHdzrgxOxmlHEUBZ6uO085ZucYpTVTggQS1OTgyKfvmz3EuzJP4+S xILUsGc3WX40A== X-Mailman-Original-Authentication-Results: smtp3.osuosl.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Mailman-Original-Authentication-Results: smtp3.osuosl.org; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=VO5wTwW4 Subject: Re: [Intel-wired-lan] [PATCH net v2 5/5] ptp: ocp: reject unsupported periodic output flags X-BeenThere: intel-wired-lan@osuosl.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Intel Wired Ethernet Linux Kernel Driver Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-wired-lan-bounces@osuosl.org Sender: "Intel-wired-lan" On Wed, Mar 12, 2025 at 03:15:54PM -0700, Jacob Keller wrote: > The ptp_ocp_signal_from_perout() function supports PTP_PEROUT_DUTY_CYCLE > and PTP_PEROUT_PHASE. It does not support PTP_PEROUT_ONE_SHOT, but does not > reject a request with such an unsupported flag. > > Add the appropriate check to ensure that unsupported requests are rejected > both for PTP_PEROUT_ONE_SHOT as well as any future flags. > > Fixes: 1aa66a3a135a ("ptp: ocp: Program the signal generators via PTP_CLK_REQ_PEROUT") > Reviewed-by: Vadim Fedorenko > Signed-off-by: Jacob Keller Reviewed-by: Simon Horman From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8888A20E021; Tue, 18 Mar 2025 14:10:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742307014; cv=none; b=sLsYP2+aXJZqrv1UQJtGNge2I8Xu13OUFN8of9ylVpwzIZSARG1MSGCaEqqOtrIRVDw/dI8JeuCDsrFeVrrkMd569GHfOhJ9s3fvJ64X0wpdaIkqLHYEYIxf86KHnTqP46ADFugXHWNQ32DxfkPF37Loa1cWUnWA0zoSmGVYQgc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742307014; c=relaxed/simple; bh=q5doRqVam6s64ULpfBirzLVtZzdBmnrPWU3KtXCaEFE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=HCmcuwpmQYH3vj3auZ1uqr89UXPekHoiLGpxoCHA6hphqOZjUZJy0cgzbdpJnaZ4+Zf5l/dpRuvzW/WI/3bnBjiTo3eSz5SNGO0wmFjsSlo1iVcLjMTl1hje3OCGz7fEFuY2y09cB+xlxa0ffZRXtnV6l4DGLcqRYQdz5kRth84= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=VO5wTwW4; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="VO5wTwW4" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C6D42C4CEDD; Tue, 18 Mar 2025 14:10:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1742307014; bh=q5doRqVam6s64ULpfBirzLVtZzdBmnrPWU3KtXCaEFE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=VO5wTwW4FKWFMGm8TLIOOBFOUXU+nrVANM2qDIIedoNkR2NsWznIgxsmYloV3vnGG LSqXchU0sWFIQwjsr38lz9eLc7r+uRPKdl/iPwv5D0KzDKhR5fF+PhxqfxlJuOKZQ6 4yWeS4r/HCX3EHsCkAAGRZO0rPNVOsnIqPTFi+xRYEpVbDCA4+DiH7fgTTqDb5Fzf7 t6JkBU7Homnc+IILhZfi+PLblKw7B6quuHdfiKV8jXGrccazOTaFm7ryxD5jiIiKKN NG+go5DJtea+vmHdzrgxOxmlHEUBZ6uO085ZucYpTVTggQS1OTgyKfvmz3EuzJP4+S xILUsGc3WX40A== Date: Tue, 18 Mar 2025 14:10:07 +0000 From: Simon Horman To: Jacob Keller Cc: Tony Nguyen , Przemek Kitszel , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Richard Cochran , Ruud Bos , Paul Barker , Niklas =?utf-8?Q?S=C3=B6derlund?= , Bryan Whitehead , UNGLinuxDriver@microchip.com, Florian Fainelli , Broadcom internal kernel review list , Andrew Lunn , Heiner Kallweit , Russell King , Jonathan Lemon , Lasse Johnsen , Vadim Fedorenko , Michal Swiatkowski , intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, linux-renesas-soc@vger.kernel.org Subject: Re: [PATCH net v2 5/5] ptp: ocp: reject unsupported periodic output flags Message-ID: <20250318141007.GZ688833@kernel.org> References: <20250312-jk-net-fixes-supported-extts-flags-v2-0-ea930ba82459@intel.com> <20250312-jk-net-fixes-supported-extts-flags-v2-5-ea930ba82459@intel.com> Precedence: bulk X-Mailing-List: linux-renesas-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250312-jk-net-fixes-supported-extts-flags-v2-5-ea930ba82459@intel.com> On Wed, Mar 12, 2025 at 03:15:54PM -0700, Jacob Keller wrote: > The ptp_ocp_signal_from_perout() function supports PTP_PEROUT_DUTY_CYCLE > and PTP_PEROUT_PHASE. It does not support PTP_PEROUT_ONE_SHOT, but does not > reject a request with such an unsupported flag. > > Add the appropriate check to ensure that unsupported requests are rejected > both for PTP_PEROUT_ONE_SHOT as well as any future flags. > > Fixes: 1aa66a3a135a ("ptp: ocp: Program the signal generators via PTP_CLK_REQ_PEROUT") > Reviewed-by: Vadim Fedorenko > Signed-off-by: Jacob Keller Reviewed-by: Simon Horman