Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp432625rwd; Wed, 7 Jun 2023 01:50:57 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5WPL85Xptjw4J1FTfwnT6YZEoqDlgFaDpG6sC0kqHBZimfyJCcNH8iJoGxQGKY9+b5afXN X-Received: by 2002:a05:6358:9d92:b0:129:c26d:e5ee with SMTP id d18-20020a0563589d9200b00129c26de5eemr2839011rwo.7.1686127857300; Wed, 07 Jun 2023 01:50:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686127857; cv=none; d=google.com; s=arc-20160816; b=YspkrqQCMsGdA56TWY9c+SfzSIZDSHX0DZsKSNVCNZobGqQTPXC4GKHSUEzUn3TqiK lyL0wnY3gAx0RbMNtKVPw30QI3jsFJazXUi+TxaoYcDBwKwhUV7BsNX6Eam1sREDcSPN m7f/DYSiVcCFtqVJ/BUwiq+2wbYbznDi7pr+IJcX2I81z8juZ3oOWVSTW6RHxpKCbXZk 6K+IowVluGeypi9M8hnZOwfDZ6Y9lBO8whg6AENTC5SECe/yr53zDyCyZ0AIWprLqjoI vFJtpNQ5j8/yv3GffYnAEAynCY73JCRV7HP5vOiIzsfKr249NpIy4+wUHJ7m5iQN5INx mTnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:to:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=LVvlvoB02nvnsnKJNEtRpAZOz6oiby60WKtoUe7P+GY=; b=p+cYFN4VGAFi7YexQt3Ko3i6zJ+ghAdyRgCmhSfOkhdULFnL5JfJV87Y8NTinOb3ht jKP0kprSF0o6Ichr2zrcewvjmOxD3jok3DdISMQl+QxuwaqjBKXJGSqpL++xMWIjEUJK XS7XlfHhK/qXRZU2dBtfkHnuBOyn3gssImeVxW2MFCsCBD0F7vdplpB+MJFxsQMd5H/J nBSpigVnFmD8i5I7xSpSwX5QsU9EFI1FUYyLcR+gVg1EBc+nzTewZGiqJSapYLLTJqcX 2AaYTSmndvjQ5qhdzY8id+jopvmuM9DMHkmdbNAKwrN5f9PlM1QxPaRwESSVrXU3vbLN xBKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=OymjuXBx; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bv67-20020a632e46000000b00524ca1b89f0si8518327pgb.596.2023.06.07.01.50.34; Wed, 07 Jun 2023 01:50:57 -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=@gmail.com header.s=20221208 header.b=OymjuXBx; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239284AbjFGImI (ORCPT + 99 others); Wed, 7 Jun 2023 04:42:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239125AbjFGImC (ORCPT ); Wed, 7 Jun 2023 04:42:02 -0400 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6264C1721; Wed, 7 Jun 2023 01:41:57 -0700 (PDT) Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-9745d99cfccso985665766b.1; Wed, 07 Jun 2023 01:41:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686127316; x=1688719316; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id:from :to:cc:subject:date:message-id:reply-to; bh=LVvlvoB02nvnsnKJNEtRpAZOz6oiby60WKtoUe7P+GY=; b=OymjuXBxiDerqwX3JfzNWdavhSO66hb6xPOM7aTrHoDtyvTeMGIjGNXJgc/zIGD33g eYqzWP7xsgKxyYG1GfcRNFJOf+GIf+DFQ018pqJS3qIerqbN1w9VnvbeyWs4prbWw4/E SduzQmsPqRBBMt/EgwRGfaVHLoFqvJkmO2G5XQmygRQlWGQG6tSl0/ORdF5DcZ3b0CDv x3AUpfipt/L6Jlu/RRsiN9RZxRT+SoecO1rHLbT7bK8yVuTlFICYI2feiT7GjTDUkAHh 4FfBm8dEuDoPb7MqApaAsMWr0D7ivwCLjTDVegufSba7A6JrgNVFqqBdBOku0hwuHEqs PiZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686127316; x=1688719316; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=LVvlvoB02nvnsnKJNEtRpAZOz6oiby60WKtoUe7P+GY=; b=Pk/bda60eS816W/Cx/r/mPI7+hEid6ykrqJKuYC7/MvaEq2wCJez90ZJwOB6B+UxHZ PMS5eUXoe6ZEpZ/OIfiecISQXGioMGUQ2iuOMRAZ5YOYTpw7O1cV9ulNfjay9mRHWTvK vBEoUzlNnFavnMNYc632xFYJ+f+y2iz0pXjWgtwuHyH6Mww0lLAz2MwXPdZljyHnwYPa wfG6FERKVKwQ1so8Pz8PVoz0AShYBr/EZQ0uiSF8hJXmX9ehh2M+JB5u8Tw5HD3XwOt9 AHQBmSDGUnWgB1DF1iLsOIX0QNVilq3pucFJby7bPeP5LZmrP92ybUU6HTk+7NWkOYnU bjxw== X-Gm-Message-State: AC+VfDwK31ijb3ssa3/a3suwf5coA8N1Ao9PQtqRM/1m9foJdloL0P/s pl0HFzpnYsyHe9ULL9/KUEU= X-Received: by 2002:a17:907:608c:b0:953:517a:8f1a with SMTP id ht12-20020a170907608c00b00953517a8f1amr5154659ejc.58.1686127315448; Wed, 07 Jun 2023 01:41:55 -0700 (PDT) Received: from ?IPV6:2003:c5:871a:eb:baf3:f2aa:5a58:4b8a? (p200300c5871a00ebbaf3f2aa5a584b8a.dip0.t-ipconnect.de. [2003:c5:871a:eb:baf3:f2aa:5a58:4b8a]) by smtp.gmail.com with ESMTPSA id lx5-20020a170906af0500b00965c6c63ea3sm6664908ejb.35.2023.06.07.01.41.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 07 Jun 2023 01:41:55 -0700 (PDT) Message-ID: Date: Wed, 7 Jun 2023 10:41:53 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH v2] ufs: core: Combine ufshcd_mq_poll_cqe functions To: Stanley Chu , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, martin.petersen@oracle.com, avri.altman@wdc.com, alim.akhtar@samsung.com, jejb@linux.ibm.com, bvanassche@acm.org References: <20230601225048.12228-1-stanley.chu@mediatek.com> Content-Language: en-US From: Bean Huo In-Reply-To: <20230601225048.12228-1-stanley.chu@mediatek.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On 02.06.23 12:50 AM, Stanley Chu wrote: > Currently, ufshcd_mcq_poll_cqe_nolock() is only called by > ufshcd_mcq_poll_cqe_lock() with the addition of a spinlock wrapper > for ufshcd_mcq_poll_cqe_nolock(). Combining these two functions > into one would result in cleaner code. > > Reviewed-by: Bao D. Nguyen > Signed-off-by: Stanley Chu Acked-by: Bean Huo