From patchwork Wed Aug 9 19:10:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Masney X-Patchwork-Id: 713257 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 61FA6C001E0 for ; Wed, 9 Aug 2023 19:11:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232430AbjHITLr (ORCPT ); Wed, 9 Aug 2023 15:11:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232782AbjHITLp (ORCPT ); Wed, 9 Aug 2023 15:11:45 -0400 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 7CC4E10DA for ; Wed, 9 Aug 2023 12:11:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1691608269; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FqOZf2iFH1wW1M9KxBnD+04A0QPe8+T9kONfr/09M2E=; b=c8NEOwqAJqMDohW44fNWXJ6FfJR1aFtu7j8QNHQqQsEjsl5WaN0pDxrFXqibB3uEtkBBVl U1RHFYmrcm9PyqhGksOTMmv28u8AVMVtVReuiamkbwgHRJPEWUE4xbvw1XjRM6Ll+vC7St IvIlcwwY++uvX4m4gmXFZyKQuN5FLL4= Received: from mail-yw1-f200.google.com (mail-yw1-f200.google.com [209.85.128.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-644-CSdL8y66Pj2KeZ8T0tYBww-1; Wed, 09 Aug 2023 15:11:08 -0400 X-MC-Unique: CSdL8y66Pj2KeZ8T0tYBww-1 Received: by mail-yw1-f200.google.com with SMTP id 00721157ae682-5840614b13cso2508557b3.0 for ; Wed, 09 Aug 2023 12:11:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691608268; x=1692213068; 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=FqOZf2iFH1wW1M9KxBnD+04A0QPe8+T9kONfr/09M2E=; b=LKL5buhaUi0ydQkD4cfswB+WrWxpfK6UwIrqh7vzEiL6xvBFh7eWhrOLysfq9yJ/5r Dcyf6BAkLqPI4r38kr9Qtq5P5IbCbhUnVVyo3KwZu4teYPz05g0tnX3L3LbDkCIY1ZUK sKPHdAePCT0E+Nuu9aGobKM+rgnpX5P13JmDjl9ESWy4lcu1kpxLLhGmjpdDOZHmfadc puDDPPEZaoALFmRK4G5pM4xUuB3KJel0Wgkwzq+f9hljBuueJAC7gq2oh/ArvOrvuD8L Eb/snr1iX6USVxWHH/XQF7MkQ3N8mIISzXFwNAjRpmRnVwUm1K9yoaMbYc/j68kmKzoz aTHg== X-Gm-Message-State: AOJu0Yzo9WH48o+VZ1I173Pd4WNBHclUcJX4FbYVmcwlpqz4F2WySxax 9UQ1xFZhSbPXvMZFnH7JSAKrNIEo7NdowvytdoljjILm7ZFlLS9bz2g0BoxU6JJoWMhmTj+kgLy NY3yhzlpJof01kyBLyvdmRw== X-Received: by 2002:a81:4e15:0:b0:56c:fbd2:edec with SMTP id c21-20020a814e15000000b0056cfbd2edecmr353510ywb.6.1691608267747; Wed, 09 Aug 2023 12:11:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHrUvyUDWYgbKDLJ+F88DgRoZ8/wkyOFL1jZVSaFwSOza8QAXk8SrF2iz2ktrQ9TdkoXwcLSw== X-Received: by 2002:a81:4e15:0:b0:56c:fbd2:edec with SMTP id c21-20020a814e15000000b0056cfbd2edecmr353498ywb.6.1691608267498; Wed, 09 Aug 2023 12:11:07 -0700 (PDT) Received: from brian-x1.. (c-73-214-169-22.hsd1.pa.comcast.net. [73.214.169.22]) by smtp.gmail.com with ESMTPSA id s84-20020a817757000000b005774338d039sm4172969ywc.96.2023.08.09.12.11.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Aug 2023 12:11:06 -0700 (PDT) From: Brian Masney To: jejb@linux.ibm.com, martin.petersen@oracle.com Cc: alim.akhtar@samsung.com, avri.altman@wdc.com, bvanassche@acm.org, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, hugo@hugovil.com Subject: [PATCH v2 1/2] scsi: ufs: core: convert to dev_err_probe() in hba_init Date: Wed, 9 Aug 2023 15:10:53 -0400 Message-ID: <20230809191054.2197963-2-bmasney@redhat.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230809191054.2197963-1-bmasney@redhat.com> References: <20230809191054.2197963-1-bmasney@redhat.com> MIME-Version: 1.0 Content-type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Convert ufshcd_variant_hba_init() over to use dev_err_probe() to avoid log messages like the following on bootup: ufshcd-qcom 1d84000.ufs: ufshcd_variant_hba_init: variant qcom init failed err -517 Signed-off-by: Brian Masney --- Changes since v1 - Dropped code cleanup drivers/ufs/core/ufshcd.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/ufs/core/ufshcd.c b/drivers/ufs/core/ufshcd.c index 129446775796..409d176542e1 100644 --- a/drivers/ufs/core/ufshcd.c +++ b/drivers/ufs/core/ufshcd.c @@ -9235,8 +9235,9 @@ static int ufshcd_variant_hba_init(struct ufs_hba *hba) err = ufshcd_vops_init(hba); if (err) - dev_err(hba->dev, "%s: variant %s init failed err %d\n", - __func__, ufshcd_get_var_name(hba), err); + dev_err_probe(hba->dev, err, + "%s: variant %s init failed err %d\n", + __func__, ufshcd_get_var_name(hba), err); out: return err; }