Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp2313379imi; Sun, 24 Jul 2022 15:21:47 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sAFR8lT2NEcCLYl9fxA8kxWP3f01GjDQDM5C9YsMwhAnucsyI+CJ/ms8BAnNJfFa4PT5di X-Received: by 2002:a17:903:11cc:b0:168:eae:da4a with SMTP id q12-20020a17090311cc00b001680eaeda4amr9739623plh.21.1658701307413; Sun, 24 Jul 2022 15:21:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658701307; cv=none; d=google.com; s=arc-20160816; b=SO62Ls0gWv/4Sb1QBQzDAbcRE1Xryp8P5q9lLL8WOgN6EJ8ik4Fqyd/m/G2Bw1iQDL ssntdi/I3mcfrLwS6f+8uqZvXSYidMFmjqr+2zcs567OB8RfuFOc/T/ct0usQn852up6 o6XB/q/soegunOxwjTrcJKHOceZ3+YtRC6+EWZULpwkYgeXKWNk5uiDlOPvVaDTeFIza m5efP/D3vt2+xwZNgno7ngnm1z2caoAR/bBr8YiWygQPyDye7x438239lMKpjCBIlkVn i/FcHH6yznPwNne2GNxC7qzkF4+qsLgN7ZZmjbQHe13LP2UKiU7DdRXakSfEweGxWKlN LTNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=vMHWJT6Caga6Iqszblh0kSChJockxSLzcxtLj1yqRmQ=; b=Gn/pOfRRoGSa3Upfd7n5/YnBru8JvsOpxsHUtVmzC4adxPOzqvgHsu4Gk98InqS5zb FCsOacYvfvMKuQgfTnXk77jMkuziG9QtMtNuzrPzeVSAAvu5mbbybHiaPE/ooMEsczOw zozSS7H0KyPj1pZVVyWrTOOMvQStsPzE5l3e4hzpUEEEFzvGyGv+iQM0V9ntjRS/4iy1 S5H+4y7EwZc5MTEJ7nr/Ipwh9xYAI/FtXlzOUtNeu01tAS3UWQ2Hg4IhRYK2ySTGn5n/ xuMTGjc94mo16UgUWLzzqJkV/k8UT4nr9myorAVvQD+RXPEVvrn50MhcEvlVfvw0N4FU tsFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=fzyPDXo0; 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 f187-20020a6251c4000000b005281e5606b2si12293794pfb.32.2022.07.24.15.21.11; Sun, 24 Jul 2022 15:21:47 -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=20210112 header.b=fzyPDXo0; 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 S231536AbiGXVy4 (ORCPT + 99 others); Sun, 24 Jul 2022 17:54:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229451AbiGXVyz (ORCPT ); Sun, 24 Jul 2022 17:54:55 -0400 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9DDABCE26; Sun, 24 Jul 2022 14:54:54 -0700 (PDT) Received: by mail-ed1-x535.google.com with SMTP id t3so11853973edd.0; Sun, 24 Jul 2022 14:54:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:subject:from:to:cc:date:in-reply-to:references :content-transfer-encoding:user-agent:mime-version; bh=vMHWJT6Caga6Iqszblh0kSChJockxSLzcxtLj1yqRmQ=; b=fzyPDXo0XRV37BfmeMt20Jq2W+AvWrq66JJ/rLUHuFPr+t+N/HswC9UvrHZhtdrUy3 mGfTbw31Kndh81FsuZrun4ojb5r39a5pjr26fxYStcHKnyU+Ba2oB7ocvo9tGHMnonGC HWfo0ExEUken17bEt8vrpYWhUENzb8N70MWlOTHDTRhyOSk/X4MZPI+IDtzxb+YAAXUx EEW9JFsunM3zQmWPViEYLqTQMm5ryPlzR0aAsGvo47WNBaUBe69oY40Zi3BvagqmrWAO t6dCIVJpJI9PdFXvWe+96Uz7b/PqSNDr3BGLcYjZC3hGOQSeq89VAc8YXInzI8g7M47T gflg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:content-transfer-encoding:user-agent:mime-version; bh=vMHWJT6Caga6Iqszblh0kSChJockxSLzcxtLj1yqRmQ=; b=diU9ZuaMBcShfjWGgMaqGWk97RRehW9lGLyK6/siWqVeZqAMrj+FO/CrmVXWqIumc/ 0MK8FMEUmbTc8QAyHlz7QoEstgOqWt8e8XgvgZI/E2DZApkL6MlWQfBGrUM5GZECHX0C Z5rw2E252koBe5tUMMIvgpoJ6f824KGsjL5cXzj6ZJO7yvtETXEHt/7JF6v350CmbTPk rte6VuE8FFCMATtbZwue+MwnhARXdtcOE+sTVziY1v2YiaNkGBGFG6Q+Ae9fRmnQnI4+ cEMeMfhkB8Uk924DX9lcaagjkqnZ/dMTqXsdHm7AgFSc5TyKLNqIOPoHTe1U9QjPsfEE DV3g== X-Gm-Message-State: AJIora/B+3rrIrBF+5kwb0FaTGr7Vv3n1Mq2XiYyIGSkK4htuIXSwpXN AK/IKZvBEsC/lhJ/mLa19eU= X-Received: by 2002:a05:6402:1772:b0:43b:b794:87f8 with SMTP id da18-20020a056402177200b0043bb79487f8mr10364443edb.237.1658699693084; Sun, 24 Jul 2022 14:54:53 -0700 (PDT) Received: from [192.168.3.2] (p4fd59e5d.dip0.t-ipconnect.de. [79.213.158.93]) by smtp.googlemail.com with ESMTPSA id a6-20020a056402168600b0043bdc47803csm3466372edv.30.2022.07.24.14.54.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Jul 2022 14:54:52 -0700 (PDT) Message-ID: <9f4c233f8f6f9288b17859efab0cb22df2452777.camel@gmail.com> Subject: Re: [PATCH 1/2] scsi: ufs: Add Multi-Circular Queue support From: Bean Huo To: Can Guo , bvanassche@acm.org, stanley.chu@mediatek.com, adrian.hunter@intel.com, alim.akhtar@samsung.com, avri.altman@wdc.com, beanhuo@micron.com, quic_asutoshd@quicinc.com, quic_nguyenb@quicinc.com, quic_ziqichen@quicinc.com, linux-scsi@vger.kernel.org, kernel-team@android.com Cc: "James E.J. Bottomley" , "Martin K. Petersen" , Daejun Park , Jinyoung Choi , Kiwoong Kim , open list Date: Sun, 24 Jul 2022 23:54:51 +0200 In-Reply-To: <1658214120-22772-2-git-send-email-quic_cang@quicinc.com> References: <1658214120-22772-1-git-send-email-quic_cang@quicinc.com> <1658214120-22772-2-git-send-email-quic_cang@quicinc.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: base64 User-Agent: Evolution 3.44.1-0ubuntu1 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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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