Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp604465pxb; Thu, 19 Aug 2021 07:08:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzrTd1A/756G8XdK184OoXf6+ydyx4P/6mUIajpFIGKfQRnOo80UJlbHTW5RuL3XAMHGyxy X-Received: by 2002:adf:d227:: with SMTP id k7mr4097429wrh.285.1629382127175; Thu, 19 Aug 2021 07:08:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629382127; cv=none; d=google.com; s=arc-20160816; b=XwvR5dfwHomCyMc2Oo3iv7jNzBDSUKvGdFC/Hm3rVTA7/JE2e15H6uESTkVZodf/Lf RbPXhgTurzJiCMWdxfuCJ3lbPE8x4xvUGVjsQzS3J0GuqrPUItMLRgGyu7npMX+rIcPc u/uhHHWf6MqGVc/DuREnGHQklRat8tzGA6reqgGAJUQ8xjviy1kbg/AS2mZU1LC8s0jl XfA2kqZvujLZKAatbp09VAhNzcccmApPC/XhWfVvjP97Z6bFAK1UiyFFqwnloOqVNsHs WnPG/RkDhu4p9C2RmwWJ34QFBga29+0Vttv3HtF0tr2feconZVsjQO5mTHZXIKJxQIzb WGnA== 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:dkim-signature; bh=wO+yzlMaXsKGkePxX5z7qXBltLpVWWCtNL3LL/XLY5U=; b=vDldEuF7nzBPM4VFMMYTIxdUX3GvoSHl4aioq24nbr1ZosD3nXQd82h5TV7sn3lNBj qO2XD7qyCTfXqrHxELRGxRLKFwpIQvyzebFbe7qDTtfONFPFYYrlOqbJ4VjAv/3IJpjD 0fo2dTy3JEdVrITMT9wTW7uvJtzlUWzKB3ekrYhIPaJRoaKeR7tCgt8PWISG74EVpcZP m448SeSQ0FIoL9vfecGsdD42BXUwdQQKIzBXLFCqnA4R6cPN29M0Y/W7HIqrx6Q3PkLt ASE9Zo4DYupATzMuKVE7vytpyeGveMHb0WywzpV0P0oDTb1LgY6dpLC933UHB5fUoEOn gx0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@quicinc.com header.s=qcdkim header.b=ltwXqrfs; 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=quicinc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q19si3716876edv.394.2021.08.19.07.08.09; Thu, 19 Aug 2021 07:08:47 -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; dkim=fail header.i=@quicinc.com header.s=qcdkim header.b=ltwXqrfs; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240352AbhHSOGK (ORCPT + 99 others); Thu, 19 Aug 2021 10:06:10 -0400 Received: from alexa-out-sd-01.qualcomm.com ([199.106.114.38]:56567 "EHLO alexa-out-sd-01.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234281AbhHSOGE (ORCPT ); Thu, 19 Aug 2021 10:06:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1629381928; x=1660917928; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=HpW4hbTi5PSEovgBt3uxfRIvDZZhIFQAPSs4Cf7gvDk=; b=ltwXqrfs9QZIYxLczCpnUUlS9qqiWBXA0fk5X/aGho92WT2KdLldL5pi zqDh35TpgVKPxRmgpuMAfIPW0rT8eyYTiQBPuPWodtzHVda/+nqY4jhCx S0lCmRk+5Dx1Cz5i2qiNOqgLfIwy1kfjJmY23AbPswi/NyW9U46pPlIsT w=; Received: from unknown (HELO ironmsg03-sd.qualcomm.com) ([10.53.140.143]) by alexa-out-sd-01.qualcomm.com with ESMTP; 19 Aug 2021 07:05:28 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg03-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Aug 2021 07:05:28 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.858.15; Thu, 19 Aug 2021 07:05:27 -0700 Received: from [10.226.59.216] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.858.15; Thu, 19 Aug 2021 07:05:27 -0700 Subject: Re: [PATCH v1 1/2] bus: mhi: core: Bail on writing register fields if read fails To: Hemant Kumar , Bhaumik Bhatt , CC: , , References: <1629330634-36465-1-git-send-email-bbhatt@codeaurora.org> <1629330634-36465-2-git-send-email-bbhatt@codeaurora.org> <45fbfe24-38eb-82f0-7134-a04854269247@codeaurora.org> From: Jeffrey Hugo Message-ID: <48d494d8-1323-87fd-4a95-c1714bfa2ae9@quicinc.com> Date: Thu, 19 Aug 2021 08:05:26 -0600 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <45fbfe24-38eb-82f0-7134-a04854269247@codeaurora.org> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/18/2021 7:40 PM, Hemant Kumar wrote: > > > On 8/18/2021 4:50 PM, Bhaumik Bhatt wrote: >> Helper API to write register fields relies on successful reads >> of the register/address prior to the write. Bail out if a failure >> is seen when reading the register before the actual write is >> performed. >> >> Signed-off-by: Bhaumik Bhatt > Reviewed-by: Hemant Kumar > Reviewed-by: Jeffrey Hugo