Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3604155imm; Wed, 5 Sep 2018 02:59:29 -0700 (PDT) X-Google-Smtp-Source: ANB0VdafE5KZIpwehNv82701DqzUsJLjuyqw8OBbWwQXDPwnKtFyxMBOottqznTymugLJr2irRRa X-Received: by 2002:a62:8c8c:: with SMTP id m134-v6mr39436065pfd.130.1536141569233; Wed, 05 Sep 2018 02:59:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536141569; cv=none; d=google.com; s=arc-20160816; b=BQMNJQTNJG0MClXezWiqL4cw/GYZpsSP4VEWHMvdj4AwFHzSf01KJhrQ5niYGsqL6F jlokugJa8YXXyKAcF5E6xqXZJRKddcu5KDtHilj5CpZQ9snzUlkiQuZl+6O0vIc4ezLW YpZELO/8ah7U10rrDw6m9qkDyfSZdrVDbUAXk9lssxOYx0yc8fb3ZPJa6rPXffrDWnbJ 3ZY03HhyOCAnLjAd/50AweUFCkm3o+AEjbgj9h1+HBmukMg3xfi7eTjbLsgtwVjkrabp kEQL2XvtmAKTOU/begopirWw/R59bKWDvPwGpXWKAfTQK2fdFmJKJ3TNDoD56IMZpCUb J8rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=1esYnT12DAU+a8ymd1+Yc6yh/+Mab4WiQa0qKqtIV+E=; b=BL28u78EfQKvbHVTSt52sXPFAoBG2QLWwp0HcufZJgsgx7KjwttY7mx2zEHWOpFn1q QzF/qMp0tE8+kHZAjLsTArxOhj41a805wNJYtFukUm5Q+0UJrkM5wgiehmJeVfnkCnBL ABDecrvRkI0LIc8RDBJFGW+wgV8Hv6nlF1j38VOUOuGwOrTx8gWCCRv627fAO1NJrIyd /xD1aBW67hpeWuzUXnnYoPz9aBegbq6eqGxy4w+IuRFBIK39WiCQy8X5ktiAJv9RhPk1 hTYvlBCch65cGfhON11q9lYH0FDr8Da7XbdH9qSEAIFpYBjVImyIjpqBHVqx46BejN2J Eytg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=qnjbugl7; 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 d1-v6si1557365pld.322.2018.09.05.02.59.13; Wed, 05 Sep 2018 02:59:29 -0700 (PDT) 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; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=qnjbugl7; 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 S1727966AbeIEO1c (ORCPT + 99 others); Wed, 5 Sep 2018 10:27:32 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:41993 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727373AbeIEO1c (ORCPT ); Wed, 5 Sep 2018 10:27:32 -0400 Received: by mail-wr1-f67.google.com with SMTP id v17-v6so6936423wrr.9 for ; Wed, 05 Sep 2018 02:58:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=1esYnT12DAU+a8ymd1+Yc6yh/+Mab4WiQa0qKqtIV+E=; b=qnjbugl7MMvhDYPxF/sEelqKaDMuic9dfK2P7ViI+r/OiUsOiXNKwI9rZbg1/tjsxL KB7EGR+5673Ci4tIjuWn2Ssr5BuATBmsFAv8pyZsiOGVhMiSoOxC9SmPiqQoH2DaAhic RAjeP0REzCufar081Hvo3oCWlOdo01IEVn2vwz/F/lpv/hOsNeTpIT6HXJAKxmZD9xIV wTqoqPXirfRxOR8XZ3L+G99ulIWHSuusdgcrqTWZcT06XfvqIdtocYVl/GPXtfL3IqUd I+t9dsh45rkSz7laEWBYIHW2vDJVV+oOt1GzZby/376yMRenhSfPp83gbd33myARh/TS ycpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=1esYnT12DAU+a8ymd1+Yc6yh/+Mab4WiQa0qKqtIV+E=; b=IES5Xm2n8QZQvuDoLYH7Cca2a0VAvCb8gvpHXIs7zl7ZMCoGZcq9/GMlshJqfF0B55 PleUj/2EMOe3S02vtoYIPLQ7dwZduz/7yvTMU7zgQJKw26LktHnRtX52KNjViqHClNNz sJ5EtiWUnYmH7Ql/2HD9UnDMtovK5R8tLREmFm9bDPFsXbHDMF1FV9cZmGEJKY9PSQrQ 8YCUS+4C32T1qE91oAeHc4EFX3v32LMRBheWYX/6RITH9OPS5ac1sj6G3ryqaAUuUunN eR5eXHGi3WQH/fLekSqinGWh0yKqDjnQDpAzvqfWky7NUrPkpxVCpV4eVChuCSnkSRus /+qg== X-Gm-Message-State: APzg51Dv4QVregqjFIrzbMdCKM4tru9T40SL4XB3Jkbvo+YWkBRj2e9+ lKN/b65Ao7w8hN30/zG0RnD42Q== X-Received: by 2002:a5d:434c:: with SMTP id u12-v6mr26052105wrr.189.1536141483834; Wed, 05 Sep 2018 02:58:03 -0700 (PDT) Received: from brgl-bgdev.baylibre.local (AStLambert-681-1-33-235.w90-86.abo.wanadoo.fr. [90.86.152.235]) by smtp.gmail.com with ESMTPSA id l12-v6sm2127815wrv.29.2018.09.05.02.58.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Sep 2018 02:58:03 -0700 (PDT) From: Bartosz Golaszewski To: Srinivas Kandagatla , Joachim Eastwood , "David S . Miller" , Mauro Carvalho Chehab , Greg Kroah-Hartman , Andrew Morton , Arnd Bergmann , Jonathan Corbet , Sekhar Nori , Kevin Hilman , David Lechner , Boris Brezillon , Andrew Lunn , Alban Bedel , Maxime Ripard Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Bartosz Golaszewski Subject: [PATCH 00/13] nvmem: rework of the subsystem for non-DT users Date: Wed, 5 Sep 2018 11:57:25 +0200 Message-Id: <20180905095738.26406-1-brgl@bgdev.pl> X-Mailer: git-send-email 2.18.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bartosz Golaszewski This series contains nvmem framework changes prerequisite for further development of my previous series[1] that aims at removal of the platform data struct from at24 EEPROM driver. First we remove unused APIs and the global cell list. We then switch to using kref instead of manual user counting. Next we simplify the provider unregistration by removing the return value from nvmem_unregister(). Next three patches improve the framework by adding a notifier chain for future use and fixing the issue with nvmem device names. Finally we add support for cell definitions, cell lookups and make DT systems resolve the nvmem cells during provider's registration. Last patch just uses the SPDX license identifiers. Tested both DT and non-DT use cases. [1] https://lkml.org/lkml/2018/8/10/149 Bartosz Golaszewski (13): nvmem: remove unused APIs nvmem: remove the global cell list nvmem: use kref nvmem: lpc18xx_eeprom: use devm_nvmem_register() nvmem: change the signature of nvmem_unregister() nvmem: provide nvmem_dev_name() nvmem: remove the name field from struct nvmem_device nvmem: add a notifier chain nvmem: add support for cell info nvmem: resolve cells from DT at registration time nvmem: add support for cell lookups from machine code Documentation: nvmem: document cell tables and lookup entries nvmem: use SPDX license identifiers Documentation/nvmem/nvmem.txt | 30 ++ MAINTAINERS | 1 + drivers/nvmem/core.c | 650 ++++++++++++++++++--------------- drivers/nvmem/lpc18xx_eeprom.c | 6 +- include/linux/nvmem-consumer.h | 50 ++- include/linux/nvmem-machine.h | 56 +++ include/linux/nvmem-provider.h | 22 +- 7 files changed, 465 insertions(+), 350 deletions(-) create mode 100644 include/linux/nvmem-machine.h -- 2.18.0