Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp179980rwl; Wed, 9 Aug 2023 12:53:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF0MXklJ5Bista5mfUrBgfz7DE1cjE6tHwIrjMN+cn4BFJuoyrxtrWWzC8FOQSgj3GPAFVq X-Received: by 2002:a17:906:1d2:b0:997:865a:77e3 with SMTP id 18-20020a17090601d200b00997865a77e3mr79534ejj.11.1691610831406; Wed, 09 Aug 2023 12:53:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691610831; cv=none; d=google.com; s=arc-20160816; b=I3gpUnmyS96TO5WHox8AZpDVxBe+9R2LXtCflHKwtBksXHLP2jxAPTWnGSb8IsXfbz 6RYfCuaLnw9FGybj+lIcVpV4tJkP+CGxYMdTnuyvGNP+PBWts9w5yigdPOaTkAEoDa6r rc6VG4gRdAGnAbaYJHqxgpDziLTtqAlXxqgIQWHGeaz11maJja+5VVe1md8vmikXeNOj D8ZY8I1eh7z/IrVsVLncCMVY6VhXgc7ALDTsSLVfLTWHVEowQw6zF5KlyS/XNUQaKZzV hTuqNseDhR9Zs/8zxnvNNavsVSC1mUTpI67xBOBTsyLos7nMItdax4U2OrqB8r93m5j5 AX9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=EOeT56fYFXenbiTjEbqIlGNmaCm7sLXNGQKrx5ZWC5o=; fh=ApmPs6d3fGRbtqjZNUH0HWyP8DmXoyMqjwa3HiLOp0A=; b=SKs3TRIOZJOFVXEiWV8W0GEJYw/z6Cbash1Oe/1z5I9jC7UIk17SSVH5MMkBmaNgOW 3qn9JoZ1V56J92YlG9C8NvwTHlC+gRCLOz3GtwaKQQVCP6vNgrDRWhCQTejKxFddAfhb RP5drNoGRfVTrDTChlw8k5dDDClntCoJH3Uh7DLThVcWVCNXhEPqcxXIjxOMJuo5m4hx fvKPRyXOdR6DCaXufVF5Bh45xa3nEZ0zhT5BbTkr9DWptNdXsJefuOW6k2glMynualuB viRbOeQ/M3SWpPvUupgpcrIjL39ybVOJDMm5seToS20depzlwADUxL7YRCcRDehdaKRf t6dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Y+AkhpLH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g23-20020a1709061c9700b00988a0d78152si10547133ejh.55.2023.08.09.12.53.26; Wed, 09 Aug 2023 12:53:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Y+AkhpLH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233175AbjHIS5Z (ORCPT + 99 others); Wed, 9 Aug 2023 14:57:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232365AbjHIS5Y (ORCPT ); Wed, 9 Aug 2023 14:57:24 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A704FE64 for ; Wed, 9 Aug 2023 11:56:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1691607400; 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: in-reply-to:in-reply-to:references:references; bh=EOeT56fYFXenbiTjEbqIlGNmaCm7sLXNGQKrx5ZWC5o=; b=Y+AkhpLHgnwnSiA6u9NOR+xPU4+QBlT7bFAqpmN0lKYUrH3H0kV/sHbZNg0YVXbFEBnUE1 ikT8Zms6Z3pOG3u/14+O5U0JQWynNg2vC5HTMQt5KSGi8sOkJaSE2mCzuIsjt+6uvg5mES ar2HxWJmWVazt7f7gBFMbBV5y+qgARA= Received: from mail-yw1-f197.google.com (mail-yw1-f197.google.com [209.85.128.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-493-Hpw4IH9dMLa4TOVXp5_izg-1; Wed, 09 Aug 2023 14:56:37 -0400 X-MC-Unique: Hpw4IH9dMLa4TOVXp5_izg-1 Received: by mail-yw1-f197.google.com with SMTP id 00721157ae682-57320c10635so2699547b3.3 for ; Wed, 09 Aug 2023 11:56:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691607396; x=1692212196; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=EOeT56fYFXenbiTjEbqIlGNmaCm7sLXNGQKrx5ZWC5o=; b=SNARXmRuj3pC+n4mbYd04h78Bw4sb7WJbhg9pCQ5l0QWpZXsGrsUoRd9PxFmActm/9 ynibPqVbB3nJRkjKOs75VkU4DAr77/NSJSs5nHtq5G3uSEklq0TWFd8aZCR/qd0vr8Vw RvV2TOUgRb9d0+Qac9NYOP3z3pQAmG905j3Pe4rYrOPiWVCV/7rm/XSRbqVkc5RJ4L7t Ua+ld2wxahalemkuTmYTA4ZxwAXPUEtXU5G6csM8f8sPe8BcshDX+xBmQ3bZHnIxbX1V FR0q4P4kVunvtN1bbfi5wkf/ig2Yinw3Vk8yD7zk88/9y7+pv+WTZVDc3y8NpJCY2vgN dtiw== X-Gm-Message-State: AOJu0YyJrLYLTD5IYYpWhIYpbQpX1mauLSYBJlApI2tFOv1p9ZejG3KC UvabLf2FIoNeUEBAMfaEEspC7gD1/VFQXDSvEidLLht7FMpunD/ULFFnoz2kIqhpcvDTg6dnLH5 yV27i0x67dgpRuVJvglYsrdOSOZri7Ma3 X-Received: by 2002:a81:4f91:0:b0:57a:9b2c:51f1 with SMTP id d139-20020a814f91000000b0057a9b2c51f1mr211515ywb.1.1691607396773; Wed, 09 Aug 2023 11:56:36 -0700 (PDT) X-Received: by 2002:a81:4f91:0:b0:57a:9b2c:51f1 with SMTP id d139-20020a814f91000000b0057a9b2c51f1mr211500ywb.1.1691607396536; Wed, 09 Aug 2023 11:56:36 -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 e9-20020a81dd09000000b0058038e6609csm4101487ywn.74.2023.08.09.11.56.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Aug 2023 11:56:35 -0700 (PDT) Date: Wed, 9 Aug 2023 14:56:33 -0400 From: Brian Masney To: Hugo Villeneuve Cc: jejb@linux.ibm.com, martin.petersen@oracle.com, alim.akhtar@samsung.com, avri.altman@wdc.com, bvanassche@acm.org, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] scsi: ufs: core: convert to dev_err_probe() in hba_init Message-ID: References: <20230808142650.1713432-1-bmasney@redhat.com> <20230808142650.1713432-2-bmasney@redhat.com> <20230808162929.a1b784ad42bd346cd87747b9@hugovil.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230808162929.a1b784ad42bd346cd87747b9@hugovil.com> User-Agent: Mutt/2.2.9 (2022-11-12) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 08, 2023 at 04:29:29PM -0400, Hugo Villeneuve wrote: > On Tue, 8 Aug 2023 10:26:49 -0400 > Brian Masney wrote: > > > 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 > > > > While changes are being made here, let's go ahead and clean up the rest > > of that function. > > Hi, > you should not combine code cleanup and fixes/improvements in the same > patch, split them. This is a pretty simple patch as is, and split up the code clean up is not very useful on its own. I'll just skip doing the code cleanup and only post the dev_err_probe() change in v2. Brian