Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp1063926rdb; Fri, 2 Feb 2024 12:21:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IGmtwf7QJi9JqMWtvOeO6LqQ7YvQO8olM/OookWgwVCxjPoeB/OHDmPU4qP5RdGv89LuEma X-Received: by 2002:a17:90b:3010:b0:296:43a:932e with SMTP id hg16-20020a17090b301000b00296043a932emr7676215pjb.7.1706905270131; Fri, 02 Feb 2024 12:21:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706905270; cv=pass; d=google.com; s=arc-20160816; b=nmIVLkGwV7VS06zhkIEIQ2oe+rT5iZBOdY7gQYpkHk4LlkrRcNjf3IGOViWkfkE6eB 1atLZyz5ArF2ohanDjBIuSWlbp321duKLMkOBoh4gHdWzop6HViYqBOVn6jb/c1iCRTS FjrD7M+NNap4lLyqfPMJBWXSphHNhrPUF/PY7sm/4pEFNmX2vhLDA1dBbbZT1rgwtEXh DLk2YFdTkFL+nKAjp46iIkroAZDt99CKikpEpkL8ijus/trt8+l6U/SmcZFyb6ZyS9ML Rob7Pz9YfE4fCOqLqUFJkkCTgxbeGvb3f5YP6e/43T1WJ5DhS+QGqYQGvbbuBOgQ7/pX nKgg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature; bh=0jsbiUGZoVRm+Jqip9JzjNucpXpxG9ms6OPSdQr3b5c=; fh=XGoucFD98Qh7yZr5kQIBNFHbFs4aR9rOHIdc4JEfdYQ=; b=I7MdAORUddfGx7l4AEwJNktGdtjX4bibaCXDvvFQsI8773XWH1Dp1WH8/HFmURGMAY pp3eqZR6WGj8CTbZ4ryBDHNXKbYYes3UBb+8YuoifQCV6+1q8y5ME9nOJ+MT9/L5nUAq WP1vtb3XKPcGhagRrRVJMCtuKtLxh68UtP4fh1ygfhYPwIGzgPtoBvAXLsWQTjCA7cfm gKEhIPynsul8rorAQqV9lOxMwtr5l4agI6wobe+V6hLJerUItII1cvrgIx+15rHYW/2r N1TWWop1DHb40Bx17U/5ZwGtbAAwF361mwe78ph8Dv/pgJO3JYMXKq/SnB9hGlo5++/y An5w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=XxnmToxK; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-50506-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-50506-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com X-Forwarded-Encrypted: i=1; AJvYcCVOF8YCQhWv7MyNF7JraD4T20MYBJEFeUeho5XirgLRkGfbXToyvAS+RLhhjyWHX176ofidb4lasu+fmScMMrHVaheD+B/jXKsSOfNpdQ== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id x7-20020a17090a9dc700b00296454b0b6fsi414529pjv.103.2024.02.02.12.21.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 12:21:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-50506-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=XxnmToxK; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-50506-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-50506-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 46DF7B273E8 for ; Fri, 2 Feb 2024 19:57:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6B5A18062D; Fri, 2 Feb 2024 19:57:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="XxnmToxK" Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D487915E5A3; Fri, 2 Feb 2024 19:57:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706903838; cv=none; b=DI7/9tIrAtlZd0oxiow71YYum/OUfxt7Zd9lY4ctx90n9bmO0HrrxaWoE1W/W4ZmD9fX6akz+EPHaXhK97BEYZlVJAZyDIvtAhu4Wk63zlUZ4z0vsESOjkaYIoRmyqZAjZpO7XTVSZ5lrMH/bEZW1DyFe2iuAS67xIdXSottcIg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706903838; c=relaxed/simple; bh=ukbTX8yqMyjTunHbi98P1uDkWKc+yV5d2lJmNH0+6L8=; h=Date:From:To:CC:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ATNK1VQHizfPmUyovixIU7A+C81c9Vk8/m6R3XBeeSjP1mGQpwFvruuSbe+al3dgJL+5FpZ5BzKD5P9uTZB1DEpQqjePitdppWvAx2pIJ8e1vW9nFPCgmiVip/Em+40RDTDcqSMubKAzuRuIgGoeQOa63ghsFK/IIU+3qByqnWc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=XxnmToxK; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 412JehZj028333; Fri, 2 Feb 2024 19:57:13 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=qcppdkim1; bh=0jsbiUGZoVRm+Jqip9Jzj NucpXpxG9ms6OPSdQr3b5c=; b=XxnmToxKtrZqoUD7DzDJ4UfR/jZ7vPiitpXa+ nPN6AAvsoY1DyuDIUO1fYVxhqk72WrU0Fu7PB4IhVNLDmSOgAHBo1lhneStGz/87 t3dUk2Coi34Sj1i8ix7qdKSxUmRGMWYA7E7EZQ4ak6DJqgEhRK/kINNwpogyqz+g s8269XFXC+kQ35u05k5jkzO7n/mbxL8JyGpZvDO2Lr1dfDHtmQBUzmsWuWCCzAv0 kmkEm0eMOmf2KUwsLf3mRzmV4jIz+WGYSHNMniRK3bd7kyZxpL7oINc/7lV+HRQK SuG1yjwf07Ok1hEz/BQVmgtHv9+vomvQ3jCeUXxfDx2BTEK0A== Received: from nasanppmta03.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3w0ptvj9me-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 02 Feb 2024 19:57:13 +0000 (GMT) Received: from nasanex01b.na.qualcomm.com (nasanex01b.na.qualcomm.com [10.46.141.250]) by NASANPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 412JuvVH011778 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 2 Feb 2024 19:56:57 GMT Received: from hu-eberman-lv.qualcomm.com (10.49.16.6) by nasanex01b.na.qualcomm.com (10.46.141.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Fri, 2 Feb 2024 11:56:53 -0800 Date: Fri, 2 Feb 2024 11:56:53 -0800 From: Elliot Berman To: Unnathi Chalicheemala CC: Bjorn Andersson , Konrad Dybcio , Satya Durga Srinivasu Prabhala , , , , Dmitry Baryshkov Subject: Re: [PATCH] soc: qcom: llcc: Check return value on Broadcast_OR reg read Message-ID: <5ba42ywqwi2ix2hyo4ysdgo2onyrhm6rtvpow626r7kctoixz6@xrens4w3k7ar> Mail-Followup-To: Unnathi Chalicheemala , Bjorn Andersson , Konrad Dybcio , Satya Durga Srinivasu Prabhala , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@quicinc.com, Dmitry Baryshkov References: <20240202-fix_llcc_update_act_ctrl-v1-1-d36df95c8bd5@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20240202-fix_llcc_update_act_ctrl-v1-1-d36df95c8bd5@quicinc.com> X-ClientProxiedBy: nalasex01a.na.qualcomm.com (10.47.209.196) To nasanex01b.na.qualcomm.com (10.46.141.250) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: oxwqDb5h7420ezCW4ZTIs3hYBJnnezbG X-Proofpoint-ORIG-GUID: oxwqDb5h7420ezCW4ZTIs3hYBJnnezbG X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-02_13,2024-01-31_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 adultscore=0 mlxlogscore=802 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 impostorscore=0 mlxscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2401310000 definitions=main-2402020146 On Fri, Feb 02, 2024 at 11:47:43AM -0800, Unnathi Chalicheemala wrote: > Commit a3134fb09e0b ("drivers: soc: Add LLCC driver") didn't > check return value after Broadcast_OR register read in > llcc_update_act_ctrl(), add it. > Reviewed-by: Elliot Berman You'll probably want to add: Fixes: a3134fb09e0b ("drivers: soc: Add LLCC driver") > Signed-off-by: Unnathi Chalicheemala > --- > drivers/soc/qcom/llcc-qcom.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/soc/qcom/llcc-qcom.c b/drivers/soc/qcom/llcc-qcom.c > index 4ca88eaebf06..cbef0dea1d5d 100644 > --- a/drivers/soc/qcom/llcc-qcom.c > +++ b/drivers/soc/qcom/llcc-qcom.c > @@ -859,6 +859,8 @@ static int llcc_update_act_ctrl(u32 sid, > ret = regmap_read_poll_timeout(drv_data->bcast_regmap, status_reg, > slice_status, !(slice_status & status), > 0, LLCC_STATUS_READ_DELAY); > + if (ret) > + return ret; > > if (drv_data->version >= LLCC_VERSION_4_1_0_0) > ret = regmap_write(drv_data->bcast_regmap, act_clear_reg, > > --- > base-commit: 021533194476035883300d60fbb3136426ac8ea5 > change-id: 20240202-fix_llcc_update_act_ctrl-64908aed9450 > > Best regards, > -- > Unnathi Chalicheemala >