Received: by 2002:a25:2c96:0:0:0:0:0 with SMTP id s144csp872410ybs; Mon, 25 May 2020 01:01:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJySROaoRUoIMFzfyET7SqyMYM4hrtrGJycVzq8UcD0lnwHTQGGmRv5AR4j8FuxzNRIhhswJ X-Received: by 2002:a50:c906:: with SMTP id o6mr10716988edh.95.1590393718687; Mon, 25 May 2020 01:01:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590393718; cv=none; d=google.com; s=arc-20160816; b=px46FZOvi+cUpSJKNsdVjXkW+As4MSoPOGdmzNfHfw0UscKwhsTaAjvLTOYHmFFi3B PXRKU+6RJ2G+2u38CdvKizYmeLeel8YSIvM2fRbCTI/B199pOW/AaQhPaqsOgSDmJsfI 57CAA0BIdKrkhPf0SJnbt7sXOwREwhnYWiWzbjOeKQyeS75mftGDkpF/Q6c7SI8L+oA6 M9gvsHkP63a65VaM6pKABpGpJG0QljOYFJf33b4gthQKoiHARM6NZn+kWQZl56mTaY+v O7G4k4TTvBabJ9Stu+o/hrTDTi5BPBJHeKhy11pU0njONcAzvs28Emm5DR2sv/tZ2IMh DHRg== 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=b96SL8+sRaQd4BNuO23oq4bmCu1x+cpwG9cm6rdCDA0=; b=eYLLlM4kcZI0hJ8Srqce2jonpTWFgeIZhT6yv8nIBOMHS9zcEiwtMFEsdbhtTHcUvU 2UZfBSeH91VecriQGKsCuXG5HUbYb5gHhAFSZFLyQvKRzTpX2qcOia0CxkdNIm1XUWzs a9o4aLcE0xfTpQ7rmDL1uxQj/oGDS7W0c/2DNNTIITNtZhvOkYL54rXhPzqW5UiHHqvY GWxOkbspyjeb5bpLNGeMP6zHw69te0J0cEfdxdKjOmKQUrVdzOudi3TyAkfFlXvvysWv gZlquE1L4+JViurAmb8vNaxb+QUKLssSWavkKZ9xI9cJQQONqT/dMUxnbIq5hpnS4wk3 APpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=viFVpiWH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id u26si12015695edi.579.2020.05.25.01.01.35; Mon, 25 May 2020 01:01:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=viFVpiWH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1730511AbgEYGQ2 (ORCPT + 99 others); Mon, 25 May 2020 02:16:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730280AbgEYGQ1 (ORCPT ); Mon, 25 May 2020 02:16:27 -0400 Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0623DC061A0E; Sun, 24 May 2020 23:16:27 -0700 (PDT) Received: by mail-pg1-x543.google.com with SMTP id t11so8286006pgg.2; Sun, 24 May 2020 23:16:27 -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=b96SL8+sRaQd4BNuO23oq4bmCu1x+cpwG9cm6rdCDA0=; b=viFVpiWHuDc+z9efiUkJdmh0VIDdJhkAiST+Q8beFUNnLgWtubZLHcJRe/qLLGg8Ip oTS8O5XPHQs5ZVa21IJrk9t5LGs94tYmAROm9iFn1gJg9EDp/ugeFILzwEj705KEvBGw b6JOOJ8Nw5uv/ziocgKDzhB84SwhMNSQMNaUAF+Ud1gvxPqt/eCPKpnOQcblDZXukU0k +YBUM4j7kZBcaRI3PmXwDJ1y1cgi3Lpe6Krsm8Hb3yurUa3b1ux8WWYM8OKxnhdxfQ25 h3j2njsqK4+wVLtpj54w7bo2yq5Pakh/CDS4wsnvE8rqEgH2ggXaQJ6GUB5Z+zZZcTX0 lA8w== 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=b96SL8+sRaQd4BNuO23oq4bmCu1x+cpwG9cm6rdCDA0=; b=WJJ8B7LrkOCkPqg9R4Jo3SeWEr1/GhkSEUvQ9UlzyPRjJVms27sYjQMFM7b0uVKfvB BQNZ4qItBNDG2LIo90rXnqQXOQhb4gIbAAj/s21nok3xWv2Luq2PFAx/lyLeJoYOnzDh OVa87gEVlzwCi66iSK39KKlUpvpYTnIiRysGYDYfEfdaLRGis7r/9cCeXpGZV0nEJtAJ 50qzs1tUuh3QcNsf6E/ZK1zt6u6LayVMvThTq5BzhFu7U1bHgTmN82O5dF/Y+lgzyygT K1sdXSoTs1sHtXY7HWH0CZ5yQwnfC7ppLjRyq3LooNJ6BYtaRPTtMldnwDwKiFLT7s7R nL6A== X-Gm-Message-State: AOAM533p+B+L7CzhGEZXE9wl0WkWoLz7tWKgwpa+Kx9CahjImJ4O9u08 k6TV6pcq7XRpT3l6UBRei8E= X-Received: by 2002:aa7:84c6:: with SMTP id x6mr15776442pfn.46.1590387386501; Sun, 24 May 2020 23:16:26 -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 v1sm12380566pjn.9.2020.05.24.23.16.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 May 2020 23:16:25 -0700 (PDT) Date: Sun, 24 May 2020 23:16:22 -0700 From: Richard Cochran To: Jianyong Wu Cc: "maz@kernel.org" , "netdev@vger.kernel.org" , "yangbo.lu@nxp.com" , "john.stultz@linaro.org" , "tglx@linutronix.de" , "pbonzini@redhat.com" , "sean.j.christopherson@intel.com" , Mark Rutland , "will@kernel.org" , Suzuki Poulose , Steven Price , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "kvmarm@lists.cs.columbia.edu" , "kvm@vger.kernel.org" , Steve Capper , Kaly Xin , Justin He , Wei Chen , nd Subject: Re: [RFC PATCH v12 10/11] arm64: add mechanism to let user choose which counter to return Message-ID: <20200525061622.GA13679@localhost> References: <20200522083724.38182-1-jianyong.wu@arm.com> <20200522083724.38182-11-jianyong.wu@arm.com> <20200524021106.GC335@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 Mon, May 25, 2020 at 04:50:28AM +0000, Jianyong Wu wrote: > How about adding an extra argument in struct ptp_clock_info to serve as a flag, then we can control this flag using IOCTL to determine the counter type. no, No, NO! > > From your description, this "flag" really should be a module parameter. > Maybe use flag as a module parameter is a better way. Yes. Thanks, Richard