From patchwork Tue Apr 14 16:14:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 185411 Delivered-To: patches@linaro.org Received: by 2002:a92:3d9a:0:0:0:0:0 with SMTP id k26csp1601693ilf; Tue, 14 Apr 2020 09:14:33 -0700 (PDT) X-Received: by 2002:a2e:9ac9:: with SMTP id p9mr569518ljj.222.1586880873482; Tue, 14 Apr 2020 09:14:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586880873; cv=none; d=google.com; s=arc-20160816; b=Soj7L4UuTJDcxDrJ9eXlVPZnrvalcwkCXKG18snev1Ot+CMqFyMp/JaFimV+iOFEtn Dm0IU5CmTKwAoQmQHvKe8xEvIbRAIBilITJcCbCMaxhwxgurZ5QVjqPUcSPqPfb7B0Ul t+6iHbJV9rwK6aa4kFW+6lr643JKXxfYuzoFqgX6nBMC4Nc79GC/R3d2v9nUb6rdne9C vwa66PTT/Mxa/U9upMM/Q3ZY6iPAgi2/gdXOxCC55D6D13cOZKuN0RHHm93+1D4vcy/9 wW0DlW3PNU1WEtyEBz3zI1DhfmVxYnOq1dUkxy34SLd6KNi2UsdorvidVBAe38mm8iDC P9aQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=ssNZhCk/W8aH/W/Y1Y0b51fjc3318cXifEh7iCUNpWY=; b=Z6/WiEqDI5bDU+Vw9WyOCqLLC3EsbnrrEljC4yLjL76VGdniWwNFuhNx4ngrbPrnCO Rl6s/jg8WBWVQ1MjTQxGZA2OIiMTMvwj/p7sAHxzBaHk9XrX9Z62PTZg7RB9pqCO3OaQ JYSR+YB0EuabGFj5HHp0fANagMtueT+QaSHKSsYd467+Ayo7i3evMRhyDG9VSjnM5IEO vHZwTb9ihDu/9lhRUO7ZDXk+G8AvDOugahN4iTPs0Ek73Xw5MnGJ7wcWSmA9VfugPoD8 o7/WLbcT2vAEE7iRWeDuV/JFqnzKQV38qZyfCLcvaIz6JOR6ztCXUpr2SXcDjle91VU0 wn3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=byorq+Hh; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 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-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id c5sor7994736ljk.42.2020.04.14.09.14.33 for (Google Transport Security); Tue, 14 Apr 2020 09:14:33 -0700 (PDT) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=byorq+Hh; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ssNZhCk/W8aH/W/Y1Y0b51fjc3318cXifEh7iCUNpWY=; b=byorq+HhD6RQw+ZVbfQkdf7A1wS+BcXsygsl7i9QF9TOlHQ3zVlW7O7peLFC+yyRaH /Tr0pk50Ycv4olUb+202GQ7VDfagVPqO7zamNCITsZindq9hJUTo1GTrYbH/CMT1fM4y X5TiYxYkHyQdfmsjdU415XSKMcgxMtsuEo1yaHx74sLntpupNNhDM15glIJTadLLG/hn YoYw9B+w3tOonSaT+7t8BxtH2m72Ud9ndILWTddmhZv6eBrBVRwt5IEiWYHprdX1srat quCAItruFljqp/+0+tocFBvRz1Fxan3udC+uHh94IpSwc+ztS4nyhWScR82laVbSg2tb D3/g== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=ssNZhCk/W8aH/W/Y1Y0b51fjc3318cXifEh7iCUNpWY=; b=sVV16od/DRFbY2U1BcOxO4FIGfJuQcbBAyiDhs60MTRHM2/CLSfJiyRaxZNvp6Bscz It8X8hFRgQIrWbresAlfmxmZLo+IM7uh+IpA8SN+J4IvUOTtIOJ66ppG6hZm3/BShIdq BrmXyQeN5pHa96QjJG/wxXWVxkYhYGt27USAQr+bomCax6+uyPK+Lq6c4XZtKBivcH1V eTU0jX/hS3FgfGTDkLTJmUWCqB74Ra0UnWeRpcuXBEEaQHVosGiUAXjygjDLR56L1oxi 9vpDBQApBIoqj1N7GNFRNySfog+kQ5daOayHf04pmuuASr7+XT6JWQQEjiflc9xDMNby DyxQ== X-Gm-Message-State: AGi0Pub+h2ZGle6ks8Z+XsytDTbzlQX5nLhPHctZwTbsVR/ltxGpl/Ka nRZjv3ayCuOY1zq7Sh4DwtzDBRtk X-Google-Smtp-Source: APiQypK+UzFr/X/xwT3LC57UysC+HMAIQ0E8wkILiPjrXHpb2krTr+eX8VeYjT+17rMTHwOOInINFA== X-Received: by 2002:a2e:9a0d:: with SMTP id o13mr541104lji.142.1586880873076; Tue, 14 Apr 2020 09:14:33 -0700 (PDT) Return-Path: Received: from localhost.localdomain (h-98-128-181-131.NA.cust.bahnhof.se. [98.128.181.131]) by smtp.gmail.com with ESMTPSA id a26sm9330669ljn.22.2020.04.14.09.14.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Apr 2020 09:14:32 -0700 (PDT) From: Ulf Hansson To: linux-mmc@vger.kernel.org, Ulf Hansson Cc: Adrian Hunter , Linus Walleij , Rui Miguel Silva , Johan Hovold , Alex Elder , Greg Kroah-Hartman , =?utf-8?q?Jonathan_Neusch=C3=A4fer?= , Bruce Chang , Harald Welte , Alex Dubov , Sascha Sommer , Manivannan Sadhasivam , mirq-linux@rere.qmqm.pl, Jesper Nilsson , Lars Persson , Paul Cercueil , Ludovic Desroches , Nicolas Ferre Subject: [PATCH 09/19] mmc: sdricoh_cs: Use MMC_APP_CMD rather than a hardcoded number Date: Tue, 14 Apr 2020 18:14:03 +0200 Message-Id: <20200414161413.3036-10-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200414161413.3036-1-ulf.hansson@linaro.org> References: <20200414161413.3036-1-ulf.hansson@linaro.org> MIME-Version: 1.0 Cc: Sascha Sommer Signed-off-by: Ulf Hansson --- drivers/mmc/host/sdricoh_cs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.20.1 diff --git a/drivers/mmc/host/sdricoh_cs.c b/drivers/mmc/host/sdricoh_cs.c index 1fc4db713ef5..a41c0660abbf 100644 --- a/drivers/mmc/host/sdricoh_cs.c +++ b/drivers/mmc/host/sdricoh_cs.c @@ -22,6 +22,7 @@ #include #include +#include #define DRIVER_NAME "sdricoh_cs" @@ -261,7 +262,7 @@ static void sdricoh_request(struct mmc_host *mmc, struct mmc_request *mrq) if (host->app_cmd) { opcode |= 64; host->app_cmd = 0; - } else if (opcode == 55) + } else if (opcode == MMC_APP_CMD) host->app_cmd = 1; /* read/write commands seem to require this */