Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp11254427imu; Mon, 31 Dec 2018 17:22:55 -0800 (PST) X-Google-Smtp-Source: ALg8bN6fhK3vhLF/qgpcXz3a7byJ5o6wrrL27NSRdrGIyvxiD5hFBTMO1eOTMX401PzL1xeZhtxE X-Received: by 2002:a17:902:850c:: with SMTP id bj12mr38141751plb.46.1546305775919; Mon, 31 Dec 2018 17:22:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546305775; cv=none; d=google.com; s=arc-20160816; b=yrdhv5NW/v7Vxka4Xn8XmlvHO3rZspmsLY3wi+CU1HcwiPICpJ8G6V/PM2sZn2mGz2 noBCuUs2iXPtAQZ9JlBNpd/xmqOBBuEc1cDSDiGx1y1s9RsfUUXstxh1+6X9qkNm9zb/ pStS7Wpei7fFN1FdqyV1i3dO8Hj+ARSTUcM64UGIi0NVmBY60oCDP1I4N6t2GKDuY6kG GgpMK5XAy6dN+Qcs1MaPmZgl57Xk+Nb1NsaMz0X+t3tUMw+Ya9Qzparcd7IkKXz6Iwlh x5BjKCCCivaIebBgfGysyjHaWLx7I+EAZ7F+Qu9+rV84he59ReOYcMKegjkK7Iy/+xVQ F61g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:message-id :in-reply-to:subject:cc:to:from:date; bh=rPkWsYfFkGW1cKP4unM4oMCB+ibp9W8IXvNKnYhSfNk=; b=F1ZBeVf/31oBDqgv0MrxoTSnp5ENZUydH1wGOkHpO4p7CA1sdQuD/0ih1sIhnaHaY8 g7RYe1ZeS6QHEFjqSCfnbX0CgW5MwmJ0SME21G6eAltvAjjGmYR6HCRs3Vb5dZuLzWsD 16axubkUDfh4H3rx4mxBQdhQwQp6jlv4YwEb9Tq54U/Wd7bSwhtSWel1Evz/8L8hGsYh 1dxordlgZVCoqqkwFzT3tjsb8J9SZmYtuRInnuAAzcOzzaz88d1p1ResWdtVWPVD1vFn Ovpy8w5Ajt/hT07mjkXNzu5s/SKzP3B6nKFcOfnqCP3JGDwl9W++mOs38LtQam8bMqFj fcoA== 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 e11si8678695pfh.147.2018.12.31.17.22.19; Mon, 31 Dec 2018 17:22:55 -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 S1728138AbeLaWyP (ORCPT + 99 others); Mon, 31 Dec 2018 17:54:15 -0500 Received: from kvm5.telegraphics.com.au ([98.124.60.144]:56420 "EHLO kvm5.telegraphics.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728049AbeLaWyO (ORCPT ); Mon, 31 Dec 2018 17:54:14 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by kvm5.telegraphics.com.au (Postfix) with ESMTP id 5A16C29C55; Mon, 31 Dec 2018 17:54:12 -0500 (EST) Date: Tue, 1 Jan 2019 09:54:09 +1100 (AEDT) From: Finn Thain To: Arnd Bergmann cc: Greg Kroah-Hartman , Linux Kernel Mailing List , linux-m68k , linuxppc-dev Subject: Re: [PATCH v8 00/25] Re-use nvram module In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 30 Dec 2018, I wrote: > > The rationale for the ops struct was that it offers introspection. > > [...] those platforms which need checksum validation always set > byte-at-a-time methods to NULL. > > [...] The NULL methods in the ops struct allow the nvram.c misc device > to avoid inefficient byte-at-a-time accessors where possible, just as > arch/powerpc/kernel/nvram_64.c presently does. > Hopefully my message makes more sense with the tangential irrelevancies removed. I will document these considerations in nvram.h for the next revision. --