Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp4678085pxb; Tue, 5 Oct 2021 08:07:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw5OoBUbO3CJM46iokmIngmRagbdrmL4vlwU+9w6+zlpowHEhbDImhSdajW51XsgiBmuI0R X-Received: by 2002:a63:b94d:: with SMTP id v13mr16238972pgo.361.1633446447127; Tue, 05 Oct 2021 08:07:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633446447; cv=none; d=google.com; s=arc-20160816; b=Z54vVNkcgx0FTJcBrYKHxZHwBzGii0mCnDbzX07Rr763Cxpl4AaLwz7w1InzGgC8uh e6c0jE4tpbD7xkg7vCKSzCIk8ghfW3RjUeT/9N35S0vWNTgVC9+qgEODhO2bEdHz27CT t7on+YT+JDSUubwd6GZCNuCt7jFB4vJXpqHy2FrxC/BgIElzE3iJPe1P2Cu6NJg5u1HP Q8V6ZPxguW+nfQH0aSuPIDkibTSCVWelhwtfJIKbIxDBp90i6pMeQ8ELoa8W976Wa7X0 +wicCdmmTEYWf2FTthGZRlX1fEb3a7RJydPE5mYhaLH2eosRjWBv+dz30ZX2E/j+PW00 34og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=JKOjCGY893z/0pQ41HgosIfukEbjgM6S8Ecj7Kz1ZNk=; b=WL2dvwxnDEkYN9qT/MaXd/snx7iRe2ohR/H48JrJuDDtqSux3gamtld3uHeOipEU1g Cgm1DFP3wL/A7HE7+ARk4NrAkWJ3Mw9UPkky5omVjx9Eo/F+InWateSOTk7FpYirJM6P OQzLnIkH8X/D2sltU+YprAuVnxg01tNac2gSlIk96O2zWiuZX8sioDg6WsUDz8AzfMSx ZspHTVm9ilXMjo9o6O01H0vxlk2IBs5rK/W8MkaipHrVlD1JvztjUfwveD7hX+T2OgHa O0Rib6BhjdVnuYoKD+/CqTa3zYBdFlfVQhy0zRnjiBUcAfIYS5vzImII9PfzdFC78yEn v5oA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q7si22547059pgv.236.2021.10.05.08.06.49; Tue, 05 Oct 2021 08:07:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235519AbhJEPHM (ORCPT + 99 others); Tue, 5 Oct 2021 11:07:12 -0400 Received: from mga18.intel.com ([134.134.136.126]:53938 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235022AbhJEPHL (ORCPT ); Tue, 5 Oct 2021 11:07:11 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10128"; a="212696560" X-IronPort-AV: E=Sophos;i="5.85,349,1624345200"; d="scan'208";a="212696560" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Oct 2021 08:04:01 -0700 X-IronPort-AV: E=Sophos;i="5.85,349,1624345200"; d="scan'208";a="523803649" Received: from emccutch-mobl.amr.corp.intel.com (HELO [10.212.34.81]) ([10.212.34.81]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Oct 2021 08:03:59 -0700 Subject: Re: [PATCH] ASoC: qcom: soundwire: Enable soundwire bus clock for version 1.6 To: Srinivasa Rao Mandadapu , agross@kernel.org, bjorn.andersson@linaro.org, lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, plai@codeaurora.org, bgoswami@codeaurora.org, perex@perex.cz, tiwai@suse.com, srinivas.kandagatla@linaro.org, rohitkr@codeaurora.org, linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, swboyd@chromium.org, judyhsiao@chromium.org Cc: Venkata Prasad Potturu References: <1633105471-30928-1-git-send-email-srivasam@codeaurora.org> <2c18ff0c-cd24-356c-0104-086837ed7ff0@codeaurora.org> From: Pierre-Louis Bossart Message-ID: Date: Tue, 5 Oct 2021 10:03:56 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <2c18ff0c-cd24-356c-0104-086837ed7ff0@codeaurora.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >>> +        ctrl->swrm_hctl_reg = devm_ioremap(&pdev->dev, >>> swrm_hctl_reg, 0x4); >> if (!ctrl->swrm_hctl_reg) >>      return -ENODEV; >> >> ? > I think here error check is not required, as this change is required > only for soundwire version 1.6 and above. My comment had nothing to do with versions, it's just that ioremap can fail and in general it's wise to test for errors...