Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757459Ab2K3Kys (ORCPT ); Fri, 30 Nov 2012 05:54:48 -0500 Received: from mga14.intel.com ([143.182.124.37]:59731 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755157Ab2K3Kyq (ORCPT ); Fri, 30 Nov 2012 05:54:46 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.84,191,1355126400"; d="asc'?scan'208";a="224702650" Message-ID: <1354272933.30168.82.camel@sauron.fi.intel.com> Subject: Re: [PATCH 1/2] mtd: remove the de-select chip code in nand_release_device() From: Artem Bityutskiy Reply-To: dedekind1@gmail.com To: Huang Shijie Cc: dwmw2@infradead.org, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Date: Fri, 30 Nov 2012 12:55:33 +0200 In-Reply-To: <1353307410-17529-1-git-send-email-b32955@freescale.com> References: <1353307410-17529-1-git-send-email-b32955@freescale.com> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-fhJZpuAOVXEK50RqjGXd" X-Mailer: Evolution 3.4.4 (3.4.4-2.fc17) Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1986 Lines: 55 --=-fhJZpuAOVXEK50RqjGXd Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, 2012-11-19 at 14:43 +0800, Huang Shijie wrote: > The nand_get_device() does not select the chip, but nand_release_device() > does de-select the chip. It is really strange. >=20 > With the current code, nand_sync() will de-select the chip, even if the c= hip > has never been selected. >=20 > To make the balance of select/de-select chip, it's better to remove the > de-select chip code in nand_release_device() which makes the code more > clear. >=20 > Signed-off-by: Huang Shijie Pushed to l2-mtd.git, thanks! --=20 Best Regards, Artem Bityutskiy --=-fhJZpuAOVXEK50RqjGXd Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQIcBAABAgAGBQJQuJClAAoJECmIfjd9wqK0OtUP/3VSsv4m61DPLEC0qx2zLZ7d Ou8Z5frkIkFoVg1+JWEV/A7I3sYkdQq7P64/aI5nLzhL2i22NgVdUWE3wHcXB4VE M/Dplc1qWB5FDoKHEBu0sLqZq42eiVVDHeJjBAeDRZPv8QyiKmlU1ZKm856qJbeh olhNsDhmL8GdnvNk5MBSsxxQEFOX3mWKzLbqKQNJSHjlxSQIWZbNvbsXCNW9yFcU fo7vDJyuGv1hIJSjbFkUYCakFzQd5kv1cNSe4+v+tg7KZhm3HvWkKebGUiqhwme7 zqmpZVN0ovlfKhgrIczwChYkeWy3scFsMCFVy2ZE1BLxKQDkWF7KJlGwJlcNF2iU wY+IAQbRP9Y7Kmtao5juvj/Mo2/6SrhXdbMVG52ZQeiBBSy9bqEKP8gEQiQHYoFa ph0ztdaJVxDyYnGe2cP7cM0vwp84VP89ebezMaDpsGT2PMCKbS1cqjzL9BBhjHnb Eh0P605ngSBhZ1QSvowsLh6wc74jdpAsVBJa5hY1oDrojzzZo2TDUkX9fgZ+DRbT hIrNwEUclisRRM0AZ/7ivuIO55weX2yF0B8BLKPDreb0qP7Vk3cARO/Wa5ZWgcoW GlaKl46TLrmbHnGiGIH2kkLVj/fcqVK+DWmdQdCBg89LRMiLOBorveBTjpnUnr+h tVYr7zZhdqoraK3TO8lj =9KdR -----END PGP SIGNATURE----- --=-fhJZpuAOVXEK50RqjGXd-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/