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: 840049 Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E756E1E260D for ; Wed, 30 Oct 2024 10:27:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730284043; cv=none; b=IIe1Jkg/C3BWcRojglq0X8duFk1vowpeA+V1ov1dfFARUNVjlrngcktRwJ+K9HiJ0fDMHJR0BKLXEgQesoneopc3jyFBnoXXuhCD58PlLAJW2AnPK6j61UGEl6XjWyZurIsowmaCbxfDvZL0onXpoVYzisFk+U0S4PM3+Ha2vkA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730284043; c=relaxed/simple; bh=otYYs/V9Tlx1rti601czH6DoyxFLRyvqBqFlV9pex/A=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=nrvg4fcf2UDESxx/7vP/fdbknmhLOYLZMVh7nkeJ9qAtyLgx2sh4EEO5G6Wgy/Y2MrOTEsFnAORatv8oXjWXfzsO92qFp+FSweuUy8QQ7GrqLwD2RdVSQtMBxjPFGJVGtKmRsl3cF8SyH7Zj8kGwuChLXvx3rS4k2hDyOyBlcOw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=vGTdlSus; arc=none smtp.client-ip=209.85.128.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="vGTdlSus" Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-4316e9f4a40so63026285e9.2 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=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=XbYElkal5d6+0YzyWk0lUEIt8HVlxkiQ8cX9u9pIHz4=; b=vGTdlSusEHEfc7Dpk7MtEloADs7n5ec/urUmH7gJcoWJaPnTmoobp7BS3JP9JH8DSG MZBvYlaILKdS4QxvPkeXtEQr9xuAMGSGjuczrgYnEN6iyCuo9V8BvEx2dq1e6qeQvB6C T5dDs5l5mSfKjeKEYK6MLdGW5+SeuEB2Jx3SKLB1fBWmcdYMGLxv0YH1/4JO5cINEFVp qWyXeYXKLK+wpLotq2ehSP2LuiShb9D+IyEgTPjiXpzanv8PZMH9Q6Y0l8ZWkd0iT8ax +1XudRNaLNaNd4y0/+r33bFzKPXIsg2ElXbqVLEeHyiAdqF9A3Klei6CfyVQXhAT9dqa zYRw== 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=XN7fwQp8+fi3BoPero+OGLCqXBgkWTdGNObzf9z0iv+7vHSAU4jMgBfKD0AJo++pLK h+QDl/bSGSMAVwDekwYdoe21f5pddIXch5En5KVOHpYYaF96qAHpOmK8AztgyF/wl5c/ JPU3Egmv5QNz4fdd8GCtpme/AJFnhvUQXRrv258DymVP3YlGDwbPN0Jf0W2D+xoKY/Hz xSZ32/zffxlhjwft0YwxYtjlBa9QSkQRUTBGMH6D8DhgcIvNXSgSdu1RWLMZzzMrDB1m jD9DSTs3qCjT0yvTTG/u7m+uo9EAqTHdDtBxb9Roiq7G50E1oO+BV/erTCNUeG3JNHkb D2kQ== X-Forwarded-Encrypted: i=1; AJvYcCW+NWIzBkQOy0Mym/MyUDuyklNz8j8C8Q9XFwVtuF0/5tkKwYB231Okf+er2/DfpH989roas30lXGEx@vger.kernel.org X-Gm-Message-State: AOJu0YwqlOCBGerM/a4ke32kUr4uNQTfjB9GSjaXzsCevR3Hl8pnr/o1 PleYqeOGVtiBhf7AtTPbbdXUjN9+9j5m5eNgOoFXJ/+u4yRXr9wSkTQCjOLZ73o= 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 Precedence: bulk X-Mailing-List: linux-scsi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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: 839783 Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E9C711E260C for ; Wed, 30 Oct 2024 10:27:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730284044; cv=none; b=pSOS4ufUbsmBjouBCOKjhrHlT5a4eCgQu3Wd4rOr34JhG2+8BE/VEqFDddo/00ccWoIOdo2wUVViDl0aKXmEn6Gy6gyaKkUTpMUR88R3/V6coolFtf3QCZksXqtEpB+lMS0zFUGGlf0aNmnFmWMED1UIrqWWwN/Gv1jAYrmarE4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730284044; c=relaxed/simple; bh=1vewpM2bAPjZCI45gCVSZFD94dAv/0fVsZ5NW3TKMs0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=pWbvLXW+wtGmlOcfsixvpv6CniUXOwWcwRRU1oWGrTQluBbK7Pak9XRx0eS+8Bad3uFTKI43ZMmqMlQvug2enXcJ+NXJiKFlSzql52MQfPAwXNOEDVJP7SxqMkFQ/jxcPwn5IRSfrCGvnnbs/tr7JPQwbbFKEjAXPm+NHgXmkps= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=LlnoAH+Z; arc=none smtp.client-ip=209.85.128.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="LlnoAH+Z" Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-4315baa51d8so62011865e9.0 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=vger.kernel.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=LlnoAH+Zr12rWPRfaGt0135iQMN+F/1iMrJgpj6xSP1N0PNSvIEJ9WpJbk49EXnqMv KijHrS8sPEjMLH9bI3f1tY6hLUChyxg7edemXwphT07CR7qWF0g9f5/eLEMYd6NEOuUT MW0wowM4hJIGzwyVWvnYma7URKN2vH9pCCtqVKmur1pwWxuMu75KxOc4KS4oJ82R6y1M YTKOP0ttjO2DprOW0oqQt/vGx9n0EZP6jkILUUunxYYkAVcscDkTMc2R2WlJZpNABOqu GCt5ZBpEjVSnhGRo5kLxPhQ2Tx+0pVwFcGm8lQdy6acOwgDyhaliwO8pfJLh6rXVksnp NH6A== 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=Ac/imSuOK2BKqwF3Sg5CbN4hOnwHJ9lAQx4WXHaYZag2EFlETRPMC1ZKPTGZWkwqLu ZhYuar5l4w5uAT9EZAQu3Xxo2vTSYUd9sTiqRfAVH61CcjEh49o5zKOSvycz9ZB+LJwv uDo+6KfTLB4WmfV1FAqGztKaykbucwCkXnnwwx3ELgm6KuiquxInf7KhAE6gXTwS/StX wLXQm5+ifCionlnbwQ5N97+4OiwupG+w9V4SBxGP4Zih1ztXGwnFaLVlaJt4Ouw98iwf 1HQTzrdLLvi8rTBWIBs2UTFBhYx5fxknZgpIaou3Lt9vwBRwXbmaX5fPOLBqNtCtvobn Ksug== X-Forwarded-Encrypted: i=1; AJvYcCXT5rcxdoE7j3GF7HC9InUX9C2F6FMdfYFoDO5iDKb3S5tMvTFwNNm/qQJZqsA3ZoODg7AEJZNiY57N@vger.kernel.org X-Gm-Message-State: AOJu0YwG1kd24eJ/p2U/VBNHSNDUylCTt5w5e5/miJXGAMepFKF5auQS h62UlAZI2TsCbVFew2MPE2+Af6lNLQFSeiOooyYH0XYaTE12kACOyKiRyIA5kjc= 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> Precedence: bulk X-Mailing-List: linux-scsi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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,