Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp540417pxb; Wed, 15 Sep 2021 07:48:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJze2XlyqaGzOS/XyWmnBlld93CEXZ/L6/LTCEfdTjTDYDcOlCLQGT1xjrzIQxhD6gimIYhv X-Received: by 2002:a17:906:498b:: with SMTP id p11mr366200eju.295.1631717314525; Wed, 15 Sep 2021 07:48:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631717314; cv=none; d=google.com; s=arc-20160816; b=ypVoZsg7KrTWXKoRoSGx5CSt83zicnYsOmD91U4Zn7n5REXbSOAbJN/HEZEyrrxI2K O66nVlGGOAQxkscNFMhkNtbV68cFiO4DqHpJFIowjHhvT4hSgeXYrGSVM06enghKF4SY ZCQqGENbveR13ikN4kHn1MzhP47eQd3iERxkKNVSHx8f6yxynO78v3qN8otP8QnynCfZ Pozarn9BKFgHfalmr2TZkLKLRWw9TqYs76BddxOZCsqjP0lNoVwDt8CCmxqUg0yCxDmQ Jyqj4KSb6kHmGLlKVOyTkA2p2RRBQs58EshsGn4Bt4sVGU2RrzyU47wSwS2jHAHfhqT1 cj4w== 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=A77KhY5Nath37uNFbpQyBcLLpBUa+XQaYc42Z2mGarI=; b=QujMyzrLpNHs5RxTLDpPGfZAgoTNfSfqJrXyooIqLJ/LIty3KOiJunNPKp2+EQE9+A t3N7TIPh4i8t6CXpHy9qyzx+SzqW9IUhQXz09h6XHtfEdsxN+KKMeNBYJpG/bCO8IEBe SSHWyBef0jaCNRsSMHUBwVUZdHyb+KMrclq+ilQY8jI/eLd3bwKq14EXBvmUiiS20uab fQ/tsW+H3vQMSlV7mpP6VNRS8RM+Uh/KUz4J2uvFavC8+hYXE8JyUQUd9haAQzWgnuR7 9FvP7tdVVhua5XZ4dxHbq70c4khijzIl/kEp/TNrodVe329azuOPBDgZgP/khgQrPaLe Q51g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=sEqioIZu; 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=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cr15si119588ejc.470.2021.09.15.07.48.08; Wed, 15 Sep 2021 07:48:34 -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=@linuxfoundation.org header.s=korg header.b=sEqioIZu; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237109AbhIOOr1 (ORCPT + 99 others); Wed, 15 Sep 2021 10:47:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:45358 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230499AbhIOOr1 (ORCPT ); Wed, 15 Sep 2021 10:47:27 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D22EC60E90; Wed, 15 Sep 2021 14:46:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631717168; bh=1r+zXP5h+3hNBMoJbh26kMNfLM1fbaF7tV2heVrir+M=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=sEqioIZuvY92a5wYiMJqFTgUn3qZlSCQt9oQLjdp/BtxZj9djTpXHSRX2fs/dDpDc k5wUYg153aED2O/rZbN9R6fKFvpidfx94VNtUsH+F6Pv01JnPvoYPAjsvwKqb5X5L+ YzDVKU5W9rZ0bPdLZjk3Xtz65bSfJOFJoeabYs3Y= Date: Wed, 15 Sep 2021 16:46:06 +0200 From: Greg KH To: Min Li Cc: "derek.kiernan@xilinx.com" , "dragan.cvetic@xilinx.com" , "arnd@arndb.de" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH misc] misc: Add Renesas Synchronization Management Unit (SMU) support Message-ID: References: <1630608353-7606-1-git-send-email-min.li.xe@renesas.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 15, 2021 at 02:42:55PM +0000, Min Li wrote: > > > > > +/* > > > > > + * RSMU IOCTL List > > > > > + */ > > > > > +#define RSMU_MAGIC '?' > > > > > > > > Where did you get this value from? > > > > > > > > Where did you reserve it? > > > > > > No I didn't reserve it. I checked other code and they all seem to use > > > a random character > > > > That's not the best way to do this. > > > > Why do you need ioctls at all anyway? What userspace tools will be > > accessing this driver? Do you have a link to where they are located at? > > Hi Greg > > The userspace tool is called PCM4L (PTP Clock Manager for Linux) from Renesas > > https://www.renesas.com/us/en/software-tool/ptp-clock-manager-linux > > But the functions of this misc driver is not ptp related. It is meant for being called by pcm4l to > support GNSS assisted partial timing support (APTS), which doesn't have abstracted/dedicated > Linux Kernel API's. That is why I went for IOCTL in the first place. Why not work on a real set of apis for this type of thing so that all devices of this type will work properly? thanks, greg k-h