From patchwork Wed May 16 11:36:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 135996 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp805045lji; Wed, 16 May 2018 04:39:22 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrT2DphA+GCpJnzxjU+jr/S4Ef7FLZmMj7hyd1waeUYXJORJC2FpQIOpjUagl8/FQ2t8Pe2 X-Received: by 2002:adf:dc0d:: with SMTP id t13-v6mr463210wri.153.1526470762449; Wed, 16 May 2018 04:39:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526470762; cv=none; d=google.com; s=arc-20160816; b=ubhlXfUUauuWo3+6t+btonpLlSu23JdUWMmrDlpxNYGlbxKn4lGFAEeTYACAulU+Nw dMMA6JAC7tAX9Ok+IwUdrOoUv3dGeesg25Yfbk/l/gR9U0acl6XxtrIBoaJ9jeehvOOD zpHcOTTXh6f+7FQ0C0GxndCJLdjHQt5wNpWI31DrgAIAdbE2YAktutR8NVcZLtC96oqA JflgcBnIOIdot5zb+c0iEC2QOkCKDuFfijaLHYv8v9TW8DVcre8TjKDSNFVbAqMqD0Dk Uzfdh3tiUuGQ7aqd0c6Xh4AplYUu6rU7qD/7yX9Gsv3dezlKngwRFmQiMUKQm1P8XJR5 KngA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:references:in-reply-to:message-id :date:to:from:dkim-signature:delivered-to:arc-authentication-results; bh=JIg7nMUzU+w9UO/UXuBeCwC/wHGljvrJWSlP2B3z080=; b=Hv26xRJm3itXFV4kUVLofBpEXXpvK4unCuBk/KXQ1Co0YNu+JzMVClveYsxUUb/pQ/ RY3VhgU6DVj7ocCQjAjt/xyHZK9p5f8QQW0rexmZPm4eqnAIsHs4UbDPtrkDce5uH766 GWdi19+bM1Jgfdfu6Q8r/0r7RcVGjps69yRxXoVE3B0WFRzDXU3l62nTfNBNOqYqOS6u 4IwN11K641sPATIhjeT4DmeFpmzAB2KTYOXtZNj7xNyOuQGLOOjFh8ymjHKzYsCZ1T+M zt2Lv2FI289So+z8oa8CetuVtMCbPp1y6TdX14LP1pmh3IpCnDrmphKC7qbn+Qz3TrPd mxOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=QdR4wsqt; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTP id z72-v6si2161011wrb.25.2018.05.16.04.39.22; Wed, 16 May 2018 04:39:22 -0700 (PDT) Received-SPF: pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) client-ip=77.48.224.243; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=QdR4wsqt; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id D73402673A4; Wed, 16 May 2018 13:39:14 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 7B0A2267365; Wed, 16 May 2018 13:39:11 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail1.perex.cz X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_PASS autolearn=disabled version=3.4.0 Received: from mail-wr0-f196.google.com (mail-wr0-f196.google.com [209.85.128.196]) by alsa0.perex.cz (Postfix) with ESMTP id 920A526707F for ; Wed, 16 May 2018 13:39:09 +0200 (CEST) Received: by mail-wr0-f196.google.com with SMTP id g21-v6so560845wrb.8 for ; Wed, 16 May 2018 04:39:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=orK3jueeD8iKHAfbK5diacUPArijIBIe08XpYi0WLvQ=; b=QdR4wsqtI2+tyCn+geUPjY5TXTtrJIPqA+e6ezV2Jh0xD95sG0RxXFz398XHZAA/X9 m4Xz0DxRp6GThbGqkeBFgu4zt6mQTnHsCPXDPmDHapsl1qiL21FBInsZNFu9QrYxORok 93G8j4hqBjG9X7XOIutmrda7FpF4zUlCglydg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=orK3jueeD8iKHAfbK5diacUPArijIBIe08XpYi0WLvQ=; b=XGDlr8xsrJ4MqI2wkUwmJtJOXSpo7BHRpEct3lPuvuOY2OyhFFIfAxt22AfjxXTXf4 /mtORxjxzSDIxF4CEscG8Y2SfZfiitcKjekJqGBowtxoEHArQRB20N+4xkDMKZ/RSZKK 20BmRxoI+s6mBEskIaQsbJYwp9K7iTmBpxcY5oxKvblAjeHhaaRV577Y3+vCaaE8g70R Axahd8ugQ2h+JsGMC9QtZKThYKqvk4nLwOdaWijiohYEF9Pl8qZj687TAR6SXZTXylb0 dUnNQ7dPds+B7+B0MBHUrfcRKUciEwXpT9sYwKQ4o3yP310E0heQPn/pXH5sI7tH9RHY K8RQ== X-Gm-Message-State: ALKqPwc8szsOLJG7ceL4//RnkzEaeLEpwisSO9MlNXee6L8DYBp71fPP 1IN6iXGHFRWf2zsW2tW8UNYnsw== X-Received: by 2002:adf:c613:: with SMTP id n19-v6mr492643wrg.177.1526470749102; Wed, 16 May 2018 04:39:09 -0700 (PDT) Received: from localhost.localdomain (cpc90716-aztw32-2-0-cust92.18-1.cable.virginm.net. [86.26.100.93]) by smtp.gmail.com with ESMTPSA id k126-v6sm4504263wmd.45.2018.05.16.04.39.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 16 May 2018 04:39:08 -0700 (PDT) From: Srinivas Kandagatla To: gregkh@linuxfoundation.org Date: Wed, 16 May 2018 12:36:36 +0100 Message-Id: <20180516113642.28136-2-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180516113642.28136-1-srinivas.kandagatla@linaro.org> References: <20180516113642.28136-1-srinivas.kandagatla@linaro.org> Cc: alsa-devel@alsa-project.org, Srinivas Kandagatla , linux-kernel@vger.kernel.org Subject: [alsa-devel] [PATCH 1/7] slimbus: core: add of_slim_device_get() helper X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org On SLIMBus controllers like Qcom NGD(non ported device), controller can request logical address once the remote side is powered, having a helper function like this to explicitly enumerate the bus is helpful. Also codec drivers which are taking to interface device would need such a helper too. Signed-off-by: Srinivas Kandagatla --- drivers/slimbus/core.c | 39 +++++++++++++++++++++++++++++++++++++++ include/linux/slimbus.h | 2 ++ 2 files changed, 41 insertions(+) -- 2.16.2 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel diff --git a/drivers/slimbus/core.c b/drivers/slimbus/core.c index 7ddfc675b131..88248a4ecad9 100644 --- a/drivers/slimbus/core.c +++ b/drivers/slimbus/core.c @@ -356,6 +356,45 @@ struct slim_device *slim_get_device(struct slim_controller *ctrl, } EXPORT_SYMBOL_GPL(slim_get_device); +static int of_slim_match_dev(struct device *dev, void *data) +{ + struct device_node *np = data; + struct slim_device *sbdev = to_slim_device(dev); + + return (sbdev->dev.of_node == np); +} + +static struct slim_device *of_find_slim_device(struct slim_controller *ctrl, + struct device_node *np) +{ + struct slim_device *sbdev; + struct device *dev; + + dev = device_find_child(ctrl->dev, np, of_slim_match_dev); + if (dev) { + sbdev = to_slim_device(dev); + return sbdev; + } + + return NULL; +} + +/** + * of_slim_get_device() - get handle to a device using dt node. + * + * @ctrl: Controller on which this device will be added/queried + * @np: node pointer to device + * + * Return: pointer to a device if it has already reported. Creates a new + * device and returns pointer to it if the device has not yet enumerated. + */ +struct slim_device *of_slim_get_device(struct slim_controller *ctrl, + struct device_node *np) +{ + return of_find_slim_device(ctrl, np); +} +EXPORT_SYMBOL_GPL(of_slim_get_device); + static int slim_device_alloc_laddr(struct slim_device *sbdev, bool report_present) { diff --git a/include/linux/slimbus.h b/include/linux/slimbus.h index c36cf121d2cd..efa36a852dc3 100644 --- a/include/linux/slimbus.h +++ b/include/linux/slimbus.h @@ -138,6 +138,8 @@ static inline void slim_set_devicedata(struct slim_device *dev, void *data) dev_set_drvdata(&dev->dev, data); } +struct slim_device *of_slim_get_device(struct slim_controller *ctrl, + struct device_node *np); struct slim_device *slim_get_device(struct slim_controller *ctrl, struct slim_eaddr *e_addr); int slim_get_logical_addr(struct slim_device *sbdev); From patchwork Wed May 16 11:36:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 135999 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp805430lji; Wed, 16 May 2018 04:39:39 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpFw4R0aN+LaMwzvBpBWKdLWF0UQwq8X6J7RkMUbMc+zaLiqzHE6RQOwDThOe9VqCAyJ7Xi X-Received: by 2002:adf:83c6:: with SMTP id 64-v6mr551654wre.270.1526470779824; Wed, 16 May 2018 04:39:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526470779; cv=none; d=google.com; s=arc-20160816; b=Ljizvo/TII0/xVYJXHN+k0cq1I3mR4tO9gATfMmbn1qRZqr1W/eeUeYgsgE0//c7xF y1EdDAtHP4gipJxMLrnIWI9YjIj9DOn+2qHF12h5pNacK5uqsQzy+uVq0nzEa5fBAWng ZiYXEGGigR0wIX0kK2+a8oovPaNitFshSd8+RvC2C1nJH6B69ts728oqig1/m4LO+aKd dTPBRLUgGdqFcuZxfzgYLeWEJiEPC4wZ81hm6Si3shGxNxLo2QhP2HwcL/kHA69H2Tgn +y1KzbsrQUSayWiuVCUNB2IQxMAS6Pb7Rk70GXHwoS424ipqvtgJ8ESGeDQbho+P681e vp8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:references:in-reply-to:message-id :date:to:from:dkim-signature:delivered-to:arc-authentication-results; bh=p2j0sFpbJfjNbr/fmsy9hy7alF20eImaNIL5vi2I5g0=; b=DWVpmaVhZTdTe5pXqXj/GFR6O6Iu5KIdl38PAfLBVuZW+AlmVb0HN77DwZHP7dFUQB pZq2IZh4+8DWOBfXxspcfBPKzhr6YREyJyivwhixPIFsEQtv1kkAzFvi0e0Awwj0jt7Z cyZ6v/9unizNPrpPu9QnFeUzqi5J+lNtABC2Ddmz63sf07GgGsJ05WHcTFial7E5N+lE +gH8jtp07bzPiJoMmKG8+Qq9HsXY+LiLOKSxfVyjYgr89OrIn2u+HD2uvxSjMrZju+8b bAn3YbgLqaHuw5//YPmSi70iqmlh87Jvkfuol/itQNpah6M9wNnQbikhafM/RqaCjIRK bU2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=XPzI/tBG; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTP id u9-v6si1903778wmg.105.2018.05.16.04.39.39; Wed, 16 May 2018 04:39:39 -0700 (PDT) Received-SPF: pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) client-ip=77.48.224.243; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=XPzI/tBG; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 30AD1267611; Wed, 16 May 2018 13:39:20 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 1CF56267265; Wed, 16 May 2018 13:39:12 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail1.perex.cz X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_PASS autolearn=disabled version=3.4.0 Received: from mail-wr0-f196.google.com (mail-wr0-f196.google.com [209.85.128.196]) by alsa0.perex.cz (Postfix) with ESMTP id 34DDF266F44 for ; Wed, 16 May 2018 13:39:11 +0200 (CEST) Received: by mail-wr0-f196.google.com with SMTP id v15-v6so554363wrm.10 for ; Wed, 16 May 2018 04:39:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=kop1X9UoEwWP69B2WuA6tdzOmbS3f24bCaePwaN7Tu8=; b=XPzI/tBGGW06nb2vpa7Ryqhat1kViXmWM5P3nR6OcfSn58u6iop2tDYCT6IQotgxmL hADNiZ2wbKNA5hzSPJ3L5K96JGaTLJbTu4MCH6XJ3vAow8vh76wZjAXTzZig/3BNwIH4 1xhMUTOj/Jme/jWk14v6cgbj6FTDkQCeYDegU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=kop1X9UoEwWP69B2WuA6tdzOmbS3f24bCaePwaN7Tu8=; b=BouQITf2an9qNMXmpvsPmSDcLbOdtGEcRwDcHJivyFyM6tYLwekpnnCYQsHQqp2TwV 8PaxBAjc1mIbOXMAIUpwXbB8Cyjkx3avRvbhrhVmFiim+c3AYIDuY9dlIHy9tKpBJb69 F896+5RzG0kQ5e1GYqxgVh0U/IKX4wyvKNMO2eQ2m3qwgd8Zz5a/lHuvO0YR7Tk8W0Xi 49d4cBux5ZOqzolmTy7sPwMudA7h1EYlv9Xy5KtvxdQsjksq0O4BzIDuFZDzYfdt8BAQ M0nW/1xYC62nYTUCmFgQ9E7z5DVt2ieoInVD7QftRpSK1sryDzr+cKoBfem3kOiztbv1 0i0w== X-Gm-Message-State: ALKqPweYSo5HXbjt5/jtA937ihyKGUs7KYuTHBGFvVYCJmhUAk8PiSKc GoF4Nzdxx+gNHHimXmgSGecOYWa9CXk= X-Received: by 2002:adf:bd03:: with SMTP id j3-v6mr581637wrh.138.1526470750917; Wed, 16 May 2018 04:39:10 -0700 (PDT) Received: from localhost.localdomain (cpc90716-aztw32-2-0-cust92.18-1.cable.virginm.net. [86.26.100.93]) by smtp.gmail.com with ESMTPSA id k126-v6sm4504263wmd.45.2018.05.16.04.39.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 16 May 2018 04:39:10 -0700 (PDT) From: Srinivas Kandagatla To: gregkh@linuxfoundation.org Date: Wed, 16 May 2018 12:36:38 +0100 Message-Id: <20180516113642.28136-4-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180516113642.28136-1-srinivas.kandagatla@linaro.org> References: <20180516113642.28136-1-srinivas.kandagatla@linaro.org> Cc: alsa-devel@alsa-project.org, Srinivas Kandagatla , linux-kernel@vger.kernel.org Subject: [alsa-devel] [PATCH 3/7] slimbus: core: add need_tid flag to slim_msg_txn X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org Add need_tid flag to txn, this flag can be set before start of transcation. Having this flag would avoid calling slim_tid_txn() multiple times on the same txn. Also it is handy for controller drivers too. Signed-off-by: Srinivas Kandagatla --- drivers/slimbus/slimbus.h | 1 + 1 file changed, 1 insertion(+) -- 2.16.2 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel diff --git a/drivers/slimbus/slimbus.h b/drivers/slimbus/slimbus.h index 79f8e05d92dd..c0450f469e07 100644 --- a/drivers/slimbus/slimbus.h +++ b/drivers/slimbus/slimbus.h @@ -113,6 +113,7 @@ struct slim_msg_txn { u8 la; struct slim_val_inf *msg; struct completion *comp; + bool need_tid; }; /* Frequently used message transaction structures */ From patchwork Wed May 16 11:36:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 136000 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp805554lji; Wed, 16 May 2018 04:39:47 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpT+ZFLf+GfBMMz+HAeV+J+3/gzaJAEgeiYBF8kVt1HbPhqHpt9DSsWSw4V1Lqc2bFLYOE5 X-Received: by 2002:a1c:7c05:: with SMTP id x5-v6mr347395wmc.7.1526470787103; Wed, 16 May 2018 04:39:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526470787; cv=none; d=google.com; s=arc-20160816; b=ToDwkc+ye3fP/t67DA7HlRXSh4ScGiDenYUcKtuyd4oDV5VRaUo+MYlJMb3Bb2LuqG o+Yb3nt8M3k6mbPqFUsScPafxSIME90AP4lGEdmM2xcQ4D6Z1GrspG/hoJx4oBM3+DG0 bf0ynovzHYpEo1Cek3O/rQM0KkiUzmBMV5JisQlxfLfu2jhF+ymphY6ZRajz4OAxVOzL haGc+bNuaVcpNZ0lLw1uxqPmPnfduNaEdRnE8S4iRjOdT6dz4/zsEnfJ3rYOqfWjxDbV 2IlOlBPGHSjA0XEnj3xxK7wEJu0EFaPJauXOGzOeA+c5LP/1+BStzZfIjDhFSF4TXaTQ QDVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:references:in-reply-to:message-id :date:to:from:dkim-signature:delivered-to:arc-authentication-results; bh=PNqhwKyaKLYYvhsCroPxiT51DupikGSY1wVnps+/2Ic=; b=eL+lYGN3zK+RXJgPw6jfBWsieiSxXV67Q2CxwDZ6rIqrwNK7bPrBsXRY9qsh3ZObUL Rlutb5bLD9gR9npFoVBu5Z40UypjEK+iGy2OQqdHXAIo3Zv+Q/QrMCxKubsRuWCghRtL yrGaroODJVAlX+1RFl1ll0MCKUjyib7c2vfyYSlabdxbWdBjZoZAMy+++9GkaM6Klt6M oZkz1F2z+gJIo78bOQoVrymaBAUeSFCWtC3mClD8A1+myw1Xcu8OPXth5iFtZmgFlpgS 36+izodZMo5uE1d+L+kzrOUgiQxinvv/jgqLYApLpAHZspyxYCGQWTCl7B/Y8lrxi/pd RzVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=JxE4LVYo; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTP id s2-v6si2044964wrs.116.2018.05.16.04.39.46; Wed, 16 May 2018 04:39:47 -0700 (PDT) Received-SPF: pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) client-ip=77.48.224.243; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=JxE4LVYo; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 8EFC226765C; Wed, 16 May 2018 13:39:21 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id F146A267412; Wed, 16 May 2018 13:39:13 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail1.perex.cz X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_PASS autolearn=disabled version=3.4.0 Received: from mail-wr0-f193.google.com (mail-wr0-f193.google.com [209.85.128.193]) by alsa0.perex.cz (Postfix) with ESMTP id 46858266F44 for ; Wed, 16 May 2018 13:39:11 +0200 (CEST) Received: by mail-wr0-f193.google.com with SMTP id y15-v6so550943wrg.11 for ; Wed, 16 May 2018 04:39:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=DnQSKW5o2YhxDqE/nKAX2tk0JqwF4Q5eataCmZqSwi4=; b=JxE4LVYogDmAomdU5fIDBtE9dybuP6+GwKeuVEy1gSbe/JCt+OUT+qo1HazEnPBV4H vlFiiIPrrQa1A8M93ZEjjxmffcolkyTMxtI+StRHVCXC0Dc0UI+kcU1WazDvnq6I2DVk Ko/xulpO3uBgmw/lff5Kv6K3kacw8fkJ5Pdew= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=DnQSKW5o2YhxDqE/nKAX2tk0JqwF4Q5eataCmZqSwi4=; b=QA0uvT82OzFn6HEo1FLDtIG8izqKy84Ty5czBluBL33lGCGH9anTbU8jadMTzXigku +hK+ggGmWJMRNrQs2tMHvAZCTTpbs+cZjiE/pfHb44cml9pTdWhgthgD6pDvrQhgcq2R SgF2H8MznYZFWUVH4DbXKRobCRmuqR6scO/KOJfTS149MOVYQZ8hLx7i7I85r42wp9ZH gwF3Ja14qv5QulAzcZkyqHhBKQddSiuLDADxsCwwwWLZ4CNf28lv7QW1+iDTkT7zMdYt XdeRgTNAaYwbbOlum+Gg+pgW/NzXN+3z5F98Xs6CmDwRdmHjUkssY37yxj9lpteUuywe nYbA== X-Gm-Message-State: ALKqPwdDR+OyN5slUUuKsTXwwUQnoQVnJ87kGBUC4PqmlezyTv9LuT20 bWjyARTOFmQUZUoXp8awbHLg8QG0pms= X-Received: by 2002:adf:87e1:: with SMTP id c30-v6mr506845wrc.246.1526470751710; Wed, 16 May 2018 04:39:11 -0700 (PDT) Received: from localhost.localdomain (cpc90716-aztw32-2-0-cust92.18-1.cable.virginm.net. [86.26.100.93]) by smtp.gmail.com with ESMTPSA id k126-v6sm4504263wmd.45.2018.05.16.04.39.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 16 May 2018 04:39:11 -0700 (PDT) From: Srinivas Kandagatla To: gregkh@linuxfoundation.org Date: Wed, 16 May 2018 12:36:39 +0100 Message-Id: <20180516113642.28136-5-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180516113642.28136-1-srinivas.kandagatla@linaro.org> References: <20180516113642.28136-1-srinivas.kandagatla@linaro.org> Cc: alsa-devel@alsa-project.org, Srinivas Kandagatla , linux-kernel@vger.kernel.org Subject: [alsa-devel] [PATCH 4/7] slimbus: messaging: pass correct wbuf X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org There seems to be a typo while filling msg for slim_write, wbuf is set to NULL instead of rbuf. Signed-off-by: Srinivas Kandagatla --- drivers/slimbus/messaging.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.16.2 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel diff --git a/drivers/slimbus/messaging.c b/drivers/slimbus/messaging.c index 457ea1f8db30..5a2ff01b394c 100644 --- a/drivers/slimbus/messaging.c +++ b/drivers/slimbus/messaging.c @@ -307,7 +307,7 @@ int slim_write(struct slim_device *sdev, u32 addr, size_t count, u8 *val) { struct slim_val_inf msg; - slim_fill_msg(&msg, addr, count, val, NULL); + slim_fill_msg(&msg, addr, count, NULL, val); return slim_xfer_msg(sdev, &msg, SLIM_MSG_MC_CHANGE_VALUE); }