From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS,URIBL_BLOCKED, USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0BDFFC282C0 for ; Wed, 23 Jan 2019 11:07:40 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9146821019 for ; Wed, 23 Jan 2019 11:07:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="NY7JGAlt" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9146821019 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=fail smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.91) (envelope-from ) id 1gmGNG-0006kj-Td; Wed, 23 Jan 2019 06:07:14 -0500 Received: from mail-pf1-x443.google.com ([2607:f8b0:4864:20::443]) by shelob.surriel.com with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91) (envelope-from ) id 1gmGNE-0006kd-O4 for kernelnewbies@kernelnewbies.org; Wed, 23 Jan 2019 06:07:12 -0500 Received: by mail-pf1-x443.google.com with SMTP id 64so1010818pfr.9 for ; Wed, 23 Jan 2019 03:07:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=sclTw/fa7BkI0RlNXjjJVWdpWxnpCFmNH3uHwBD9chE=; b=NY7JGAltMv97Efocj14NRAblKN5tgMWCMzr8URwwDBFaIKE0XlP9q8G75RTwWgMXY4 phFeq0B8sySXWmAE6hMt7vBg9fzx4MSNRtP2Zxr/mUp080Ww9j0B37FO43AlsIYkCb0l WBuGXM1ecl8yz+csJ+vzEVo1YTaiR0O6zfwUjywxFxghLCsHgc4DvpafpZylfP31+Ae1 BfnFKheLtqFiJvCgBqnNcWipm7whVbu6/YNX5P+J6ryWRzKIK9b6vN71fwtU8vCTiTBg HivzBYAKqQ2w5ItEdAh1CfBhVU+SeUi4tJ8srJv3+ZugZfv3OvF/lkiZxf+5+2uPKjBx Cdkw== 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:user-agent; bh=sclTw/fa7BkI0RlNXjjJVWdpWxnpCFmNH3uHwBD9chE=; b=PhMbhvX3AuLf2GxfnQxHiOVyNllY2/rujNIQ9ak6MCqFhs3Mn8890bJXQ2f0sprv++ Z6yekjmx2FqPBuQo5b/Pr5ppcIVX5MJU6meH5Xqy8buxD3FCetSlReON/f2OCSM3yRWr ktN+bvfSSBSK7J72WCyDf/bIkqFMQ1YWVL/7nIisuEkqHHlnhHTFjkWWqVVCjoeIr9qV YSAKjiuXvI+BhlZfCg7/zgvtiY/r9Q8IAeMcwysYDE5ZWPNiO5OdiH/51ejhx1itwk1f od//q3wP34iF+bcbx1ye8RrTVLGjMms4iGhWYkstgE1pYtL4z/TS9PF0UMFMAiq1WTPw SzVA== X-Gm-Message-State: AJcUukdAicRj6zbNF0HiQ9WIEGVSkWyVJ+3vSq/LWBzcEAqmnUVQS0m4 BgfflLG0ZFlFvnomjvVBvbk= X-Google-Smtp-Source: ALg8bN7Oq8UilWiD4y5aCdAJP+zC8MQIa2SV0a2e2osCVZcWFRgS11jt7axzEb6CyOf6bb9nCrcjfw== X-Received: by 2002:a62:4e16:: with SMTP id c22mr1602254pfb.167.1548241570344; Wed, 23 Jan 2019 03:06:10 -0800 (PST) Received: from himanshu-Vostro-3559 ([103.233.116.134]) by smtp.gmail.com with ESMTPSA id v191sm43817968pgb.77.2019.01.23.03.06.08 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 23 Jan 2019 03:06:09 -0800 (PST) Date: Wed, 23 Jan 2019 16:36:05 +0530 From: Himanshu Jha To: Bharath Vedartham Subject: Re: drivers: iio: Adding channels to the simple_dummy module Message-ID: <20190123110605.GA18415@himanshu-Vostro-3559> References: <20190122180318.GA21439@bhar.linux> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20190122180318.GA21439@bhar.linux> User-Agent: Mutt/1.9.4 (2018-02-28) Cc: kernelnewbies@kernelnewbies.org X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kernelnewbies-bounces@kernelnewbies.org On Tue, Jan 22, 2019 at 11:33:18PM +0530, Bharath Vedartham wrote: > Hey everyone, > > I am trying to get started with the IIO subsystem by doing the following tasks: > > https://kernelnewbies.org/IIO_tasks > > In task 3, which requires us to add 3 channels to the dummy_device, I > have added the structures in the dummy_channels array(which is of type > struct chan_spec), similar to the other channels in the dummy_channels > array.(in file drivers/iio/dummy/iio_simple_dummy.c) > > I also added elements to the enum iio_simple_dummy_scan_elements for the > scan_index val.(in iio_simple_dummy.h) > > I recompiled the kernel and loaded the modules iio_dummy and > iio_dummy_evgen using modprobe. > > is the right approach. I am not able to see any new channels being > added to my /sys/bus/iio/devices/iio:device0/ directory? Did you followed the configfs setup as illustrated in the aforementioned link ? Did the modules got loaded correctly ? And if you're doing Task 3, I'd assume that the previous tasks were done correctly ? > printk is not printing to dmesg. I put printk in the probe function Without any logs or diffs, it's hard to predict about where exactly you're doing wrong. Btw, we do have a IIO mailing list as well: linux-iio@vger.kernel.org -- Himanshu Jha Undergraduate Student Department of Electronics & Communication Guru Tegh Bahadur Institute of Technology _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies