Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1766405ybb; Thu, 26 Mar 2020 07:01:12 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvmaDyj8rntrp/xqOoKIOMozdwqsVt3Lrrqbz4BUaRPoNTsGmqyPZlgLuB6QIx7ok2SxqoK X-Received: by 2002:aca:a882:: with SMTP id r124mr94317oie.53.1585231272613; Thu, 26 Mar 2020 07:01:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585231272; cv=none; d=google.com; s=arc-20160816; b=OlTYozhGeItcp5+rVhtqGRcynCK79aVz2MpuMMtEXNfsYjC5rzoA/rWKxQGwZ0l5zI ywGXCHiRrEMCs2LeehLiPihfdBbDKSFv3sCSUSM+vWh6Vi+tKrq9bzCv/gnO1EsMw+pR 02ibM8MgKmZDE7cSq1qO59GG+62G02zfwEZvRbfe12vPKCQGmuMEMmCQy2MoLv4ENTfI QrxfHiKzqfZM9a/Pbsql3GPwxUGMQM2QIHIxy4PDh546W+MzORHWzBgvEevz9oooh5An idyzNWTpzIUZrzF51/jUikdo6Q1N/C/ooPWZ2nyBu8hRIr6VrEsUntJR56G6ZTt0sQWB q/Uw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=79P2l9w6W7WmPQUzQ+lJdPeSs/MsFdNWFgy77EXy/Go=; b=EiVDqgvRt8O+vPtXb3bFijI+SUDqHeFfe6bN6lBhuLS7l0oMWrWDfYA7AO/JLzGUeY +lnfENXgi366yDpOutVRpFf/eBgStOAOaIteoi24pdaFpXp/bwmUfj63Mb2aqiaxLiWq 79fFoJAQRl1YSEAnmCPnz2/uZGWbScBLr7cRgtA+eOv7gOIR7RHTfLeb34fwGHRIopTx Fcuch/CEg7VX1t+HuSSwFQqcVDxHRsPP73bExrn5A6pXLUnVz0UHzwqPJWGCkIEoPr25 Z4FBA3KPMX+53g6HTrvT9X/I4rUsrBBUPOoJrBwAxm/4L9E9NeWqmjZo54HKo7s69ROg AZRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=b4z01HGo; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h6si968057oom.43.2020.03.26.07.00.54; Thu, 26 Mar 2020 07:01:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=b4z01HGo; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727821AbgCZN7q (ORCPT + 99 others); Thu, 26 Mar 2020 09:59:46 -0400 Received: from mail-pj1-f66.google.com ([209.85.216.66]:34249 "EHLO mail-pj1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727652AbgCZN7q (ORCPT ); Thu, 26 Mar 2020 09:59:46 -0400 Received: by mail-pj1-f66.google.com with SMTP id q16so3377425pje.1; Thu, 26 Mar 2020 06:59:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=79P2l9w6W7WmPQUzQ+lJdPeSs/MsFdNWFgy77EXy/Go=; b=b4z01HGoSxY5I0/OAnoCK6nGMFAC1VJ4jxpk/xkeTi9zg7bhvnhhyw2bpS5KNad8k5 jQnuLCuT1XNyCftzpCICXIcXnLmXKtxoQpnET++j7lTEzxTyfYs1tRj39lGjDXBq4AX+ ywpMk5sxyBfx6DMCZQ/Xh0sPoi5rXhdEvifSk8t73g3vtI98JDi3YuV8Huwp2fjfExBa bzUovrtfu+EScEwu7UROnDiHu1CD2L8OLseGYJmJZwmhd8cUYmhdoDDTkAQZVQi41m2l jf90ann2F6O5y86kvfilisX7ozjs5RDMEySEOsIG1ysahwREQXizj2Yxylef1jWgzJK8 tyrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=79P2l9w6W7WmPQUzQ+lJdPeSs/MsFdNWFgy77EXy/Go=; b=m8IpQ9j3XQ+cs3Mal6Pjuy33gxXu5GCplSVDPO/NhBnZqf0USWLMhOy5sTCLii/idT PncLJ5vpmm4KhsMAvSclvhd5SAYhn+FCCdX4NBPjVx1wH8uZR74uCxM9vq91f/nzWLsL 4I9RHc22l+2FCTAU9/3A0vWBt/T2ZVzRpf3rGqfMWY84FFNAJM+ZM6ahRHB0nmGJzY/y qW/Fc7hPHoZ4z3fYx8oqmCDGoKLN6Hz9aBHLpXicF7MB7y0VfitI1F3VwgELCXZqnR+K r5gUxNxerteg4OldXU7LJ6Xvm68TNmEblIxb/2i4nSKgWK0CdkBMIwH6pK3MwBHliG04 El5g== X-Gm-Message-State: ANhLgQ31Egtv+pyANpWGHu3qSod0SoDd1P2v0oRaaYUSOY8qMliRJEeo 5p7khKFXXh2CX2nx0vlgu7lf3AZ2 X-Received: by 2002:a17:90a:2dc2:: with SMTP id q2mr146980pjm.146.1585231183920; Thu, 26 Mar 2020 06:59:43 -0700 (PDT) Received: from localhost (c-73-241-114-122.hsd1.ca.comcast.net. [73.241.114.122]) by smtp.gmail.com with ESMTPSA id t4sm1772471pfb.156.2020.03.26.06.59.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Mar 2020 06:59:43 -0700 (PDT) Date: Thu, 26 Mar 2020 06:59:41 -0700 From: Richard Cochran To: "Y.b. Lu" Cc: "linux-kernel@vger.kernel.org" , "netdev@vger.kernel.org" , "David S . Miller" , Vladimir Oltean , Claudiu Manoil , Andrew Lunn , Vivien Didelot , Florian Fainelli , Alexandre Belloni , Microchip Linux Driver Support Subject: Re: [PATCH 6/6] ptp_ocelot: support 4 programmable pins Message-ID: <20200326135941.GA20841@localhost> References: <20200320103726.32559-1-yangbo.lu@nxp.com> <20200320103726.32559-7-yangbo.lu@nxp.com> <20200324130733.GA18149@localhost> <20200325134147.GB32284@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 26, 2020 at 09:34:52AM +0000, Y.b. Lu wrote: > > Of course, that is horrible, and I am going to find a way to fix it. > > Thanks a lot. > Do you think it is ok to move protection into ptp_set_pinfunc() to protect just pin_config accessing? > ptp_disable_pinfunc() not touching pin_config could be out of protection. > But it seems indeed total ptp_set_pinfunc() should be under protection... Yes, and I have way to fix that. I will post a patch soon... > I could modify commit messages to indicate the pin supports both PTP_PF_PEROUT and PTP_PF_EXTTS, and PTP_PF_EXTTS support will be added in the future. Thanks for explaining. Since you do have programmable pin, please wait for my patch to fix the deadlock. Thanks, Richard