From patchwork Wed Oct 11 03:26:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Pitre X-Patchwork-Id: 115487 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp274250qgn; Tue, 10 Oct 2017 20:28:04 -0700 (PDT) X-Google-Smtp-Source: AOwi7QCwgX+j2pMcI1IaztMUMVuJWIsuJ17fyRAGnnGtfW11WgAxvN1fPErwTEXWsMWzRJ9WAGMj X-Received: by 10.99.64.1 with SMTP id n1mr454471pga.185.1507692484390; Tue, 10 Oct 2017 20:28:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507692484; cv=none; d=google.com; s=arc-20160816; b=wPnetDNQgdIlGpJG93/wVfOna2in8zYS9nS6+D3tzzLKGZLRIy1wDJK3dvf1iT9j+/ NJv3hTVJFKsYWNtg4h/0iTjamVQ2xlAJa1Z9302ga2i6M923JI5hO31RBouBEmfAvKVl XqZUwtCniXJ25z0r7ZT4eT3tAoAQhFOen4JXUeb5JRnE3CCcYoSD1yb8r0AICa4ehqZW c+jdqTJDkKantAuyx9/IW8FBXfsD+ToaIi9L+Tf7Jf1/Rw052lmn+CTIiLiNJZxihfew z7fO0ZgUTJYifDeMnqCYjc9TR9xR+ZB1brxX7F20KBq2mE7X9i6B396w71xfzA1Ru1Pm PhOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:message-id:date:subject:to:from:dkim-signature :dkim-signature:arc-authentication-results; bh=+Jg4rQHuApG1WT89x8Cg8hk4kc7vJ0NMk49uXHfKkJ4=; b=nO+bsi7sIjGAx083yqHLz5pP3C0TnHS94Um/4cFaRnu/sAPAJEupkIg3eFSvC1cSsL K6K4BEeddQaxVJRh9eW88IFOn2IRDtAS9k0uwwKLyGauaSIK3o2gnav8zN3xSygY+Nrl 5UPDsGtwKpg1Nx1J/mvmORLmB/P6EG6RnkldFDydPvfELdjfWVhJTNExozXGGgAMSQti aotnMk71VaV6nu8Jem86zQ2WMKXsZhpufYGMIgyxhoCoYHTPf5h+vj2xv4dlS2BV4DDT fVYUla6pPdT462cPnTyIlqS66680L1ODassNPoDUf8W5sijHdTqZN49tH3wH/iAgAEQh 5k3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20170209 header.b=CHPcFsph; dkim=neutral (body hash did not verify) header.i=@pobox.com header.s=sasl header.b=vyUBGcyS; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) smtp.mailfrom=linux-mtd-bounces+patch=linaro.org@lists.infradead.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [65.50.211.133]) by mx.google.com with ESMTPS id u6si9983739pld.799.2017.10.10.20.28.04 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Oct 2017 20:28:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) client-ip=65.50.211.133; Authentication-Results: mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20170209 header.b=CHPcFsph; dkim=neutral (body hash did not verify) header.i=@pobox.com header.s=sasl header.b=vyUBGcyS; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) smtp.mailfrom=linux-mtd-bounces+patch=linaro.org@lists.infradead.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=+Jg4rQHuApG1WT89x8Cg8hk4kc7vJ0NMk49uXHfKkJ4=; b=CHP cFsphESxj+aB2ntt/2i6Kg83NASKyPyXjdd8q3iLBUsMAwee3Ky2789opDBhPJAWmaI1khzx/7iWJ UsoP1InVf+Tieu4V4+e36t5qzkPhCasmIdaFusCJDPL9HLl/x3iHxFrC5Cd0DOXox6xVcwfhVuEeL OnNEBj5+gSGBgGiV9Wi1ED8FrwI8FCiOMNVQgwefcCohrj4KR63O6skMmZk8Mok8cDhwVabOva8N8 oTmKZgQLQhjak/mOs8P0pP03Eo/meCqCvEoxB5GoRd4Uv5+OqZ3T+OdD9NLxwMwsfu8elN63X4pKW 9IY3u2eD5JiKWsb3sQHIvLzLyuPW7Fg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1e27gd-0003iV-6F; Wed, 11 Oct 2017 03:27:59 +0000 Received: from pb-smtp1.pobox.com ([64.147.108.70] helo=sasl.smtp.pobox.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1e27fZ-0002Lp-0I for linux-mtd@lists.infradead.org; Wed, 11 Oct 2017 03:26:58 +0000 Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id AF90E9F57F; Tue, 10 Oct 2017 23:26:26 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:date:message-id; s=sasl; bh=V8sj6ts1iM9nWAMi69+l3dZZl7A =; b=vyUBGcySRsqatV5+bvuwRqxofhPqPXwlEK+SD+dH+pGtQEfCAHs5b+v9Kt3 0dYnfUKB93AfPmw71KpXuqoNfn5y+iTIWesuXtI4r3RSSCs1eCgylYiXOD06WQcy DpAJWRuexyvD6/7HcP5/8ceEHsPFlYuk4ECFKFrdSD21fZUg= Received: from pb-smtp1.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id 967139F57D; Tue, 10 Oct 2017 23:26:26 -0400 (EDT) Received: from yoda.home (unknown [137.175.234.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp1.pobox.com (Postfix) with ESMTPSA id 2AE549F576; Tue, 10 Oct 2017 23:26:26 -0400 (EDT) Received: from xanadu.home (xanadu.home [192.168.2.2]) by yoda.home (Postfix) with ESMTP id 38D382DA0579; Tue, 10 Oct 2017 23:26:25 -0400 (EDT) From: Nicolas Pitre To: Boris Brezillon Subject: [PATCH 0/5] unconfuse get_unmapped_area and point/unpoint driver methods Date: Tue, 10 Oct 2017 23:26:16 -0400 Message-Id: <20171011032621.26979-1-nicolas.pitre@linaro.org> X-Mailer: git-send-email 2.9.5 X-Pobox-Relay-ID: F6994E74-AE33-11E7-A292-8EF31968708C-78420484!pb-smtp1.pobox.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171010_202653_275045_8C208388 X-CRM114-Status: UNSURE ( 9.60 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [64.147.108.70 listed in list.dnswl.org] 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-mtd@lists.infradead.org MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+patch=linaro.org@lists.infradead.org This is my first MTD contribution after more than 10 years. Feels like Back to the Future! :-) This series improves or implements the point and unpoint driver methods and reimplements mtd_get_unmapped_area() in terms of those. Because mtd->_point() provides a superset of what mtd->_get_unmapped_area() does then there is no reason for having both. Or worse: having one but not the other. This is motivated by my work on XIP cramfs for both MMU and !MMU systems where I do need the more complete point functionality. And it just looks like the right thing to do. Existing users won't see a difference. diffstat: drivers/mtd/chips/map_ram.c | 34 ++++++++++++++++++++-------------- drivers/mtd/chips/map_rom.c | 34 +++++++++++++++++++++------------- drivers/mtd/devices/mtdram.c | 36 ++++++++++++++++++++++-------------- drivers/mtd/mtdconcat.c | 27 --------------------------- drivers/mtd/mtdcore.c | 17 ++++++++++++----- drivers/mtd/mtdpart.c | 14 -------------- include/linux/mtd/mtd.h | 4 ---- 7 files changed, 75 insertions(+), 91 deletions(-) ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/