From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754898AbcEWPnU (ORCPT ); Mon, 23 May 2016 11:43:20 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:35188 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750710AbcEWPnT (ORCPT ); Mon, 23 May 2016 11:43:19 -0400 Subject: Re: [PATCH] soc: qcom: provide mechanism for drivers to access L2 registers To: Stephen Boyd , David Brown , Andy Gross References: <1463771587-7438-1-git-send-email-nleeder@codeaurora.org> <573F7F5C.1050100@codeaurora.org> Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Mark Langsdorf , Mark Salter , Jon Masters , Timur Tabi , cov@codeaurora.org, ashwin.chaugule@linaro.org From: Neil Leeder Message-ID: <4ad1d1b2-f0eb-3780-21e7-9dd1b23d6934@codeaurora.org> Date: Mon, 23 May 2016 11:43:15 -0400 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 MIME-Version: 1.0 In-Reply-To: <573F7F5C.1050100@codeaurora.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/20/2016 05:19 PM, Stephen Boyd wrote: > On 05/20/2016 12:13 PM, Neil Leeder wrote: >> diff --git a/drivers/soc/qcom/l2-accessors.c b/drivers/soc/qcom/l2-accessors.c >> new file mode 100644 >> index 0000000..fbb69bd >> --- /dev/null >> +++ b/drivers/soc/qcom/l2-accessors.c >> @@ -0,0 +1,66 @@ >> +/* >> + * Copyright (c) 2014-2016 The Linux Foundation. All rights reserved. >> + * >> + * This program is free software; you can redistribute it and/or modify >> + * it under the terms of the GNU General Public License version 2 and >> + * only version 2 as published by the Free Software Foundation. >> + * >> + * This program is distributed in the hope that it will be useful, >> + * but WITHOUT ANY WARRANTY; without even the implied warranty of >> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >> + * GNU General Public License for more details. >> + */ >> + >> +#include >> +#include > > export.h instead? OK, will address in v2 > >> +#include >> +#include >> +#include > > Is there a patch to add sysreg.h to arch/arm? It would be nice to use > one l2 accessor API on arm64 and arm. > Sounds like a good thing for the next person who submits a krait L2 patch to consider. -- Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.