Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp941590pxk; Mon, 31 Aug 2020 05:48:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/Nc4sLIlfrW8xJTqN2vqs5WmDPD49z43numudAQRLboUjgzyWRH/i+ZSxet19PvjDhh4i X-Received: by 2002:aa7:c707:: with SMTP id i7mr606604edq.107.1598878133612; Mon, 31 Aug 2020 05:48:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598878133; cv=none; d=google.com; s=arc-20160816; b=oRZuD5RgSmHvQxH1Ai7K5r4amgq2Ofq3gK4KJ8rSw+WWi8dNUREOqTPU+UtQjWoz3L glZ6G80ICSHjHTafSOTf7Qc271DdIeHCaBjbPRRPNzd9rtJ5f3m/ZmoVrvsVZmBD1x9e 93U/FHQO18aQcw+sOB+GcV9g80IytPu99qgv2l+xcDGEMsk4JgsFL5y0d3QZT9syijvS VaNZDJJR3G00AbFuJvCsGto0M6RKeIAFIz+KO1Q8yuahYLHxxssxFIhDow0R7wtXEbVr AG+8ZSBupe9xm/OksBtgsMS5xJHZDiZUkRSUpU8Oqw3gXBwU7HKrW9gjrjHcXNkLoeE+ fYjQ== 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=6lnF3FH7UL4wF4BRElMAjQs3z46mN3BrzdHf7XHwbb0=; b=QRH3XuyE2NOHfGbkpA/p35E4eRWDp6HnHDC+mi/pJswVDo+rf0eDFaD7ijb3btxKqM QOumfVsoNkalNRrBP7KQSCJ74QnEpRdeZcuOheK2Mj0gIFbDPQdmqzS9bzNDHE1GwOQ5 R3zBsx1YvzDzkXJ9+3IpVOVBm2qgLU9uJV5c5RrffLnr4wMzC3S7oOUdi995tjPgkbZa VX4JtFJ/sEiOCfNv7XJUNeZlo4FbZ4EQfJ2oim+BdXoPJMVSPrw2cpzldKkOzCtosNn4 2RqbYs/K/xjjMcTxVa4Ptl8bZrXtwbZdL8VICjiF/7b2kDM5UB8s5ssrtZIjZvojmhcC GH4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=lxiiZNEZ; 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 jz19si5948623ejb.241.2020.08.31.05.48.30; Mon, 31 Aug 2020 05:48:53 -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=lxiiZNEZ; 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 S1726468AbgHaMsB (ORCPT + 99 others); Mon, 31 Aug 2020 08:48:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726167AbgHaMsA (ORCPT ); Mon, 31 Aug 2020 08:48:00 -0400 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E40BC061573; Mon, 31 Aug 2020 05:48:00 -0700 (PDT) Received: by mail-pf1-x441.google.com with SMTP id c142so511952pfb.7; Mon, 31 Aug 2020 05:48:00 -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=6lnF3FH7UL4wF4BRElMAjQs3z46mN3BrzdHf7XHwbb0=; b=lxiiZNEZBN77i9jF612V/wsNkgtzXI8os/Z1/spgkCv9GhgyPOseJ0o2v5kCRovjcH rhHjD839ICtZfkLe1vmV7E05EQFctJMrEaaM4cedBDoPzXyQuDUj9lb5Sj6cP+Km5wP7 CoTUha8o34TJ1nohOcf3JmBTC4QDKF3WXsZQwvceo6hUDEVgD48e494+AFLL5t9EwvjT a4dTnljGfvVR1xsiMGKBOaAovhbSN64u3bitgSbbUZpSyvvPRBoHgnNAf+2kKGk43FoG WIs0rbPK+vjgWYj1ZJlRoRmlFsjqJOS17dxXwR6mDqMcsoAEEGyA98P7EEHl9/TtnmcY cz/w== 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=6lnF3FH7UL4wF4BRElMAjQs3z46mN3BrzdHf7XHwbb0=; b=FMZAo+u+ZPlb5+gfN+XtYP1Vtr+rbrqX3HKa1ft2ejBG2PK0SCtQY65yYrIVNfzHbx 3NZu8sUPs4+jLgUw+YR/mGjCOYpjyDiPtFSXQMSAE4vdWB0NBhk9HIPHEMsriA2kf1DG 9tHE9YK6iGiHOMoULgcXInYekmRnmr3q5r27drvfUyiBl/tvFEOETyZmRtZ+VMMjMgdv U0pRtCHAM2ZwEkCXkWTMccR9PWXYCy04mIi8mgn1+edcLZ8+6v3J0UYnL/jbaVoCz6dK z8KqvBugM0JqAuvBm//eSne6ob6a4yzZWdDhPSHGSC3laF3YbziTraq+1mJRsN599qb1 0CHA== X-Gm-Message-State: AOAM530dynHIfO8eRfzYJoNFr+APqAPeMz94LPdkltkrnEHL6rl8JCey cgbBd520TM2clhIC+UOO71vr/2dkO141azofbAk= X-Received: by 2002:a63:d648:: with SMTP id d8mr30153pgj.4.1598878079489; Mon, 31 Aug 2020 05:47:59 -0700 (PDT) MIME-Version: 1.0 References: <20200824054347.3805-1-william.sung@advantech.com.tw> In-Reply-To: From: Andy Shevchenko Date: Mon, 31 Aug 2020 15:47:42 +0300 Message-ID: Subject: Re: [PATCH] iio: dac: ad5593r: Dynamically set AD5593R channel modes To: AceLan Kao , Alexandru Ardelean Cc: William Sung , Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron , Hartmut Knaack , Peter Meerwald-Stadler , linux-iio , Linux Kernel Mailing List , 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 31, 2020 at 3:45 PM Andy Shevchenko wrote: > On Mon, Aug 31, 2020 at 2:28 PM AceLan Kao wrote: > > This patch is mainly for Advantech's UNO-420[1] which is a x86-based platform. > > This platform is more like a development platform for customers to > > customize their products, > > so, specify the channel modes in ACPI table is not generic enough, > > that's why William submit this patch. > > > > Are there other ways to specify or pass values to the module without > > using module parameters? > > It's good if we can leverage sysfs, but I don't know if there is one > > for this scenario. > > Can we provide DT bindings for that and use then in ACPI? ACPI has a > possibility to reuse DT properties and compatible strings [1]. As far > as I can see the driver uses fwnode API, so it supports ACPI case > already [2]. So, what prevents you to utilize 'adi,mode' property? > > Also, we accept examples of ASL excerpt in meta-acpi project [3]. It > has already plenty of examples [4] how to use PRP0001 for DIY / > development boards. > > So, take all together I think this patch is simple redundant. One more useful link is SO answers on the topic: https://stackoverflow.com/search?tab=newest&q=prp0001 > [1]: https://www.kernel.org/doc/html/latest/firmware-guide/acpi/enumeration.html#device-tree-namespace-link-device-id > [2]: https://elixir.bootlin.com/linux/v5.9-rc3/source/Documentation/devicetree/bindings/iio/dac/ad5592r.txt > [3]: https://github.com/westeri/meta-acpi > [4]: https://github.com/westeri/meta-acpi/tree/master/recipes-bsp/acpi-tables/samples > > P.S. Jonathan, it seems this driver has artificial ACPI HID. We > probably have to remove it. However, ADS is indeed reserved for Analog > Devices in PNP registry. Can we have AD's official answer on this? > Cc'ing additional AD people. > > > 1. https://www.advantech.com/products/9a0cc561-8fc2-4e22-969c-9df90a3952b5/uno-420/mod_2d6a546b-39e3-4bc4-bbf4-ac89e6b7667c -- With Best Regards, Andy Shevchenko