Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp9330744imu; Sat, 29 Dec 2018 16:42:38 -0800 (PST) X-Google-Smtp-Source: ALg8bN5X4tJykJF3u962DQLpjvU0WEhzGNZGsZezpmsT+SJ5IkZz6/Qlg0+CumDCvZU9JePHXQQz X-Received: by 2002:a63:8c2:: with SMTP id 185mr3190951pgi.26.1546130558306; Sat, 29 Dec 2018 16:42:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546130558; cv=none; d=google.com; s=arc-20160816; b=o/31PWZEJSyX3TwFEU08sE2XsgBOBqqM0dZl4lxW01qIt6a+uv5bZ94YDlUXny3Kyn GsLxy1rcKvhkN8yn0RMTFwmjTTUgdA28tOxcSErKD0t5sMVcmVPvvLlUDJMcpTtB6XJr 6Z4ThWl9syFnRwxyoRA+ZXu+EOtBuNhta3V7pd0AWQ6n5hsrZsJfPn34bcSu3TeVJw81 vyE7hpWQJOB6TRWXfWEveXH+G6GFUd9aLN11PDDAO+Un7JYVv/R9iPl5cJ+xvAU0ZU3z 7i7tN4TG/gWwv74lol1y68ZQTKUM36z/Km2698DySeFFhjGe6xqiOfPLexrGhunslFxT wCUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=cipite4SASv4S47KCGjGODYzIep4IrLd8iZmBANvLtM=; b=i6m0flHG2J7+3UYs7sSbEtZCW/KclajLyWvp5ACIEetpzzePN+vnFdwVHq0TNhuBI7 /wOMmmNr0AzaziQbMLMAABW4UdhBX95mgKSVQ4ra1kz6ddJfNRQi4asMhbZI7cEzXQMZ MZQ1fsMcvkt1eR5EoBWEe4mCd7Nt5Zn0cuk2tPJOBjgTpU8dQCytZQgtlBW+OnWseNOT +QlAGZKebURTXE0R/thTB98yT/JQfkO7eRp3DLRG45/L2xBY9OTdfMs9nKNA/jdc5AIo ymAn/YuhzEJVc0ZNgWV2TmpwVBmW60StLzj1xsUFuoF+gRVMtxLzZQJA/x1EtQzSuck/ 5qhg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 69si41492514pla.75.2018.12.29.16.42.23; Sat, 29 Dec 2018 16:42:38 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726127AbeL2Wpy (ORCPT + 99 others); Sat, 29 Dec 2018 17:45:54 -0500 Received: from mail-qk1-f194.google.com ([209.85.222.194]:36569 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725888AbeL2Wpx (ORCPT ); Sat, 29 Dec 2018 17:45:53 -0500 Received: by mail-qk1-f194.google.com with SMTP id o125so14255887qkf.3 for ; Sat, 29 Dec 2018 14:45:52 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=cipite4SASv4S47KCGjGODYzIep4IrLd8iZmBANvLtM=; b=Y7rUWrW64W9sH4M9hSfuGS2oKipXDsVjL/1A/o0eG7z5x7UfdY3xtJ8HMyOhOvWFG9 v9iEBn4ShEBnJ6pJ9YsuzDM9IMvvll4z1zWfMGCFUwW3/GFcD+JMo8imRGHNxrCSQmy4 HprEwV3GbsGba088pDFRilhb3G59Po6vpGw3o8sdWcvY7VPmKdObQURvZh2i7s4zPaUy aiR5ykLcmRwk/p6rMoEbT4EhhqHMLURx/3d8+41+5fJX5J0rRwSouHKTYL+5eijB2lx9 UJtg+dUSnnAiQJA4IN4t3Ownuy0QAH5UyZdIfu0/3h09AA9bfne6/MaTUsSEw6ZU8cYR 1OPw== X-Gm-Message-State: AJcUukf9sndDHZNPEf7c2EJIAYsv8VZfC5VM9kO2V6D3YZHv1sXIn1pj /aI6zjKp/f36pFZemRQtzy66BGGfOLGTSq9LT2I= X-Received: by 2002:a37:9a89:: with SMTP id c131mr29881024qke.173.1546123552154; Sat, 29 Dec 2018 14:45:52 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Arnd Bergmann Date: Sat, 29 Dec 2018 23:45:36 +0100 Message-ID: Subject: Re: [PATCH v8 00/25] Re-use nvram module To: Finn Thain Cc: Greg Kroah-Hartman , Linux Kernel Mailing List , linux-m68k , linuxppc-dev Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 26, 2018 at 1:43 AM Finn Thain wrote: > This allows for removal of drivers/char/generic_nvram.c as well as some > duplicated code in arch/powerpc/kernel/nvram_64.c. By reducing the number > of /dev/nvram char misc device implementations, the number of bugs and > inconsistencies is also reduced. > > This patch series reduces inconsistencies between PPC32 and PPC64, and > between PPC_PMAC and MAC. A uniform API has benefits for userspace. > For example, some error codes for some ioctl calls become consistent > across PowerPC platforms. The uniform API can potentially benefit > bootloaders that work across different platforms which all have XPRAM > (e.g. Emile). > > I think there are two reasonable merge strategies for this patch series. > The char misc maintainer could take the entire series. Alternatively the > m68k maintainer could take patches 1 thru 14, and after those patches > reach mainline the powerpc maintainer could take 15 thru 25 (even though > patch 21 is not powerpc-related). I had a look at the complete series now, and I think this is a great cleanup. I replied with a couple of minor comments that you may or may not want to address first. The one thing I would like to see resolved (I hope this doesn't bring back an old discussion you had already concluded) is regarding the use of a global exported structure of function pointers, as opposed to using either directly exported functions (with a consistent interface) or a boot-time selectable structure like dma_map_ops or ppc_md. Arnd