Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp234165pxb; Tue, 12 Apr 2022 22:46:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwO53gWyXW+igI+yvr145djpmObUDQqBFxa3EUVLikN2Rn0q2+LQHMq+3+kvARaYqLuUMse X-Received: by 2002:a17:906:1604:b0:6e8:7c02:c5a with SMTP id m4-20020a170906160400b006e87c020c5amr15067729ejd.690.1649828794903; Tue, 12 Apr 2022 22:46:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649828794; cv=none; d=google.com; s=arc-20160816; b=RwLBkOdSkUA3edIGqFR40B5vcI2KIWpuTfR0EH2izhwmfh0Qrx3XEFzULOQEi2bJjP J3n3OG5cgU3RDyCL50U8iuhHUiEEg9SO9YyDLJjT0DC4tA1JbTMcxIhfqTK92j+YmzOU f+AWxYOa6RwRUgj39u+fnG1q83I24NIlJMJcrj9zOkaUHKzfHNe2urgV5592BQKZYjZB o/vCW23u2TiGZtRAx0P/+kNHndfpXoXUXENuyPqEd4q8TbxjQz0TwJBuR4eB7vMs5/86 4XJBDhO0+EdAhHR7YHXEWPpR8E+LGOqhiXIOJ5yzNsLIqNYqdUigXv91Y7omxjzZqEmV oqng== 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=n/5q6ebK0JYN5I7SWFxTUh10KRu428isEGA+YMY0xN4=; b=rwwRxeoJ/iyA4gZqCY+vjvB/jWWM5r+zBOaSnWVpI6+n5zh55o932XmaEGX/sIoq3n 1HS/JBOa2vfPXFVkAfR9v8Rmdow+tlDKVI/EM1TAdRFQey+ZxtzmWjSaba0yLO4IekRD 6CfNkN6rdqn5XlG/mbSB+/GoY+zTzW2kYCu2RrxpzE8d6prVchDN9oMSad+eAoGhodXs SfEzyG8Ku55njf/HEm1KK9k0KBj3Uim9Ufl7NUalMGFZnn4x//CMEm4R8MdeN795rjvH sKCfoMwPbVthrx43VHsdLTixoOd8zZ44JlYz+C5xP1/brPEARLDtb/iRrXPh4sCrnQBH xpcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sWx01FzQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kx25-20020a170907775900b006e8439b41d1si6790925ejc.69.2022.04.12.22.46.09; Tue, 12 Apr 2022 22:46:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sWx01FzQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S229955AbiDLX0X (ORCPT + 99 others); Tue, 12 Apr 2022 19:26:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229877AbiDLXZ5 (ORCPT ); Tue, 12 Apr 2022 19:25:57 -0400 Received: from mail-yb1-xb32.google.com (mail-yb1-xb32.google.com [IPv6:2607:f8b0:4864:20::b32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB85089301 for ; Tue, 12 Apr 2022 15:12:06 -0700 (PDT) Received: by mail-yb1-xb32.google.com with SMTP id p65so487370ybp.9 for ; Tue, 12 Apr 2022 15:12:06 -0700 (PDT) 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=n/5q6ebK0JYN5I7SWFxTUh10KRu428isEGA+YMY0xN4=; b=sWx01FzQ52rz4TlVeDegxVNeDfmRcpQfNXdHuvalmZDAgtXROZkhFaSuKhNQNiEgKI WvlFxWz+QV5Kp6fkSTGX852h4t/pl5pqUJqvuJIOqiEc8LSxKkt8rUF1kXEbKFDR1EzA 8+CdvnE7j9qnxeZC8NukluEOv3a4ZauSz4IIdkSmPZjE27pZPt3Ai6KPB1GJeHtjtnZJ f76ruUOfVhARU9cgrFz35mWiNg+SFn+TcMSHqSp5wIbAF7l8BJ4NOEdtAFeVCps1Pig9 WZvxSzQLJqSs1bqX7Cgtx/9Ck/qm30gPflZI0IzmDZVBgu72PlUQJ227r/wzW9kqbs5v kdBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=n/5q6ebK0JYN5I7SWFxTUh10KRu428isEGA+YMY0xN4=; b=kHqrvQpl5ZIeSWIrcFx/t5g1rz08CX0Sfps1DM2p4603HmKd53w5dB5HvRNcVENP6R XZJxRfAeSX4AgnaDJb9PT+3MgnL0vaLm9ydQhV2VixownwFq9PIO9GSZbffWe8B/yWa4 6YPcL8q1PbjNJoDmr+w8udRv6xvo42kkFGioaVRUk9fFI9Vqf53kHByG4h2MC9sOCPhx v0lLIJL3MbhFWeJZTjhJ2RMezT3zQV5PbNmXMPskMuhZg/XRXrmqYa4GmPmIdlaljTxB s4sQg7YY3ErALiCiRVCtkQoWrrVA2qpJf4u2yWufMwChVntnXlDL7RzcrwdiQWSwCn5p 5Qdg== X-Gm-Message-State: AOAM531ZjeY/MWD03LA+tdJ3+H9F3J1NXxeMASP6CrYeJKtFm++Yfgdl qbKrI+EPeUX6p+XLtYMkvhTdaPBDGX0mj9EN X-Received: by 2002:a9d:4709:0:b0:5cd:9619:890f with SMTP id a9-20020a9d4709000000b005cd9619890fmr13115445otf.118.1649798943160; Tue, 12 Apr 2022 14:29:03 -0700 (PDT) Received: from ripper ([2600:1700:a0:3dc8:205:1bff:fec0:b9b3]) by smtp.gmail.com with ESMTPSA id 123-20020a4a0181000000b00324a1217e96sm13290162oor.35.2022.04.12.14.29.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Apr 2022 14:29:02 -0700 (PDT) Date: Tue, 12 Apr 2022 14:31:17 -0700 From: Bjorn Andersson To: Vinod Koul Cc: linux-arm-msm@vger.kernel.org, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/3] dmaengine: qcom: gpi: Add support for ee_offset Message-ID: References: <20220406132508.1029348-1-vkoul@kernel.org> <20220406132508.1029348-3-vkoul@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220406132508.1029348-3-vkoul@kernel.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 06 Apr 06:25 PDT 2022, Vinod Koul wrote: > Controller on newer SoCs like SM8450 have registers at at offset. Add > ee_offset to driver_data and add this compatible for the driver. > > Signed-off-by: Vinod Koul Reviewed-by: Bjorn Andersson Tested-by: Bjorn Andersson Regards, Bjorn > --- > drivers/dma/qcom/gpi.c | 11 ++++++++--- > 1 file changed, 8 insertions(+), 3 deletions(-) > > diff --git a/drivers/dma/qcom/gpi.c b/drivers/dma/qcom/gpi.c > index 3429ceccd13b..0b402d923eae 100644 > --- a/drivers/dma/qcom/gpi.c > +++ b/drivers/dma/qcom/gpi.c > @@ -2152,6 +2152,7 @@ static int gpi_probe(struct platform_device *pdev) > { > struct gpi_dev *gpi_dev; > unsigned int i; > + u32 ee_offset; > int ret; > > gpi_dev = devm_kzalloc(&pdev->dev, sizeof(*gpi_dev), GFP_KERNEL); > @@ -2179,6 +2180,9 @@ static int gpi_probe(struct platform_device *pdev) > return ret; > } > > + ee_offset = (uintptr_t)device_get_match_data(gpi_dev->dev); > + gpi_dev->ee_base = gpi_dev->ee_base - ee_offset; > + > gpi_dev->ev_factor = EV_FACTOR; > > ret = dma_set_mask(gpi_dev->dev, DMA_BIT_MASK(64)); > @@ -2282,9 +2286,10 @@ static int gpi_probe(struct platform_device *pdev) > } > > static const struct of_device_id gpi_of_match[] = { > - { .compatible = "qcom,sdm845-gpi-dma" }, > - { .compatible = "qcom,sm8150-gpi-dma" }, > - { .compatible = "qcom,sm8250-gpi-dma" }, > + { .compatible = "qcom,sdm845-gpi-dma", .data = (void *)0x0 }, > + { .compatible = "qcom,sm8150-gpi-dma", .data = (void *)0x0 }, > + { .compatible = "qcom,sm8250-gpi-dma", .data = (void *)0x0 }, > + { .compatible = "qcom,sm8450-gpi-dma", .data = (void *)0x10000 }, > { }, > }; > MODULE_DEVICE_TABLE(of, gpi_of_match); > -- > 2.34.1 >