From patchwork Mon Oct 24 11:28:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 8711 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp423093wru; Mon, 24 Oct 2022 05:24:05 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5wXT2YVn+qzxH7wzlWP4B5dMsRqKzKWCIFVP9UAI430pGKcx+Dngm04XJz0YbYnhuHL9Q8 X-Received: by 2002:a05:6402:358e:b0:461:ea80:fb61 with SMTP id y14-20020a056402358e00b00461ea80fb61mr1663435edc.356.1666614244816; Mon, 24 Oct 2022 05:24:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666614244; cv=none; d=google.com; s=arc-20160816; b=WTgpKCcafUztanWXa6ej0m6x3Q5vsJOmuwYGN6+eQimSFbqnVcjE7rm7FAJ7h1U3rR g2j+jxg2EJa05Je6bcI5bm90htSJihmWocTqO9ZlJdPQGbX5Zl+RuFjwKa85HDyWvbmn cl5za3DmjYLoEm9Uo4Go7XN1EWTapfUkppgOxwY9QRUhggrtxThiFn4NBfEvY7LVMpUh pT1JraCxeQdEJHLcZ0m9PuLdAxjmvhjkWTRQz3Bydm8TxysP3Gq6bqjSRC2K3I0OJdZt AseAc9Qxaw+fJap2cN5SXgpbRmUdFaWKb2KsaZj4Rxxf3jyrZ/48lMhzjegSnUbC4ZC3 SQmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=bXFKKxb+Sx6/Z/Ex09+yx74N5W9qV9cB9Zy/fDJtQ+A=; b=PKN+dc+9N0TrkUU/P6PnHyS/rrbatWjSAnkmnAzH7u7tFft6c8LbHv1mi9XYLMGvbW Ta+iqUd770Y2hyM10PI/b+Y54cUrgy7WXYrMyx2VSTawYRCw2jtJZm2cGVMEIZDekvmn 1A1PmWIydj501/8TSOanTcg0KrUASrf867cd721NKLb5SdtUc62IAHjHZfgWRmChMYbo LpM3pjHeLA3UW2JeD8yVr6hsdIfyO65Z0VzLM9vAjC7x9lJdW/t0odEM9Td0UM+TGnWu f29spfVqjLx1GwrfpGwEEGpqoVQwHYAOZ6MpnTyxVOnsUn837XQJPGnrsZQMtwk3uqQw VQKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=xV11g1IH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cw10-20020a170906478a00b0078db89b526asi29650045ejc.108.2022.10.24.05.23.41; Mon, 24 Oct 2022 05:24:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=xV11g1IH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233521AbiJXMWl (ORCPT + 99 others); Mon, 24 Oct 2022 08:22:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233233AbiJXMUS (ORCPT ); Mon, 24 Oct 2022 08:20:18 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D6847B7A8; Mon, 24 Oct 2022 04:58:58 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id A678AB811D3; Mon, 24 Oct 2022 11:55:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F3FCEC433C1; Mon, 24 Oct 2022 11:55:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666612510; bh=XGcTzqv5yDKn4JVe+5V7/VB4DHTX2abKHi6H8xwzecI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xV11g1IHhIT3I5AamcPDLg5evsH9lduKAlG8vpHTbsJ+EvtGeCwRnb82ThXt9eBsD vGK22+cr1IJLfRZCYqzcPMcksIoe1DselgbSx9ELV9mJVxDjmuAFc9IRgVqnQRAKob k/1Z6vZvqWCCD3hAUei7NFWOXp/eY2gBMcpKME18= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, ChanWoo Lee , Linus Walleij , Ulf Hansson , Brian Norris Subject: [PATCH 4.19 015/229] mmc: core: Replace with already defined values for readability Date: Mon, 24 Oct 2022 13:28:54 +0200 Message-Id: <20221024112959.634831426@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221024112959.085534368@linuxfoundation.org> References: <20221024112959.085534368@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747571697973632344?= X-GMAIL-MSGID: =?utf-8?q?1747571697973632344?= From: ChanWoo Lee commit e427266460826bea21b70f9b2bb29decfb2c2620 upstream. SD_ROCR_S18A is already defined and is used to check the rocr value, so let's replace with already defined values for readability. Signed-off-by: ChanWoo Lee Reviewed-by: Linus Walleij Link: https://lore.kernel.org/r/20220706004840.24812-1-cw9316.lee@samsung.com Signed-off-by: Ulf Hansson Signed-off-by: Brian Norris Signed-off-by: Greg Kroah-Hartman --- drivers/mmc/core/sd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/mmc/core/sd.c +++ b/drivers/mmc/core/sd.c @@ -787,7 +787,7 @@ try_again: * the CCS bit is set as well. We deliberately deviate from the spec in * regards to this, which allows UHS-I to be supported for SDSC cards. */ - if (!mmc_host_is_spi(host) && rocr && (*rocr & 0x01000000)) { + if (!mmc_host_is_spi(host) && rocr && (*rocr & SD_ROCR_S18A)) { err = mmc_set_uhs_voltage(host, pocr); if (err == -EAGAIN) { retries--;