Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1603952pxb; Thu, 16 Sep 2021 10:52:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwWtISq9ulNKMXkHyKuHC7jTZ4inVP31Po1+Qk8kgiJmr0MMhMP5vBLxJ6eFS5bN8D6U/N5 X-Received: by 2002:a6b:3b8c:: with SMTP id i134mr5202707ioa.29.1631814776291; Thu, 16 Sep 2021 10:52:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631814776; cv=none; d=google.com; s=arc-20160816; b=QzcKuJ9ZYw80ZY2804P8KZZz2dhLmPsYeiCVwiprm4/+1FpJfTU7wnprv4uGBATYcZ zpuDRIurdxu5JeoKldB06koB0trp6duTcqXSnTAWJpku7IghZ/HhbSJFc6YoWuokZ3sS 9yhIYK77RpshbB5h5agQoXfLmfDruJJtySVKHtQL4o+pNXa7E0B0lK4Q2cU0Ua0aMwxb fWwEKTuEW6tSS/amQUY9XTdDnxsdetE39J/JOecuBMRxJd8KBtdPv6R6zoDKaCBXb5/R hwcLD47pMXzT5JOIfuWIC4ek23ITDx5t4OnQ63pTOkaZ0Nd05n7yqeZJ8rtjCmFxqShk eeHg== 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=eKoN3yqb4skit/h9Hsgvsn93zaHsuqIOCfaMlgJIdCw=; b=EDIggjir/etF2XM0Js0+ZfH04bbkcX/D8tJNvm691eYo2R5ZXl4/TQPhvbx2PD5SDG cHOsNcd7DtXOP+aKvb6J/yhKQkE79CoYYomQgu4Deb9lxpYdem3SuIYIY2zBmPp0o+Lk FJ0PmWqJ3fDTx8YycPryfHxdUNRUWW06pnxnAN5EMi5ogSwbLfkRDS9I/fficCGOjVmb SCRjhm+7Drg+pw28oHzmAw3Y+7c5pkWiJ9/+eFKyx3LM4tIstAEBgnnhUPc735I83ri0 ga4bQnjT2FP1MJpo1I+PDhl1Z+Xj79TIkvGt3rN2Y/TrUsI5FqVXktY4sRTuYcub4HZT IW3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=QyOh7q7x; 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 d16si3547921ile.11.2021.09.16.10.52.44; Thu, 16 Sep 2021 10:52:56 -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=QyOh7q7x; 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 S1357010AbhIPRvU (ORCPT + 99 others); Thu, 16 Sep 2021 13:51:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:57064 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355808AbhIPRmJ (ORCPT ); Thu, 16 Sep 2021 13:42:09 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 893AF6327B; Thu, 16 Sep 2021 16:54:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631811261; bh=ymQzYeMkLSk6v7VLwAJT4gG7bsnwMv9w8QyoD1DrwQI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=QyOh7q7xkv+WP1e95rr6xb6oYW92hu5MI8ZsvQkDdmGHv6C9EkbpoiPQGOVZbzWiD XmmRtdIoz0tQAcACw5mp66RhQBm1jigAlpaMZNih9teUVJUlNWJwAtrYaHI7dyAfL6 OsUkrawTFYPGMPo+ZJ9zn8y6J+uO2fxA0DbjKfUQ= Date: Thu, 16 Sep 2021 18:05:16 +0200 From: Greg KH To: Min Li Cc: "arnd@arndb.de" , "derek.kiernan@xilinx.com" , "dragan.cvetic@xilinx.com" , "linux-kernel@vger.kernel.org" , "lee.jones@linaro.or" Subject: Re: [PATCH misc v2 2/2] misc: Add Renesas Synchronization Management Unit (SMU) support Message-ID: References: <1631731629-20862-1-git-send-email-min.li.xe@renesas.com> <1631731629-20862-2-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 Thu, Sep 16, 2021 at 03:54:52PM +0000, Min Li wrote: > > > > Please put that link in the changelog comment and in the .c code as well so > > that people know where to find it. > > > > > > > > > > Why is this new api not a standard one? > > > > > > > > > > There is no actual standard for the GNSS assisted partial timing > > > support (APTS) In terms of Linux kernel API > > > > Then make one! :) > > Yes it is on our roadmap to do that for next release Please do it for this kernel api, otherwise you have to support this for the next 20+ years as-is :( > > Why not just do this all from userspace then? You can have spi/i2c > > userspace code, right? Why does this have to be a kernel driver? > > > We used to do everything in userspace. But since PHC (ptp hardware clock) came along, we decided > to move the driver part to kernel. Please take a look at drivers/ptp/ptp_clockmatrix.c for reference. > Recently, we have some functions like APTS that doesn't belong to PTP or anything else so we have to split those functions > to RSMU misc driver and i2c/spi bus accesses to RSMU MFD driver. I still do not understand why this has to be a kernel driver, sorry. What exactly forces it to be that way? thanks, greg k-h