Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp2355671pxb; Mon, 11 Jan 2021 07:37:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJy5un1d99ZHyX7wvCiwuDgeNIjAers9ENz2GGun2ZP17Q35oQzlXzjNu6hNpdl7DorOm7YB X-Received: by 2002:a17:906:adcb:: with SMTP id lb11mr43896ejb.346.1610379429975; Mon, 11 Jan 2021 07:37:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610379429; cv=none; d=google.com; s=arc-20160816; b=jmQQQlFKvpZKlTYE8z8oGp2bONuuxDt0ijC/EipKYpCv4PzI/B8uUEUWzKxxJEsTlW 1nThsQqCrx885I8qATHN9aJzoQHJJQ3N4YBB6dVSXiI9Rdqyy0bRwTQIpvARqaTi4gLT Pa/6+QLMxhhbZTZB8TaJNQ+DzeYQj7N3bd0wTthtv3jbrFJ++RIEUIcJiaeqAxTFq0Xg kDYXKlc5C8OcOY5COBrwBJerkvP2KyWQixbozSpJJOrA3MfPFJyMRHb1l5udiJMkjc+p szlC032gdseLMrOJ06Vni8J59w0mAA2u4ibMyKMTt5ODu0rvxA/ui8NzV+voCiIr2zLe 3cNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=TzWprvP0E5iilUODRGt6CKDwV/2kCYGt43hwkGEjZBk=; b=NqNlawQZqh12PIPwpIPuXtDqWN4UEUOjAk+mUI2kF+GpkIcvToR7j/2qt7nwrDP7E3 hkLUNOZKmNRZvMxQJ9ACgd+nIS7Ypl8zKLaHVhuoTuFi7mwUyQH+diLGOVjv5SWrOH7q X7JVPmCXCXuX067Y3+L+6KRCbtRLJ6T/rbK7oFwjOP0cdpm5o/RTJ08/KGY77PGDfI2K qD7H/hxdauKEbTgOUCjx31gUKPC2MOblUSIYN+jFD7BgyNwAl94ND41TCLElUKsgifth 9RDQRMXVsOM4WUXA+4tldSGDOX7jGW2yyd2G90TI2tks5JEbX3cE1G041bPi2LJsmqwA 8NYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=j18QL97Z; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j23si6766183eje.581.2021.01.11.07.36.46; Mon, 11 Jan 2021 07:37:09 -0800 (PST) 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=pass header.i=@linaro.org header.s=google header.b=j18QL97Z; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730513AbhAKPfh (ORCPT + 99 others); Mon, 11 Jan 2021 10:35:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730454AbhAKPfg (ORCPT ); Mon, 11 Jan 2021 10:35:36 -0500 Received: from mail-oi1-x233.google.com (mail-oi1-x233.google.com [IPv6:2607:f8b0:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4CC12C06179F for ; Mon, 11 Jan 2021 07:34:56 -0800 (PST) Received: by mail-oi1-x233.google.com with SMTP id x13so20504358oic.5 for ; Mon, 11 Jan 2021 07:34:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=TzWprvP0E5iilUODRGt6CKDwV/2kCYGt43hwkGEjZBk=; b=j18QL97ZdXcR/1Wial7AoWPFyJjXMopmtHu33rDETf1iyeWOD6oVQT9p4VCRatNVT1 xUOvXW6F/iyqr66IJQ6MgnpXo6l4M+p0POEb2ukFRsSVA3jPg8hJzBOL0bI2u6QGi9Ig myarg/62h+TM2cWpKt/zt9AcNN3R+t8ssnjJAiBrEGeU61aVbjDeoA7JV0AusyvbpV0v EJqf2oJNhxj+Rmrng5A+uaCoOs4VkcEyt2fUTArKugC/HhcC2rpN1Ra4aVdNbmz2CobJ CfUlRS0ed4OoikQFKHMmA1Taldgx62rUup6ak93Y4L40X+WQtoKasiKo9sSZ3Tg8qCFW R3pQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=TzWprvP0E5iilUODRGt6CKDwV/2kCYGt43hwkGEjZBk=; b=aNlLTcAmNlF4KqmnEBlYotzghg0YedClbgrn/yOOWzIoZVyFjhNid2qeDwoB+3eqLS LchYQ4+R//A57d3TAudPBxap2yG01KR2ovE7kmZACVyzYYzQUP8gqJ/k+LBSG4PSuYOS IUaNu77nfz4GY3VbJXGW4n5Jv4bFIESg2tVjRjNne3n6tHl0F6YMwM9ULLcuED5z0PRa lTx2vXJ8DLWAZo265AJeeCo/bURiBNB6o3Yn4WU7N1Y5XHMWC8nT5NJ+Ndlsg7+zZm+V XV1hUpuhJd7gQ+RjgM31govieqonGRpOlzMc8vJifGnGEf2V7yP6l7vBdpcBZfogtu4I OpBA== X-Gm-Message-State: AOAM531fX3Q/yRQUp2bl98w2mVxVZ03Bp/d0OXDZtgIpi0xa7a36dlON KGkcRT35QPStTx5kQTuY3WbQtg== X-Received: by 2002:aca:2807:: with SMTP id 7mr10727532oix.49.1610379295611; Mon, 11 Jan 2021 07:34:55 -0800 (PST) Received: from builder.lan (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id p4sm14419oib.24.2021.01.11.07.34.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jan 2021 07:34:54 -0800 (PST) Date: Mon, 11 Jan 2021 09:34:53 -0600 From: Bjorn Andersson To: Vinod Koul Cc: Mark Brown , Wolfram Sang , linux-arm-msm@vger.kernel.org, Andy Gross , Matthias Kaehlcke , Douglas Anderson , Sumit Semwal , Amit Pundir , linux-spi@vger.kernel.org, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/7] soc: qcom: geni: move struct geni_wrapper to header Message-ID: References: <20210111151651.1616813-1-vkoul@kernel.org> <20210111151651.1616813-3-vkoul@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210111151651.1616813-3-vkoul@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 11 Jan 09:16 CST 2021, Vinod Koul wrote: > I2C geni driver needs to access struct geni_wrapper, so move it to > header. > Please tell me more! Glanced through the other patches and the only user I can find it in patch 5 where you use this to get the struct device * of the wrapper. At least in the DT case this would be [SE]->dev->parent, perhaps we can't rely on this due to ACPI? Regards, Bjorn > Signed-off-by: Vinod Koul > --- > drivers/soc/qcom/qcom-geni-se.c | 15 --------------- > include/linux/qcom-geni-se.h | 15 +++++++++++++++ > 2 files changed, 15 insertions(+), 15 deletions(-) > > diff --git a/drivers/soc/qcom/qcom-geni-se.c b/drivers/soc/qcom/qcom-geni-se.c > index 285ed86c2bab..a3868228ea05 100644 > --- a/drivers/soc/qcom/qcom-geni-se.c > +++ b/drivers/soc/qcom/qcom-geni-se.c > @@ -79,21 +79,6 @@ > */ > > #define MAX_CLK_PERF_LEVEL 32 > -#define NUM_AHB_CLKS 2 > - > -/** > - * struct geni_wrapper - Data structure to represent the QUP Wrapper Core > - * @dev: Device pointer of the QUP wrapper core > - * @base: Base address of this instance of QUP wrapper core > - * @ahb_clks: Handle to the primary & secondary AHB clocks > - * @to_core: Core ICC path > - */ > -struct geni_wrapper { > - struct device *dev; > - void __iomem *base; > - struct clk_bulk_data ahb_clks[NUM_AHB_CLKS]; > - struct geni_icc_path to_core; > -}; > > static const char * const icc_path_names[] = {"qup-core", "qup-config", > "qup-memory"}; > diff --git a/include/linux/qcom-geni-se.h b/include/linux/qcom-geni-se.h > index e3f4b16040d9..cb4e40908f9f 100644 > --- a/include/linux/qcom-geni-se.h > +++ b/include/linux/qcom-geni-se.h > @@ -38,6 +38,21 @@ struct geni_icc_path { > unsigned int avg_bw; > }; > > +#define NUM_AHB_CLKS 2 > + > +/** > + * @struct geni_wrapper - Data structure to represent the QUP Wrapper Core > + * @dev: Device pointer of the QUP wrapper core > + * @base: Base address of this instance of QUP wrapper core > + * @ahb_clks: Handle to the primary & secondary AHB clocks > + */ > +struct geni_wrapper { > + struct device *dev; > + void __iomem *base; > + struct clk_bulk_data ahb_clks[NUM_AHB_CLKS]; > + struct geni_icc_path to_core; > +}; > + > /** > * struct geni_se - GENI Serial Engine > * @base: Base Address of the Serial Engine's register block > -- > 2.26.2 >