{"id":812378,"url":"http://patchwork.ozlabs.org/api/covers/812378/?format=json","web_url":"http://patchwork.ozlabs.org/project/linux-imx/cover/1505134864-11975-1-git-send-email-yamada.masahiro@socionext.com/","project":{"id":19,"url":"http://patchwork.ozlabs.org/api/projects/19/?format=json","name":"Linux IMX development","link_name":"linux-imx","list_id":"linux-imx-kernel.lists.patchwork.ozlabs.org","list_email":"linux-imx-kernel@lists.patchwork.ozlabs.org","web_url":null,"scm_url":null,"webscm_url":null,"list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<1505134864-11975-1-git-send-email-yamada.masahiro@socionext.com>","list_archive_url":null,"date":"2017-09-11T13:00:59","name":"[0/5] nvmem: some cleanups and sparse warning fixes","submitter":{"id":65882,"url":"http://patchwork.ozlabs.org/api/people/65882/?format=json","name":"Masahiro Yamada","email":"yamada.masahiro@socionext.com"},"mbox":"http://patchwork.ozlabs.org/project/linux-imx/cover/1505134864-11975-1-git-send-email-yamada.masahiro@socionext.com/mbox/","series":[{"id":2492,"url":"http://patchwork.ozlabs.org/api/series/2492/?format=json","web_url":"http://patchwork.ozlabs.org/project/linux-imx/list/?series=2492","date":"2017-09-11T13:00:59","name":"nvmem: some cleanups and sparse warning fixes","version":1,"mbox":"http://patchwork.ozlabs.org/series/2492/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/covers/812378/comments/","headers":{"Return-Path":"<linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org>","X-Original-To":"incoming-imx@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-imx@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.infradead.org\n\t(client-ip=65.50.211.133; helo=bombadil.infradead.org;\n\tenvelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org header.b=\"jMIlX9Wh\"; \n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=nifty.com header.i=@nifty.com\n\theader.b=\"m6XAjBtn\"; dkim-atps=neutral"],"Received":["from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xrSlr2xwrz9sNV\n\tfor <incoming-imx@patchwork.ozlabs.org>;\n\tMon, 11 Sep 2017 23:03:20 +1000 (AEST)","from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1drOMp-0004yo-TN; Mon, 11 Sep 2017 13:03:12 +0000","from conuserg-12.nifty.com ([210.131.2.79])\n\tby bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1drOM7-0004JW-Hc; Mon, 11 Sep 2017 13:02:35 +0000","from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp\n\t[153.142.97.92]) (authenticated)\n\tby conuserg-12.nifty.com with ESMTP id v8BD1I4W001997;\n\tMon, 11 Sep 2017 22:01:18 +0900"],"DKIM-Signature":["v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe:\n\tList-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date:\n\tSubject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date:\n\tResent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:\n\tReferences:List-Owner; bh=TopDSfdcQm7RQfaWekWo6Cu7c54Wd2K6mhhw8oNr6UY=;\n\tb=jMI\n\tlX9Whf0GG0ygbhTmdIsF0rMEq7ub56hX3v8+w3UdBatsIPLkvV0p5/v8uI2Qw55acbiOA2bEzbV1O\n\twSOyhRnsTs/+GlBbeL7lzamnjh4ybdUJhR26md7VN6Aa+gllqOKJHQWzd2G/NqYfGeJaJEqX3+5gj\n\tW7OAwjhB4dbSCWRHsGvEkbnzRa0KzVe9DH3ajzY8SbQeAa19qhOxo78jTPCbAWeRt+nlPCjgpQ5C/\n\t0a6Xl7yufVB7UmY2+RgeohuMBZl9MUfa7uPVaRu0IGVmZoqJNgglxteD/GIfhytkEDPg14XGaFbO0\n\tfmEopAJ27FTmLXnbOTsM7ZzWRXA1n2Q==;","v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com;\n\ts=dec2015msa; t=1505134880;\n\tbh=lUFdHCq5rGxmN7vZL8lRZqVukafQdEO7NZQyCJL8FtI=;\n\th=From:To:Cc:Subject:Date:From;\n\tb=m6XAjBtnaDlxJHQ7Hg1igClVXz84b+3rGuLa6uSG4JPwC3EH4hJ3WGlfzJXaSKY9l\n\tMrYlmeFva2ozAaRRXn0F1Z7l3/zUZgyyy1s9XMaDy0WRFclSG1Q6llX+UY9OCjue9h\n\tYWipLEzqIRkCNXLkLEoVVbJh86OL+9SfMx42uQG9icuz49zb+7x+dm71LH/Z6xzSMY\n\tW5yZNK3rOQxtHJHAh8OUty19vEl0xKZkMOwD2+Z1WfUAdk/fL2bAS9g7XAmzvvDRNS\n\trJwImDpAE6ViknssY5AGrDtclns49FlT6gJlF+Z+8/8j3zmHU0XmTW6M6yNstr/cyx\n\tGPcfMEeCVTDtQ=="],"DKIM-Filter":"OpenDKIM Filter v2.10.3 conuserg-12.nifty.com v8BD1I4W001997","X-Nifty-SrcIP":"[153.142.97.92]","From":"Masahiro Yamada <yamada.masahiro@socionext.com>","To":"Srinivas Kandagatla <srinivas.kandagatla@linaro.org>","Subject":"[PATCH 0/5] nvmem: some cleanups and sparse warning fixes","Date":"Mon, 11 Sep 2017 22:00:59 +0900","Message-Id":"<1505134864-11975-1-git-send-email-yamada.masahiro@socionext.com>","X-Mailer":"git-send-email 2.7.4","X-CRM114-Version":"20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ","X-CRM114-CacheID":"sfid-20170911_060228_300160_C8A31A0A ","X-CRM114-Status":"UNSURE (   6.97  )","X-CRM114-Notice":"Please train this message.","X-Spam-Score":"-1.2 (-)","X-Spam-Report":"SpamAssassin version 3.4.1 on bombadil.infradead.org summary:\n\tContent analysis details:   (-1.2 points)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail)\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]\n\t-0.1 DKIM_VALID Message has at least one valid DKIM or DK signature\n\t0.1 DKIM_SIGNED            Message has a DKIM or DK signature,\n\tnot necessarily valid","X-BeenThere":"linux-arm-kernel@lists.infradead.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Unsubscribe":"<http://lists.infradead.org/mailman/options/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe>","List-Archive":"<http://lists.infradead.org/pipermail/linux-arm-kernel/>","List-Post":"<mailto:linux-arm-kernel@lists.infradead.org>","List-Help":"<mailto:linux-arm-kernel-request@lists.infradead.org?subject=help>","List-Subscribe":"<http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe>","Cc":"Heiko Stuebner <heiko@sntech.de>, Jassi Brar <jaswinder.singh@linaro.org>,\n\tKevin Hilman <khilman@baylibre.com>,\n\tJoachim Eastwood <manabian@gmail.com>, \n\tKeiji Hayashibara <hayashibara.keiji@socionext.com>,\n\tlinux-kernel@vger.kernel.org,\n\tMasahiro Yamada <yamada.masahiro@socionext.com>, \n\tChen-Yu Tsai <wens@csie.org>, linux-mediatek@lists.infradead.org,\n\tMasami Hiramatsu <mhiramat@kernel.org>,\n\tlinux-amlogic@lists.infradead.org, \n\tMatthias Brugger <matthias.bgg@gmail.com>,\n\tlinux-rockchip@lists.infradead.org, \n\tMaxime Ripard <maxime.ripard@free-electrons.com>,\n\tCarlo Caione <carlo@caione.org>, linux-arm-kernel@lists.infradead.org","MIME-Version":"1.0","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Sender":"\"linux-arm-kernel\" <linux-arm-kernel-bounces@lists.infradead.org>","Errors-To":"linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org","List-Id":"linux-imx-kernel.lists.patchwork.ozlabs.org"},"content":"Socionext is trying to add a new nvmem driver.\n\nBefore adding a new one, I'd like to be sure about the preferred\ncoding style in this subsystem, and build-up cleaner code base.\n\nPlease pick up what you like.  Please feel free to throw away\nwhat you do not like.\n\n1/5, 2/5: convert kzalloc to stack because nvmem_config\nis small one-time use data.\nThis is what we agreed in the discussion.\n\n3/5, 4/5: fix sparse warning\nFor mtk-efuse, qfprom, the base address is the only private data\nbut, assigning (void __iomem *) to ->priv directly causes sparse\nwarnings.\n\n5/5: clean-up of owner settings - if the owner field matches\nnvmem->dev->driver->onwer, we need not set the onwer field\nexplicitly.\n\n\n\nMasahiro Yamada (5):\n  nvmem: imx-iim: use stack for nvmem_config instead of malloc'ing it\n  nvmem: mtk-efuse: use stack for nvmem_config instead of malloc'ing it\n  nvmem: mtk-efuse: fix different address space warnings of sparse\n  nvmem: qfprom: fix different address space warnings of sparse\n  nvmem: set nvmem->owner to nvmem->dev->driver->owner if unset\n\n drivers/nvmem/bcm-ocotp.c      |  1 -\n drivers/nvmem/core.c           |  2 ++\n drivers/nvmem/imx-iim.c        | 24 +++++++++------------\n drivers/nvmem/imx-ocotp.c      |  1 -\n drivers/nvmem/lpc18xx_eeprom.c |  1 -\n drivers/nvmem/lpc18xx_otp.c    |  1 -\n drivers/nvmem/meson-efuse.c    |  1 -\n drivers/nvmem/mtk-efuse.c      | 47 ++++++++++++++++++++++--------------------\n drivers/nvmem/mxs-ocotp.c      |  1 -\n drivers/nvmem/qfprom.c         | 27 +++++++++++++++---------\n drivers/nvmem/rockchip-efuse.c |  1 -\n drivers/nvmem/sunxi_sid.c      |  1 -\n drivers/nvmem/vf610-ocotp.c    |  1 -\n 13 files changed, 54 insertions(+), 55 deletions(-)"}