From patchwork Wed Oct 30 10:27:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 13856262 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6DA3AD5CC8C for ; Wed, 30 Oct 2024 10:37:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=XbYElkal5d6+0YzyWk0lUEIt8HVlxkiQ8cX9u9pIHz4=; b=qUTMU9xAP6NF8F1VJ9T2x3KvSv zISQeHNYaJ87UT9/yPXQh3jANIb3IDi7NW+agflH7BRUH6NXJHB9I/KgAIeU/PLRDyY9HDG/uFMOK 7lXPahf/0oiQzRN4ad+wzpFTPdrxMRsNZrgN/nB4BKV6Y0gaxwYmcS7SvWpgmX6fJHt/9TdJxCjq5 m+5/fdrMukLUg98N0g2YE+jTOzBDP1Nqo8o3qPw4WULtJdxBdy0YmcM4r+J0uRyhIzV5bjoTey7qQ jtSx/gI1rialiHUoQLWRTItuWgI7fpjey+3KdDaFyvzmCdfuMvJwI4vQ7TNxb23MPgegVcCYYBuXR ZyYQcIqw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t664N-0000000HZr3-36kr; Wed, 30 Oct 2024 10:36:55 +0000 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t65v7-0000000HY5r-0zJ3 for linux-arm-kernel@lists.infradead.org; Wed, 30 Oct 2024 10:27:23 +0000 Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-4315df7b43fso63209205e9.0 for ; Wed, 30 Oct 2024 03:27:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1730284039; x=1730888839; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=XbYElkal5d6+0YzyWk0lUEIt8HVlxkiQ8cX9u9pIHz4=; b=E71DSD3X0Okevp3ldKFBX4XGJWMAaFgTB1ND+Kfv8O2o8tILAgOvO9XyEvQJzsb9pU 0RsOKIgMJoyhoqXLDp/M8o8SUdFKqM7pVl0H345Mwk0wY5QmZYfEc+6RV9hFAev+clKU 22k0+rMwKgqB7jpic7eCD3x+O0SGJorb3HPWiam0EfAk/O48N0ks361l820pNyDY3tia SBqf/r97DIBS6+kPtVtSSpRFMvzyQzVrQmz+pleKMCbJndMxLMn4wM+dS6XcpXMuvAJE 6DmabSPi5MOE1FiQ60VMM81YAebjG0iFZcpIoXJip5/C8a3gCh+8le1owqD2LQlCzNYM oPGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730284039; x=1730888839; 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=XbYElkal5d6+0YzyWk0lUEIt8HVlxkiQ8cX9u9pIHz4=; b=nMYeFD6mm+jZqCR1rC2PsZ8dk1m5j2RffzWcA+mZV2C0XcTH9kc8ifuDEZWRmhgVaq FpP/Lz9PRM/r3BOXJMiX5g7b20KPdtLTxVrSNYs4/uOoVD+zg427mi+Y/GPGd9kNSe5G WHRwKvcCwBBDqp+cNSdR2GiJNvFtBdXRu9Mod/1fxDGNKmjRQU+DfBybRo0NRdch2yJO tC49MX04NQPhKvJBXE9oB2S4KasuzBr9ug3hysQjbCvEBNS72p5zhGBcQN710QG6j8gv turMvSbREMHrxidPp2fL2B707n9oJxbDQF6Ngf/nMUWBVdYyOh07NiEnk3eaEU8Z+pl9 3FoQ== X-Forwarded-Encrypted: i=1; AJvYcCWn4kRBA4WQeqG8OOvykefD1T6xStuVF8cgYKUMcr1exkNM3RZsrlTj96q5GEYJU5+ibpn3qv6GWFVgN7wVW7wt@lists.infradead.org X-Gm-Message-State: AOJu0Yzy5rm4f5xeQejmlAtxRFtj790F55QO/K5nb9ZEks1gHa34selX 8wzodGCMSs/ej+jXpt0mmiILgAhBPM4dkhMOzxdnwin55OmDvD/fSi5011ZZ1xs= X-Google-Smtp-Source: AGHT+IEBXlayGHv2GLllRn++oS/33OaG/rbc8trQcavkqXJ8lRHX4Tn/XZiU8Jv9/cKndo3pJPqlbA== X-Received: by 2002:a05:600c:1390:b0:431:5d4f:73a3 with SMTP id 5b1f17b1804b1-4319acb226amr104551115e9.18.1730284039298; Wed, 30 Oct 2024 03:27:19 -0700 (PDT) Received: from ta2.c.googlers.com.com (32.134.38.34.bc.googleusercontent.com. [34.38.134.32]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-431bd947b2bsm17074345e9.25.2024.10.30.03.27.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Oct 2024 03:27:18 -0700 (PDT) From: Tudor Ambarus To: alim.akhtar@samsung.com, James.Bottomley@HansenPartnership.com, martin.petersen@oracle.com Cc: krzk@kernel.org, linux-scsi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, andre.draszik@linaro.org, kernel-team@android.com, willmcvicker@google.com, Tudor Ambarus Subject: [PATCH 1/2] scsi: ufs: exynos: remove empty drv_init method Date: Wed, 30 Oct 2024 10:27:14 +0000 Message-ID: <20241030102715.3312308-1-tudor.ambarus@linaro.org> X-Mailer: git-send-email 2.47.0.199.ga7371fff76-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241030_032721_329725_DA182880 X-CRM114-Status: UNSURE ( 9.64 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Remove empty method. When the method is not set, the call is not made, saving a few cycles. Signed-off-by: Tudor Ambarus --- drivers/ufs/host/ufs-exynos.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/ufs/host/ufs-exynos.c b/drivers/ufs/host/ufs-exynos.c index 9ec318ef52bf..db89ebe48bcd 100644 --- a/drivers/ufs/host/ufs-exynos.c +++ b/drivers/ufs/host/ufs-exynos.c @@ -198,11 +198,6 @@ static inline void exynos_ufs_ungate_clks(struct exynos_ufs *ufs) exynos_ufs_ctrl_clkstop(ufs, false); } -static int exynos7_ufs_drv_init(struct device *dev, struct exynos_ufs *ufs) -{ - return 0; -} - static int exynosauto_ufs_drv_init(struct device *dev, struct exynos_ufs *ufs) { struct exynos_ufs_uic_attr *attr = ufs->drv_data->uic_attr; @@ -2036,7 +2031,6 @@ static const struct exynos_ufs_drv_data exynos_ufs_drvs = { EXYNOS_UFS_OPT_BROKEN_RX_SEL_IDX | EXYNOS_UFS_OPT_SKIP_CONNECTION_ESTAB | EXYNOS_UFS_OPT_USE_SW_HIBERN8_TIMER, - .drv_init = exynos7_ufs_drv_init, .pre_link = exynos7_ufs_pre_link, .post_link = exynos7_ufs_post_link, .pre_pwr_change = exynos7_ufs_pre_pwr_change, From patchwork Wed Oct 30 10:27:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 13856270 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DC716D5CC8A for ; Wed, 30 Oct 2024 10:38:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Xa7O9twJ6bmDbN5DQRcWJq8Kwm2U8nXjdv5M+G4ksMQ=; b=KWadJyL270dshO+FQYKYXPJUp1 AQF3ybTo0H8UXIIz/Gt/tfsu/hB0hsYW1T6Pol932TXT4fgXcfCQtLh9saUxCVCpLXEzSh6VVq/z5 jWhq+OIBm0KCHZVyTr1WvZtXO2qHfPWUP5a5+QzUh5l0/1a1oRJz+qdXw0iHzvvfR5PLJ6Lm2wZUZ HRXjBrBczcjYDLmNwHK2gkhbsNziQvz5/Y63bpCQB8h/ZcX0Pc/rXj/7D1b3bqR/R4nzc0l0OWFVH Z3a27pwoRXElv/mCWrWTVQHIC+Nf4sracQiRd/arMQbAOHa8jJTzFiZFcY42u7ftBVTMqfIaqCee9 LtyPuFIw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t665z-0000000HaAG-1bhq; Wed, 30 Oct 2024 10:38:35 +0000 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t65v8-0000000HY64-1RPh for linux-arm-kernel@lists.infradead.org; Wed, 30 Oct 2024 10:27:23 +0000 Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-4314c4cb752so61798115e9.2 for ; Wed, 30 Oct 2024 03:27:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1730284040; x=1730888840; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Xa7O9twJ6bmDbN5DQRcWJq8Kwm2U8nXjdv5M+G4ksMQ=; b=A1ebXheQSaBtwold+Wn1g/jHnT/4OMqENPTFsI+q6grac131Z90KSqREqoh4i8c4pB aHc1ehLt08Jd8a4K7MNtT2sQrz5Uc9mShW0T+F5rG7sQN8HWf4WWRn77uwG5AOjQVdkn t0Ntx2zS9vGzWycg2p+sLCHjzSGhsgwVMUebHl01ClEWRkBTXguzaaFA+T4+7/KBxgO4 JIwKhUySMg7wGD87stFbRZwGpw1lIz09QFK3cd+OwYuklK0TkZQhonTY4/szb4iO15fj dR1i9tVervcrGENi0uUIbNDU+MdB+tPhjaWyrW8LQuvxYFiE1A9I+5QaeJeq/xjPj2/A KZ+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730284040; x=1730888840; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Xa7O9twJ6bmDbN5DQRcWJq8Kwm2U8nXjdv5M+G4ksMQ=; b=LSZk0xSKJoV52iqDlW7c5KeJOmIGdesBsQvfvaprFYJ13IAIVGPvX8d+ajul6n3wO3 Da2nEU0XUnbKQcdzKmtVnUGbbgvp18r3MOS1HAr3E4mv1quZCugTBIkLWcCwxOvDAy/w pr16LR/5ftX0lYbm4WZkr7i77fUEqB5ih8YNFvnp8mtJzMOQO7S7fkVKrFhZSgXgp2Cn BPCIzpl5CVGujzuDpllDRtxgmuIJJLiZA5TYPQ8aky+AwOdbp52QCqZkpi+YhYX92llQ +/frlgDMLcS68dhyw507lUcuOqHe7rRmLGLwJoeBRU94itL33oUM+a1pz38ib7eXDQnn 7lVA== X-Forwarded-Encrypted: i=1; AJvYcCUuOtc9OWWF5Qywoedrt8IUljPfZgXkh3QrmxtNXS1FFRxPiio/nYHPo8bTNcQRtNsIlGxlr4IStxWvS6PvpHAN@lists.infradead.org X-Gm-Message-State: AOJu0YwzEq/FwJrhYyvkt8ioVVUvX1xdYoGtZbOvE9w3DgIsCE5qtJ3R viuhO0G5lLU8risFuctONdS435xM+OexbwJMPN/+pvDB6M9b3kKKds5VIug8Rj4= X-Google-Smtp-Source: AGHT+IH3P/SUi2QfbJPyZVVflVQvstXkhGR0+ne23A7qXQP4p7DSlsWKQ60Mu7VBfsVT8CMLgRehCg== X-Received: by 2002:a7b:c354:0:b0:431:7c78:b885 with SMTP id 5b1f17b1804b1-431aa80f822mr75969765e9.4.1730284040266; Wed, 30 Oct 2024 03:27:20 -0700 (PDT) Received: from ta2.c.googlers.com.com (32.134.38.34.bc.googleusercontent.com. [34.38.134.32]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-431bd947b2bsm17074345e9.25.2024.10.30.03.27.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Oct 2024 03:27:19 -0700 (PDT) From: Tudor Ambarus To: alim.akhtar@samsung.com, James.Bottomley@HansenPartnership.com, martin.petersen@oracle.com Cc: krzk@kernel.org, linux-scsi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, andre.draszik@linaro.org, kernel-team@android.com, willmcvicker@google.com, Tudor Ambarus Subject: [PATCH 2/2] scsi: ufs: exynos: remove superfluous function parameter Date: Wed, 30 Oct 2024 10:27:15 +0000 Message-ID: <20241030102715.3312308-2-tudor.ambarus@linaro.org> X-Mailer: git-send-email 2.47.0.199.ga7371fff76-goog In-Reply-To: <20241030102715.3312308-1-tudor.ambarus@linaro.org> References: <20241030102715.3312308-1-tudor.ambarus@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241030_032722_415670_4FABA4EE X-CRM114-Status: GOOD ( 13.10 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The pointer to device can be obtained from ufs->hba->dev, remove superfluous function parameter. Signed-off-by: Tudor Ambarus --- drivers/ufs/host/ufs-exynos.c | 4 ++-- drivers/ufs/host/ufs-exynos.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/ufs/host/ufs-exynos.c b/drivers/ufs/host/ufs-exynos.c index db89ebe48bcd..7e381ab1011d 100644 --- a/drivers/ufs/host/ufs-exynos.c +++ b/drivers/ufs/host/ufs-exynos.c @@ -198,7 +198,7 @@ static inline void exynos_ufs_ungate_clks(struct exynos_ufs *ufs) exynos_ufs_ctrl_clkstop(ufs, false); } -static int exynosauto_ufs_drv_init(struct device *dev, struct exynos_ufs *ufs) +static int exynosauto_ufs_drv_init(struct exynos_ufs *ufs) { struct exynos_ufs_uic_attr *attr = ufs->drv_data->uic_attr; @@ -1424,7 +1424,7 @@ static int exynos_ufs_init(struct ufs_hba *hba) exynos_ufs_fmp_init(hba, ufs); if (ufs->drv_data->drv_init) { - ret = ufs->drv_data->drv_init(dev, ufs); + ret = ufs->drv_data->drv_init(ufs); if (ret) { dev_err(dev, "failed to init drv-data\n"); goto out; diff --git a/drivers/ufs/host/ufs-exynos.h b/drivers/ufs/host/ufs-exynos.h index 1646c4a9bb08..9670dc138d1e 100644 --- a/drivers/ufs/host/ufs-exynos.h +++ b/drivers/ufs/host/ufs-exynos.h @@ -182,7 +182,7 @@ struct exynos_ufs_drv_data { unsigned int quirks; unsigned int opts; /* SoC's specific operations */ - int (*drv_init)(struct device *dev, struct exynos_ufs *ufs); + int (*drv_init)(struct exynos_ufs *ufs); int (*pre_link)(struct exynos_ufs *ufs); int (*post_link)(struct exynos_ufs *ufs); int (*pre_pwr_change)(struct exynos_ufs *ufs,