Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2160555rdb; Thu, 7 Dec 2023 22:59:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IEEKurkVpyEOlNtwp34WBr0QQY6XdZe5/oYTho/G2CdUBMOINEqRi+2Tsep5fpXDqJ2JBrm X-Received: by 2002:a05:6808:2110:b0:3b9:d030:d8f7 with SMTP id r16-20020a056808211000b003b9d030d8f7mr4009378oiw.51.1702018779753; Thu, 07 Dec 2023 22:59:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702018779; cv=none; d=google.com; s=arc-20160816; b=pdGryKKQOLqjduKDdy+VGLsCneTmSq8WT9ZboIglFr0FqY51rWmQNkxeoteUxmrZeL pR3vstts2Sru3sl+jllXXGu5F1FRH+7zaq8aeNYyFP/FJ8GYwTIoGoPrN1D7E2Nig6wp 9RhvBEox4kqdPli+cTCqPkhzZcCMvXQz/YWNSEsnxlvm0/WQXsOOeVQzWsAUcWvr7MZy v1sjrcAG5webK+hrEwL323EH7bv6A0GuQ+F+6JjiiUAgkDP1p8zV8aaZHcLPnCO0oyPa vg+7j44/5Tpc96mh3nJ8z73oOXe3l+DLXn+I6vubZjDRJDZJGaMlOQZS70TnvSm+efr1 9VYA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=CQ/+btG3R4BylCT3sRnAP96/2um/WTuuUn1kNLXJGP8=; fh=3M/8bTCRB16Lsc02X7bSCpILCqUt5UU6Z9lIcVlF+qQ=; b=IFLlYQCuvjwLvQz6cDApYO/SDoXt7h0lJO7pS4nrBINheKofkjLSQ93yV4Mlm+QuVp zKJprWyXNe5jpN7QUYL0jP7dCN5JRK2dS/Q96rlB4pW5bR13KhzL7I8ZjjbZ6IEoOnmc copBsqpZo8YG8RY7d2TMBkbRMJprfEiX2s2ZxlnAN+N/gSvaKdBZ0GiMs+sO6uIJLY9Y EcszQmVamN0zp0ybsowb3m9Sku2cQ43fd7rqm5ZOB2AtIvji5pIyz/5IqaC6SABr/jJq Lk3vGokfH9bb3/xVmDfCGr410fADeLlGZ5uhqVzbGZrLE21qOFulWzicX+AUoeNSfY1S G3DA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=u3E7tP5s; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id b6-20020a6541c6000000b0056fbf85c743si988127pgq.790.2023.12.07.22.59.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 22:59:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=u3E7tP5s; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 71AD881EE3BE; Thu, 7 Dec 2023 22:59:36 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233142AbjLHG7R (ORCPT + 99 others); Fri, 8 Dec 2023 01:59:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233199AbjLHG7N (ORCPT ); Fri, 8 Dec 2023 01:59:13 -0500 Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F7B41727 for ; Thu, 7 Dec 2023 22:59:15 -0800 (PST) Received: by mail-pl1-x632.google.com with SMTP id d9443c01a7336-1d045097b4cso13569895ad.0 for ; Thu, 07 Dec 2023 22:59:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702018755; x=1702623555; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=CQ/+btG3R4BylCT3sRnAP96/2um/WTuuUn1kNLXJGP8=; b=u3E7tP5sJooWyyGLKqgrfdmhGSU1qzqu17kBjFp70pFSXTTE/ZVJLGjaynCx0i0piU 0ywuDpc86uuPFsxfeE98f2s9UGLHQkghauq/rUzn5UTTpNZi2D13w/wBIxU8b+EW0sQB bR6LWm02o9Jz55dKBegLjhttLtMU6kajytterlPVAtaj6br/SekiCE55oXwEBO3GEkUs vSzaOlF1IIM8m0HeT3y5bHdf5t1h+LnTz8SP1qi/EFmW4LTGwd1/X7wekLomJN39mfGX kzATlYfMJ5gUyp8skuLqxBg4IrUv/FYsreE6EfPQH1Kp0lpB2USKrRvj5scWqmrt4v4z veyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702018755; x=1702623555; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=CQ/+btG3R4BylCT3sRnAP96/2um/WTuuUn1kNLXJGP8=; b=UbC+NW2gEIUuEZHAo6gJJ1bTq6MyIWcflqI2PsC9BkFDdd7H9UKvbjCNAmERVj/kdl h7iBr3hkiAkBIQX18u/ZomazB6074hA8IGUZCquLZUZIg8vxHlzfQX+lEPY4QYAuP6OA uCaRkBlad6jcTtcV8woYlPW81O84KSET7rTB2aSpnPHII59na25F1yr5fau0p46deIs2 WlZ8VQQW8u+XehKUaJA+8GfFf5txWvT2gGV8+6/RDwQf6JbF3htHPl1oaKvKIDck7nuw xBixM1e9dhYCeBluaHzhbz0qq4hCJ3I8stQ9hx/kHVpm8ySHcO0OiRjBmt26wcPTnwMy uOrQ== X-Gm-Message-State: AOJu0YzuCX/6NBf8n6FgGhtq4yYOVqIUUTfN4qyECjMzFObEyv/uUS3R zDER4wF7myHnCDaowJZs3AnX X-Received: by 2002:a17:902:ecca:b0:1d0:7b65:9f8a with SMTP id a10-20020a170902ecca00b001d07b659f8amr3282715plh.51.1702018754908; Thu, 07 Dec 2023 22:59:14 -0800 (PST) Received: from localhost.localdomain ([117.216.123.142]) by smtp.gmail.com with ESMTPSA id n8-20020a170902e54800b001b03f208323sm934263plf.64.2023.12.07.22.59.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 22:59:14 -0800 (PST) From: Manivannan Sadhasivam To: martin.petersen@oracle.com, jejb@linux.ibm.com Cc: 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, ahalaney@redhat.com, quic_nitirawa@quicinc.com, Manivannan Sadhasivam Subject: [PATCH v2 00/17] scsi: ufs: qcom: Code cleanups Date: Fri, 8 Dec 2023 12:28:45 +0530 Message-Id: <20231208065902.11006-1-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=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 pete.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 (pete.vger.email [0.0.0.0]); Thu, 07 Dec 2023 22:59:37 -0800 (PST) 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) 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