Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp2376974rwo; Thu, 3 Aug 2023 08:32:03 -0700 (PDT) X-Google-Smtp-Source: APBJJlHV4PWctfGnT3pAZCBQmQksjiGhmSAUFDFNwslvskyYpyA8CDoLqHkbVFTJaCk7Dx48hY5S X-Received: by 2002:a2e:2414:0:b0:2b9:ba75:6620 with SMTP id k20-20020a2e2414000000b002b9ba756620mr7572469ljk.6.1691076722856; Thu, 03 Aug 2023 08:32:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691076722; cv=none; d=google.com; s=arc-20160816; b=EYZo2JLlS5XapYSPqJIuV49vafAPFT+ZcL+Zujl8/kS3J1uGBTtbIATG0Za+04crQk dmDvSF3Nny/7jk8i7vwoBKm+8NPkGWAEvZMBzNFvNUKlhPT5vdxXb48vdvkUjrEmniLt QEs2Z+vcx6Zz9O4ExwGwujhar2iqjwzrnMezW9BO2Oal/+w890uHtaJbVHdONmPIDOYc FnYabLbecXHD38iQkzG61ANigYiXT7P+suVurD66W2vYC7Ej9kg4qloz5Ieb1Ct0kXsM B7ShfEHfMuw/Fz661pXJJtnImzx/6lI4eTBWTJO4HUMmGNHWmycJ6m8M1Y5Y528PM4dj tOiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=hh7bls/TQ4BkXtpp/VqPUBoyaNE4xwfcT3GNk4UWr/U=; fh=XhdKjCebMfy5Z5UV7jz+4mTueglN9gRgbFIsfdKgtfA=; b=lKvPzAfeq2Joasd6ixVExsMSKE15f2Yhuzhi5PcsH0CC6ww8MKAIEXqCyWdo7cpDYp Oxrm2i19SdsR9SVfBaTJspYcc1Ex8wHIYkgke0MBSIrwFhsyyzzswimlgsyN3Qqsp/an kWTtf84VnTutj6Mj/3qlWof7VmOsz1vKrkPdpVOL3Xxj/+Vm0JwH6BaJPIdJn4VdgjGl 9qjz9XawqScg2uMoKwAUwLBxZdkSCEzg16nnEa2/SzoT9cWQ+7TubvKePYrPKr9wDfmO da0c1rzyC4u1opd5rwPczDG3WAzrITi8T8Eawl5Sip47Wj3t9uiaTEy6VvZNSheK8Hcp 4Trw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Fd+kbFpu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y20-20020a17090629d400b00992e23f0e6asi10583790eje.822.2023.08.03.08.31.28; Thu, 03 Aug 2023 08:32:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Fd+kbFpu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236960AbjHCPRJ (ORCPT + 99 others); Thu, 3 Aug 2023 11:17:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235211AbjHCPRI (ORCPT ); Thu, 3 Aug 2023 11:17:08 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6003CE75; Thu, 3 Aug 2023 08:17:06 -0700 (PDT) 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 E847A61DF3; Thu, 3 Aug 2023 15:17:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A334BC433C8; Thu, 3 Aug 2023 15:17:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691075825; bh=LNlFY8r0rZ0GR1yOKg9X0+pzM4ebRtAw7S93DLMNDwc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Fd+kbFpuW4Nw3RZmyDiTaptdo5jcre+w5/5LkJpXMrj8+2+9EWTgtsXCVTeesQfBA lbvEaWr4jwNb54qE4I642udRoZf33ic0WxMHqbtENr969acnlOKblUSAIWWbqMKQ5R RQusVCsXUtC5dia1TgEwo9GxFh89HWvDOA79sllcQLWwKBg75iAQlAE2x+72L5cNUc 28x+lxRj048TqTtOWvCUIKY/Md57whq1B54XxhQTTa8b4xQKt1uIAh/5Gbz2WfVS1m rzXuL2nWOch03zQejFWi2kdHZkgtXyC2UYPenzsBqr0zo6yINasUyNQx0t3XiO2XmS 0eG+tDCpR2uYQ== Date: Thu, 3 Aug 2023 17:16:59 +0200 From: Simon Horman To: MD Danish Anwar Cc: Randy Dunlap , Roger Quadros , Vignesh Raghavendra , Andrew Lunn , Richard Cochran , Conor Dooley , Krzysztof Kozlowski , Rob Herring , Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S. Miller" , nm@ti.com, srk@ti.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, netdev@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 2/4] net: ti: icss-iep: Add IEP driver Message-ID: References: <20230803110153.3309577-1-danishanwar@ti.com> <20230803110153.3309577-3-danishanwar@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230803110153.3309577-3-danishanwar@ti.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 03, 2023 at 04:31:51PM +0530, MD Danish Anwar wrote: > From: Roger Quadros > > Add a driver for Industrial Ethernet Peripheral (IEP) block of PRUSS to > support timestamping of ethernet packets and thus support PTP and PPS > for PRU ethernet ports. > > Signed-off-by: Roger Quadros > Signed-off-by: Lokesh Vutla > Signed-off-by: Murali Karicheri > Signed-off-by: Vignesh Raghavendra > Signed-off-by: MD Danish Anwar ... > +static int icss_iep_pps_enable(struct icss_iep *iep, int on) > +{ > + int ret = 0; > + struct timespec64 ts; > + struct ptp_clock_request rq; > + unsigned long flags; > + u64 ns; For networking code, please arrange local variables in reverse xmas tree order - longest line to shortest. https://github.com/ecree-solarflare/xmastree is your friend here. ...