From patchwork Thu Jun 8 13:27:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 103385 Delivered-To: patches@linaro.org Received: by 10.140.91.77 with SMTP id y71csp2439484qgd; Thu, 8 Jun 2017 06:27:52 -0700 (PDT) X-Received: by 10.25.199.75 with SMTP id x72mr6329001lff.75.1496928471978; Thu, 08 Jun 2017 06:27:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496928471; cv=none; d=google.com; s=arc-20160816; b=PMWzvZnsxNvgns/6QdFuy0HE0eKQ5qk9dZrcrQ8vo0Di/rKhu2JTUQRpX7iWdcSVYD UEOavAmn438i6co41JqPamKzoOFZs/LgBog60iee+xpSfxXNu/iy/RGj+48H4MGidd0/ tYwxZJH34qWH6rIobTTkQL6TYYPdPAiIJ/bY4oLwNjAdRHzI8AGelpKka6V4q6xzsMNw fqS+7qzaf6w4/rCYm1dPwTLt+QIX9342p+jTapC1D1bTNxuvCF2murjqTZIIOBBTeiOJ stk7J2de17J35DKGC5DlzuyVxdcWguRjZnk0/v3dEZDOXdLtxACvXYLIUDRroQpeKxGZ Z7jQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=neQzIF6SXCO8NnBezHSqc0XJPkxJ9EuUlQ6xfn76DEE=; b=tTXQOStol+cZfy++pBySMQZYDeX+8m3VE5CvGNP8fqkl4zgwkIzAFZ1EishGm56ovH WIo4+y+vXENrt4T6epcf2orrVpiafiqmIQl6v7eD7Y6/vWvuc8ohhR009aoZGknwx6n8 dnDEJgkGdeeMNfgwqrt6OdCRNaecy2fDnGzBsV+uualMe83OSDLsFs3XhodwExJGQPD4 jh/xl9g1R9i2WSfLYAYGfpyg2A3ouIml8fyf8CZwo5kYK1TKHEOCtEKyQQ5/UIbdhq84 JnKls2qmstNYGXA7tGMroFmGfOnCBmoxYt4Rd83iOm3i+SIXhfeBvhzxrKqw4bUW2b9b XHsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 2a00:1450:4010:c07::232 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-lf0-x232.google.com (mail-lf0-x232.google.com. [2a00:1450:4010:c07::232]) by mx.google.com with ESMTPS id v17si2533127ljd.124.2017.06.08.06.27.51 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Jun 2017 06:27:51 -0700 (PDT) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 2a00:1450:4010:c07::232 as permitted sender) client-ip=2a00:1450:4010:c07::232; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 2a00:1450:4010:c07::232 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by mail-lf0-x232.google.com with SMTP id p189so18037202lfe.2 for ; Thu, 08 Jun 2017 06:27:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=neQzIF6SXCO8NnBezHSqc0XJPkxJ9EuUlQ6xfn76DEE=; b=QHCmsfBUI7ENUvAJ8jaCAqwZ3iiSJ0IWCmvimQH9Uc3FKQV4T+QXggxLa6fKklyDyl KH1S/GNsSXmnIyoZ4WOq7eqCzjxVR8DkxZTpdiUueK/KwDjoAI1/F9iRicnQLtKyDxPk wBOjc5LK018PsrxeeDWtuSxzWU7xAjmoYpBcM= 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=neQzIF6SXCO8NnBezHSqc0XJPkxJ9EuUlQ6xfn76DEE=; b=iu5OKaETCd/8ywHob/IjA++RoUt6POdm8Mg5J6hoXPJxA5ns8AAtPHrfJTmS7rEglY 5EujzfMGNE5c4tGF5mIcbj5D1Yc+BH4U0scT475Xlkqah7ziUuQNfz9uFo5Sf0ui8J6T jPiCNG8DvMvQk5x5MdabJJiOosdhQd8o7g69XQqgpr8kMn4RbB271JPjyM8QTfs/gBZH EMtBq4YbEoiI85WFfn6weim75azaKlNAN3q/znqVLVMydfqk0Be1l1Sh0F5OzBszis8l b1DOXuGlMv8aY7qAVOekZ18as8BuLoCUyb7eHTl3oFHI7mj7+lJWq7ZhL2zmAKH/Ocuu QP2A== X-Gm-Message-State: AODbwcAgFSWlCKMWEpWnqA3Opt3uc2IwJLh5xJkXQysUWiyA1Aa9GqRD teVhIckq4fvsIDgFvt4= X-Received: by 10.46.32.4 with SMTP id g4mr11370101ljg.56.1496928471271; Thu, 08 Jun 2017 06:27:51 -0700 (PDT) Return-Path: Received: from uffe-XPS-13-9360.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id i8sm1025178ljb.55.2017.06.08.06.27.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 08 Jun 2017 06:27:50 -0700 (PDT) From: Ulf Hansson To: linux-mmc@vger.kernel.org, Ulf Hansson Cc: Jaehoon Chung , Adrian Hunter , Linus Walleij Subject: [PATCH 0/9] mmc: core: Some trivial re-factoring and cleanups Date: Thu, 8 Jun 2017 15:27:36 +0200 Message-Id: <1496928465-25004-1-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.7.4 I have collected some cleanups along the road on the mmc core, now I thought it was time to post them. None of these changes causes any functional changes, but the goal is rather to just make the code more readable and avoid open coding. Ulf Hansson (9): mmc: core: Don't export some eMMC specific functions from core.c mmc: core: Move mmc bkops functions from core.c to mmc_ops.c mmc: core: Move mmc_interrupt_hpi() from core.c to mmc_ops.c mmc: core: Move mmc_flush_cache() from core.c to mmc_ops.c mmc: core: Make mmc_can_reset() static mmc: core: Remove redundant code in mmc_send_cid() mmc: core: Re-factor code for sending CID mmc: core: Drop mmc_all_send_cid() and use mmc_send_cxd_native() instead mmc: core: Clarify code for sending CSD drivers/mmc/core/core.c | 207 ------------------------------------- drivers/mmc/core/mmc.c | 8 +- drivers/mmc/core/mmc_ops.c | 250 +++++++++++++++++++++++++++++++++++++++------ drivers/mmc/core/mmc_ops.h | 3 - drivers/mmc/core/sd.c | 6 +- 5 files changed, 221 insertions(+), 253 deletions(-) -- 2.7.4 Reviewed-by: Shawn Lin