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; } From patchwork Wed Aug 9 19:10:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Masney X-Patchwork-Id: 713256 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 6032CC001E0 for ; Wed, 9 Aug 2023 19:12:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232711AbjHITMG (ORCPT ); Wed, 9 Aug 2023 15:12:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233286AbjHITMB (ORCPT ); Wed, 9 Aug 2023 15:12:01 -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 0BF301703 for ; Wed, 9 Aug 2023 12:11:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1691608271; 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=FJ/VTCVUVdAN9JEuI46HSpb8/BIcrmXf6cV+lu2tL0Y=; b=JNlX77UNjX7BROVFIwWcxSEGn/iCTMVLUJ+whEbxejkI7eOSq5c8qCutP3RVHkBYAjgwF5 SXp3ySepJ33NrS8c0F8kCpPKmKAMruZ++yI13y6Jp5gTzUYpXH6XkhAAX+1kXiuS86hsEr Fh0Y5jSTMqP2MXXIR3p+VhcSVPPp4Dg= 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-180-vj_pnEpuNnqWukSTBEQGLw-1; Wed, 09 Aug 2023 15:11:10 -0400 X-MC-Unique: vj_pnEpuNnqWukSTBEQGLw-1 Received: by mail-yw1-f200.google.com with SMTP id 00721157ae682-56942442eb0so3090117b3.1 for ; Wed, 09 Aug 2023 12:11:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691608269; x=1692213069; 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=FJ/VTCVUVdAN9JEuI46HSpb8/BIcrmXf6cV+lu2tL0Y=; b=GpSeJHp/PzRNiiIW2tv4Vk/STZRRq6SVGZjb7yrSSxJ9JeITapcWmeZIjn+o2ssRfK LFGEBy9dvfuI1gGOdPUvSvcsan8lfRrpf28FARpWu2g+l3IrCT8tpBbWuQn/T9zYDxDe 9Hg+xoOSo+SlpxN7QxmBwmRsBsK68kiDr2aSImw1HrsRhfVYCmBs+lGI2s3DuaNterjL 1SsGyNu6KCizD5RQwKcwezceCH9f3CZWFDUu1f8l7Hdwv1kgu8U6oxXvJEkf9kaIhORS JMa33HEIfERXLGCgOfcudFgc1esJrTubhKkx8TpVLGveUq8/x+tUHfwb3EWtg3u0u6x+ hYVg== X-Gm-Message-State: AOJu0YyrXC2IREz4TLy0FIVLpwzmVSdOlV9S5Sb0BDobfBpMswbTLgga Km5lTXORHSJsZYWuOa7EXALM637fwExpTMiRAwrV2OmOekzLb5aujPjmoXVrbVQhzom2uHM9ZLg cZH8B4VuseFOlFyGGQIFFhQ== X-Received: by 2002:a0d:f1c1:0:b0:586:a689:d28a with SMTP id a184-20020a0df1c1000000b00586a689d28amr187549ywf.34.1691608269576; Wed, 09 Aug 2023 12:11:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE95W3s4pPhKxWsyLMaLGDznqUQUQCNFJ7eYo88i5GP10VIapnaCZ9OlyNfcy2vDPqKbL/mQA== X-Received: by 2002:a0d:f1c1:0:b0:586:a689:d28a with SMTP id a184-20020a0df1c1000000b00586a689d28amr187536ywf.34.1691608269344; Wed, 09 Aug 2023 12:11:09 -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.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Aug 2023 12:11:08 -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 2/2] scsi: ufs: host: convert to dev_err_probe() in pltfrm_init Date: Wed, 9 Aug 2023 15:10:54 -0400 Message-ID: <20230809191054.2197963-3-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_pltfrm_init() over to use dev_err_probe() to avoid the following log message on bootup due to an -EPROBE_DEFER return code: ufshcd-qcom 1d84000.ufs: Initialization failed Signed-off-by: Brian Masney --- No changes since v1 drivers/ufs/host/ufshcd-pltfrm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ufs/host/ufshcd-pltfrm.c b/drivers/ufs/host/ufshcd-pltfrm.c index 0b7430033047..f2c50b78efbf 100644 --- a/drivers/ufs/host/ufshcd-pltfrm.c +++ b/drivers/ufs/host/ufshcd-pltfrm.c @@ -373,7 +373,7 @@ int ufshcd_pltfrm_init(struct platform_device *pdev, err = ufshcd_init(hba, mmio_base, irq); if (err) { - dev_err(dev, "Initialization failed\n"); + dev_err_probe(dev, err, "Initialization failed\n"); goto dealloc_host; }