Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2591719rdb; Fri, 8 Dec 2023 12:40:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IGX+O3xnr4LgVX66Ng6iTURpEQlqXEGLqfnkEtyx7/zboGRLOZgZPnO3sdmwPPMQMr7fmxA X-Received: by 2002:a05:6a21:192:b0:18f:97c:614e with SMTP id le18-20020a056a21019200b0018f097c614emr554213pzb.75.1702068008419; Fri, 08 Dec 2023 12:40:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702068008; cv=none; d=google.com; s=arc-20160816; b=mCWoqf6edOZ08OWc4cAM7s620eHMFpldub2VwWT4ZG3jplT1Q3vek938FMhVgydHBa JJ8ERped2RfbEHBDK0sQOAUYlzQs1mnCafcrcm4MOeSRo5kSMeeH4su50RGWGrLno7WS AO9xJz9B/bMbK4XNP5hfuN7cFTtk7KndeqPrtAZPSbQKWjRYxKOzLwQpNC0zwzsSpaCR af0SzvfCGjv5arcA17ztahqUjyclHXeca9TXIos5CRvjzYtpdvlOzmn0mICCvjBUvXXc r8vI1QEb4y0Q+eKEVk8EyTcvioIV1+3EonAR35lWP8rz3yJ+oCU8hj0/Xb8o7x2YqKHm l9PQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=BZ2jOncrEKw232jrvqkJsjD/GwaaXlY1Y1umyeZKqBI=; fh=4JY4gU3advz+rJObkyV6hrUm28XMrHmQWSsX7JFP4Ro=; b=Nmr06xif5Zw5CURyveeIO2RcwFC2Vyo5s9rh3wDqDJ7jL6hbYW/+Plz3vUcm+1MJbj eBPa3IYbySMZC1HXG/5YMFj9/aDGhACbD5oR6t6WXUxWosmbMBlN31ZPYv6Zyo31oJCB RJ0EbaWFBdpqMjMfqx8piQPVCqn56n/kx+l4biSEnA67rzpleXVPR0wHpVsVCjg1JiAK rFRLhNBq0k3mI0N/6SsS1NBhHJJOeKlllAd+rXEXRVm2kvaGb4OeNGENRDvUYvkTil5r qz1/dbt2+XA1CN7GQKgnBuGBexnbb+Sn1CogcT4Spo4kYD1uAznn4VxVc/uvL4qEA6zH nO9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=gEeD8FPs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id bk8-20020a17090b080800b0028573fb25b9si2127603pjb.135.2023.12.08.12.40.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 12:40:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=gEeD8FPs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id CAFCF805FFC0; Fri, 8 Dec 2023 12:40:05 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230309AbjLHUju (ORCPT + 99 others); Fri, 8 Dec 2023 15:39:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42252 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229572AbjLHUjt (ORCPT ); Fri, 8 Dec 2023 15:39:49 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 12833171E for ; Fri, 8 Dec 2023 12:39:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1702067995; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=BZ2jOncrEKw232jrvqkJsjD/GwaaXlY1Y1umyeZKqBI=; b=gEeD8FPsNnrR0QG/hwuQWxfEOa2yn5XOcuihrT4Wqh5461mqNbhBw7MsSAK/Di7O3di1I8 /hIDIOaMzzem/pbEWm9A7mIKGh5YsEsB4SyFvhCfI3W4513i+YofKtDlnzHvRs4yvcC7rN To9m5FUc1K+Y5L359C9qkDteXaCJ5Bg= Received: from mail-qk1-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-696-giCgkY__ML2QaEo5-V3dLw-1; Fri, 08 Dec 2023 15:39:54 -0500 X-MC-Unique: giCgkY__ML2QaEo5-V3dLw-1 Received: by mail-qk1-f197.google.com with SMTP id af79cd13be357-77f5a5dde50so44345385a.1 for ; Fri, 08 Dec 2023 12:39:54 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702067993; x=1702672793; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=BZ2jOncrEKw232jrvqkJsjD/GwaaXlY1Y1umyeZKqBI=; b=Z/q4alTl5uqoyu3mI/SyhNexXeBfLPHpz3ZQB1rPSi+m2gc1MKSi/V/Zsxx73r0RzA 44jOq+XKRugN5qWQj9Ys6x2q6eLHQFQmApVOLbSFqHMj+ivc7fdLUrRndAUE0Hup9oT9 klmnwNenij1GWHqDQDgROBgu1iS8m2nryb8i6Hrx6+ikXsnV/Q3SW23TeXlfUj2LOp1/ PwKgPPD0MiAu2Gk7tiiwwzuMGIXX9dMwpoi7shbAjmg/sTxLDDBq6s+6hEmeWUoYOnVs vL7GIMlplPNRxSpgDgxZz9BWgWCOD/G6afjNGPNwU3AMOp7fkffks84ZGbQJknLTEI/i e9vQ== X-Gm-Message-State: AOJu0YyOU3h3dO2Zrk7YfbsusTi3pdxZT98rMuy6+BBhEpMC/RaEgaWp LgR6yQeNaQwYoI2H/UO/g1ePOHkogtUOSP4EQp1yC0zvn/xJ9ooAJmXlnc3tS7/9akSR9DvWVXi vSTV6+h0WGFtJ/WalB1Ivy51h X-Received: by 2002:a05:620a:4628:b0:77f:3b42:d9ce with SMTP id br40-20020a05620a462800b0077f3b42d9cemr760945qkb.85.1702067993659; Fri, 08 Dec 2023 12:39:53 -0800 (PST) X-Received: by 2002:a05:620a:4628:b0:77f:3b42:d9ce with SMTP id br40-20020a05620a462800b0077f3b42d9cemr760936qkb.85.1702067993423; Fri, 08 Dec 2023 12:39:53 -0800 (PST) Received: from fedora ([2600:1700:1ff0:d0e0::47]) by smtp.gmail.com with ESMTPSA id o1-20020a05620a228100b00775bb02893esm941499qkh.96.2023.12.08.12.39.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 12:39:52 -0800 (PST) Date: Fri, 8 Dec 2023 14:39:50 -0600 From: Andrew Halaney To: Manivannan Sadhasivam Cc: martin.petersen@oracle.com, jejb@linux.ibm.com, andersson@kernel.org, konrad.dybcio@linaro.org, linux-arm-msm@vger.kernel.org, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, quic_cang@quicinc.com, quic_nitirawa@quicinc.com Subject: Re: [PATCH v2 00/17] scsi: ufs: qcom: Code cleanups Message-ID: References: <20231208065902.11006-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231208065902.11006-1-manivannan.sadhasivam@linaro.org> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Fri, 08 Dec 2023 12:40:06 -0800 (PST) On Fri, Dec 08, 2023 at 12:28:45PM +0530, Manivannan Sadhasivam wrote: > Hello, > > This series has code some cleanups to the Qcom UFS driver. No functional > change. In this version, I've removed code supporting legacy controllers > ver < 2.0, as the respective platforms were never supported in upstream. > > Tested on: RB5 development board based on Qcom SM8250 SoC. > > - Mani > > Changes in v2: > > * Collected review tags > * Fixed the comments from Andrew > * Added a few more patches, most notably one removing the code for old > controllers (ver < v2.0) > I took this for a spin on sa8775p-ride when developing another patch today with no issues. Certainly doesn't hit all the cases here, but: Tested-by: Andrew Halaney # sa8775p-ride > Manivannan Sadhasivam (17): > scsi: ufs: qcom: Use clk_bulk APIs for managing lane clocks > scsi: ufs: qcom: Fix the return value of ufs_qcom_ice_program_key() > scsi: ufs: qcom: Fix the return value when > platform_get_resource_byname() fails > scsi: ufs: qcom: Remove superfluous variable assignments > scsi: ufs: qcom: Remove the warning message when core_reset is not > available > scsi: ufs: qcom: Export ufshcd_{enable/disable}_irq helpers and make > use of them > scsi: ufs: qcom: Fail ufs_qcom_power_up_sequence() when core_reset > fails > scsi: ufs: qcom: Check the return value of > ufs_qcom_power_up_sequence() > scsi: ufs: qcom: Remove redundant error print for devm_kzalloc() > failure > scsi: ufs: qcom: Use dev_err_probe() to simplify error handling of > devm_gpiod_get_optional() > scsi: ufs: qcom: Remove unused ufs_qcom_hosts struct array > scsi: ufs: qcom: Sort includes alphabetically > scsi: ufs: qcom: Initialize cycles_in_1us variable in > ufs_qcom_set_core_clk_ctrl() > scsi: ufs: qcom: Simplify ufs_qcom_{assert/deassert}_reset > scsi: ufs: qcom: Remove support for host controllers older than v2.0 > scsi: ufs: qcom: Use ufshcd_rmwl() where applicable > scsi: ufs: qcom: Remove unused definitions > > drivers/ufs/core/ufshcd.c | 6 +- > drivers/ufs/host/ufs-qcom.c | 377 +++++------------------------------- > drivers/ufs/host/ufs-qcom.h | 52 +---- > include/ufs/ufshcd.h | 2 + > 4 files changed, 66 insertions(+), 371 deletions(-) > > -- > 2.25.1 >