From patchwork Mon Oct 30 18:48:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Pitre X-Patchwork-Id: 117497 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp2926502qgn; Mon, 30 Oct 2017 11:50:02 -0700 (PDT) X-Google-Smtp-Source: ABhQp+RyQnaukTpLverYBe7eH8xbMCIlUYF/0ccgrl4IjB7Ft2oLBtnHZgqGsNLHzHGFOyAFhf4q X-Received: by 10.84.174.67 with SMTP id q61mr8313459plb.184.1509389402018; Mon, 30 Oct 2017 11:50:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509389402; cv=none; d=google.com; s=arc-20160816; b=vW0qI7VpQOlCdfZxs0YtPv+R0thhW25PUSzuxxcmB/JK6OtNpSYU4MRtZnp3jhXTd7 U5UBULS3FMsjKcF8CrCNSp9jw/oxc5vpJHnUnNd+DzuY4and2YQCJdpgDsbOx0BEOLx6 ChhGoHj+w3ej3xcwf+dnDMdd8bgXb7R/h6aTTZKyEntcDz8/XEc4i5qr72q3dn8M/N9r nD6MxonJVOmzuZ+MEJ26nHZj8D6i2vhae5pQZqKa9dKcYxV5Q9e/nfRVJhCGYB6W/E84 9ae3G8vQ7ls5hrWvDqJiOhtJE15i71HuPec4x1SJJcCnkU5vfyQbkC7Gd9wxJnDVMBAO 7z8g== 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=ZnCk1X0ZVQ+lUC3Hk1kYuYbioNY8ExxL81Y6ssQKU+M=; b=Fr7VSOBI0qcw2R3q49ZYoxrjulIug6rpBKZVepAfovhVbValXgKbZgwUODKK7RdtFK ePgDDHDPbWP6faV9/9mzLMWZYD1nF3lMpEC8J4x1buGKboDxdCeOtrKLU/rSra82Hy+I rz7IvbU7RTM6Rc9n/cEb2dAXEPCY+ttfeKP8wV1c4THCw+ZJDBX/F7iFr5gJFn2DfXoB JfDQYCskdHFTEfvaftzMKaSAe3dH3cQTrImwfl74nLbt7n+O3iVYniB34fnEgtWK1a8m 7XU2nomJZYuOcawoXXesMvuH9ypnWpRmEtexN0+4VGTaZVarWkhjontmW6xCOfSCzGRu fwxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20170209 header.b=IABc4MqR; dkim=neutral (body hash did not verify) header.i=@pobox.com header.s=sasl header.b=ZaZTCq6q; 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 j12si10553194pgn.228.2017.10.30.11.50.01 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 30 Oct 2017 11:50:02 -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=IABc4MqR; dkim=neutral (body hash did not verify) header.i=@pobox.com header.s=sasl header.b=ZaZTCq6q; 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=ZnCk1X0ZVQ+lUC3Hk1kYuYbioNY8ExxL81Y6ssQKU+M=; b=IAB c4MqRhvoOeYxulpXDQzdL5YLvuuXEsrEbDsjZgHHs2yUEciCN4vflkQpQhU0ScZTQO8tU5BAEasHF E/2x2QedAYPqSALktcsO3eKAraT1rkM70L8YPaNtfiaVREAzrWx2KPGOsxINc0+9sBhDAVfsv9e80 Wr7eHtcJmG/iuizMIREHddrw8KqW2CEKaTFnsF6ksBasZt1bGG7fSXmpSKRIHXIQ9IOEFxutkgoZr wrYjiiMijODbmSyiQfgnPLdoa92rbjdmjzw8N8+Isd3Kh4o/hh+75mgo1eDIp7FmSggvvKAuqWsUw vv011F84MMZ1Wy9w5jIJk5mVoNabDzQ==; 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 1e9F8E-0000aa-W4; Mon, 30 Oct 2017 18:49:55 +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 1e9F7M-0000Mb-Dg for linux-mtd@lists.infradead.org; Mon, 30 Oct 2017 18:49:03 +0000 Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id 0BEA2A0962; Mon, 30 Oct 2017 14:48:38 -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=/A8cPmsYHVxC4H04Xydpe4+dvZg =; b=ZaZTCq6qzRNYkwjovCMcucl842unDfBSn0LzDpa8Ilfvgk5Z9UE1I+L1Fr1 Hfa/4AuecwVK3nwTJGE58MHJJkGyWBPKrnOasMVkfzYM7BYMOc+/oV3ugQ9RzVth njO2PNiJeIislNm5DeSTVNaOiO6mfYiDPEJ7cemEsOmvxSTI= Received: from pb-smtp1.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id 0366EA0961; Mon, 30 Oct 2017 14:48:38 -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 7760EA095E; Mon, 30 Oct 2017 14:48:37 -0400 (EDT) Received: from xanadu.home (xanadu.home [192.168.2.2]) by yoda.home (Postfix) with ESMTP id 967BE2DA0185; Mon, 30 Oct 2017 14:48:36 -0400 (EDT) From: Nicolas Pitre To: Boris Brezillon , Richard Weinberger Subject: [PATCH v3 0/5] unconfuse get_unmapped_area and point/unpoint driver methods Date: Mon, 30 Oct 2017 14:48:28 -0400 Message-Id: <20171030184833.20709-1-nicolas.pitre@linaro.org> X-Mailer: git-send-email 2.9.5 X-Pobox-Relay-ID: F07B1896-BDA2-11E7-B25C-8EF31968708C-78420484!pb-smtp1.pobox.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171030_114900_664385_9E65422E X-CRM114-Status: GOOD ( 10.00 ) 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: Chris Brandt , linux-mtd@lists.infradead.org MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+patch=linaro.org@lists.infradead.org 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. This is also available on top of Linux v4.14-rc3 via git here: http://git.linaro.org/people/nicolas.pitre/linux mtd_point Changes from v2: - Minor commit log additions to patch 2 and 3. - Added Boris Brezillon's ACK tags. - Added Chris Brandt's Tested-by tags. Changes from v1: - Fix retlen computation in mtdram.c:ram_point(). - Added Richard Weinberger's REviewd-by tags. 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/