Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp464882pxk; Sun, 30 Aug 2020 10:09:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/9yfWFx3RvCIM92FoTNEdizC/OCWjn9AASIbfgj0zmL4aST7QCuKHwIX8e/SGyLjdmYTI X-Received: by 2002:a17:906:8559:: with SMTP id h25mr2742608ejy.536.1598807381376; Sun, 30 Aug 2020 10:09:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598807381; cv=none; d=google.com; s=arc-20160816; b=G1BPyImhJtzLb9A4EN61Jp+JdiCzP/eH1JkelA82LibxwUk/xXSzRcDkD17ZNTrQtn KG0PnRLdaznP5aNVazs3gSTbZgntqw8r/fy6pym8i+g58k2Dd1n99fzLQYZjh5fmgC0o LGftEjbf6JgvM5S+W23XSHf4ibttyyIITtUStDUxoO5UpaJbsIdKjkKMScO37OUM29O0 fPhgLgtx0qTZMYNlxb2aAu0YtRomYArqCYTppHHnUDAOYFwxTK1An44HnnACP/3Y2JKg PwOAFQIabeXqdTUSY8q//MVuncXrdOpcdt6hLgYFypuznUdQIZRPZuTRWjGuUHQjXvnz FJzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=gMjyFGBWWFv0LuuBdjLpLERWkVOrqJ19BFy0/U/TZ4k=; b=Bdo8WaPQ0MYQUO+i4w7IZxuvFV4ti1Yul/izla7dryGIjO6LgNWSIQQFnQ/9wFyam8 hBcJTLm7D0drYUpVD8WRr8khhqVXxB013/fQXgvfBZzR7MJM7jEiX53THFneZVEPtOQf 0+h/YPW4TBfb9B8zfG7ySUSQJeLUxmQovleu475JLsd4E6e/uIWxW/vCvy2IvcNTI61D WiNqAHxjOrArqDBedjatQbnXBuL4aB0cBM+qg22I5hZr91YtnRHhAvQsWe6OqgYsc8su Zd+NYxMGwaBl+WvjIsk/lB7DOwPEx/8i8RGAVpAQSbW6UTa9KxTcGGcSfw3PSxLmAA7p JOzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ouJNefUD; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h9si3980348ejl.393.2020.08.30.10.09.02; Sun, 30 Aug 2020 10:09:41 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=ouJNefUD; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726179AbgH3RHc (ORCPT + 99 others); Sun, 30 Aug 2020 13:07:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726105AbgH3RH3 (ORCPT ); Sun, 30 Aug 2020 13:07:29 -0400 Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 796F2C061573; Sun, 30 Aug 2020 10:07:27 -0700 (PDT) Received: by mail-pf1-x443.google.com with SMTP id d22so3249058pfn.5; Sun, 30 Aug 2020 10:07:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=gMjyFGBWWFv0LuuBdjLpLERWkVOrqJ19BFy0/U/TZ4k=; b=ouJNefUDJiMdBSDEi5xOTaJJyioWu+vSjkCfg5bh70XhBqnuGzlDp4yA5MxbiWN4ub VDWR6TAeHIlrxIW4VsYEOgcOl4RtjUYcvbvqlVidmYMjnX/FTYxBvOAO/6jBblvHL1SH JTdEkalFmXccGDoeCkNjyHOneDOI0vnic0ENcWxGTg9ceuDHroYgZ+ndiPYB+DRBKZkS xWfQXqmMeUA0vkFuFO1Pv0GaHPzzbYyq/In8VrAMsFloRkYaudTsj/5qL1/jbbCSqSwp qQlyTOa6u/J4QCEyTDA/CKas2QpVni2ngYaevVEnAigjZUcWFGbiKSYIQpIJMSKl5qGU 4gCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=gMjyFGBWWFv0LuuBdjLpLERWkVOrqJ19BFy0/U/TZ4k=; b=FDeqO+6qQJez0NqYHEfeP9TgyO1fgdssX6rpuF93fLMaNGXwvcsoaP0oyAz3m6yW+8 /g/8Q0e22t8vRF0RjphGexQP2RkUoRXwtWhywLVWrTe5SAn8DEuGspuTNvZInCJ/0SE/ 3nXCRw9xtTY1u4oW6BEa1PSFqZ+ftoZ8dH4nwO9PIdp1+NAchZ8UbyEHmnfl6iPZh97c 25is1+Tm2vlkZFgRiDTHy81gSxUtPU5togUNonC7VJgkqnnHT+6GS+InMaE3WrqAGoXD nhCX2itqO9FefK3mj3ML+6X5p57I+9mFL4j+LtzF9CQvwYIFVJ27algwpCzwMs7Bxa8+ qsuA== X-Gm-Message-State: AOAM5309gxJFghFCSnxTOt/bsdSAgiG0+LTMc9PtFJywbn1zSipPeN6U yovaS45V/6q9K1Vi4WQr33h5NFGUZghR0/gZfWbEQgM/imDETw== X-Received: by 2002:a62:7c86:: with SMTP id x128mr1059391pfc.268.1598807246571; Sun, 30 Aug 2020 10:07:26 -0700 (PDT) MIME-Version: 1.0 References: <20200824054347.3805-1-william.sung@advantech.com.tw> In-Reply-To: <20200824054347.3805-1-william.sung@advantech.com.tw> From: Andy Shevchenko Date: Sun, 30 Aug 2020 20:07:09 +0300 Message-ID: Subject: Re: [PATCH] iio: dac: ad5593r: Dynamically set AD5593R channel modes To: William Sung Cc: Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron , Hartmut Knaack , Peter Meerwald-Stadler , linux-iio , Linux Kernel Mailing List , AceLan Kao , Campion Kang Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 24, 2020 at 8:54 AM William Sung wrote: > > To use ad5593r more flexibly, we use the module parameter to setting the > channel modes dynamically whenever the module probe up. > Users can pass > the channel modes to the module parameter for allocating the > functionality of channels as desired. NAK. We have a sysfs interface. > For example: > * Use in the kernel command line: > Users can add the module parameter in the kernel command line such as > > "ad5593r.ch_mode_cmdline=88001122" > > "88001122" means the channel mode setting for each channel. The most > left side indicates the mode of channel 7, and the most right side > indicates the mode of channel 0. > > * Use when manually probe the module: > Similar to the kernel command line usage, users can enter > > "modprobe ad5593r ch_mode_probe=88001122" > > to start the ad5593r module with the desired channel mode setting. Again NAK, this basically should come from Device Tree or ACPI. -- With Best Regards, Andy Shevchenko