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 EAE27C282C0 for ; Wed, 23 Jan 2019 17:59:13 +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 8EA5121855 for ; Wed, 23 Jan 2019 17:59:13 +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="YytYxBjR" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8EA5121855 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 1gmMnu-0003PQ-Ee; Wed, 23 Jan 2019 12:59:10 -0500 Received: from mail-pl1-x642.google.com ([2607:f8b0:4864:20::642]) by shelob.surriel.com with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91) (envelope-from ) id 1gmMnr-0003PK-V5 for kernelnewbies@kernelnewbies.org; Wed, 23 Jan 2019 12:59:08 -0500 Received: by mail-pl1-x642.google.com with SMTP id w4so1552774plz.1 for ; Wed, 23 Jan 2019 09:59:07 -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=hdIFXBb3vYQAIBt+jPzpMC57irhqruM9aYoZ5VD36v8=; b=YytYxBjRmMYzrn8dDkdNFntPMw0Rf2cZORjJ0elRFPbBJYt3dhkj0RETtT08/81+3a YovBaGMKXkwC92unFx9Ih1BZxi7PGTrQshoDI1ZJvoFH3s/j7uBErjelWeIhv0FZjOlg jl4LwT7dQ3MovlqEzQ3nvvQkhhvUoJSuMz580t8wCP1H6mBrHmMlVPiHRe6sk1ejNcdQ TQzNP24NKqkG1jyGBrFRjhjG7lcjXWnwXrna3R55PxSYtjCjfDH0Z1LBSL4SX9R6WQPN +5xHHPYySfO/WbQLeK1+MYZyP0zu/uMrBKN8Qi/Yw11g8n85XubdKYp/HEac2FFCjlas p13Q== 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=hdIFXBb3vYQAIBt+jPzpMC57irhqruM9aYoZ5VD36v8=; b=rzIEItj3awZNyMhScAVKDRjlXGzk3kbPs/j/Dqg3hbVCwRtBvfogzyyZWqSLjEkHKe ACBGGrcDJNQ7n1Sfg+iGL7TDBEIpNCi2MqF1zJhuzb0HCk3/44Lh/43Sfl05DE6HhLSF 7vt6Tn4S3LkmLAgH2hGDpdVQQQK9J7w4TmL4Tnnz3tJkQB4zljdgVOVbVTFANMN8Buab 4fx2QbVG1VtxNopzHZ+Zn3N3ItVVTNrULFwnIIzZ1tIMUZ39AYwrPXNDZSjxZSLmtKCO Mea7VjbidhDU4ISFvRc0DWO5YNt3p52ZaqNlN5wbHFP06oSDOox6zq6vfQT5ib+/Y5G5 CpXQ== X-Gm-Message-State: AJcUukfCSXjcZxqkbC46NJcmZuAF1cipIUS63mxuZkFFI60/hJwtUJEc bK65EmKPqRXcxQNUxRLPC3AK4BAF X-Google-Smtp-Source: ALg8bN5Lsu/TqXXRyZuysOSyEG4mqMszoNXGnGKqsYRsotRiZEAV2Q5JqIIgnXB9PDjYvHEkzbOPaw== X-Received: by 2002:a17:902:583:: with SMTP id f3mr3274741plf.202.1548266285889; Wed, 23 Jan 2019 09:58:05 -0800 (PST) Received: from bhar12345-VirtualBox ([103.110.42.34]) by smtp.gmail.com with ESMTPSA id x186sm24114537pfb.59.2019.01.23.09.58.04 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 23 Jan 2019 09:58:05 -0800 (PST) Date: Wed, 23 Jan 2019 23:28:02 +0530 From: Bharath Vedartham To: Himanshu Jha Subject: Re: drivers: iio: Adding channels to the simple_dummy module Message-ID: <20190123175801.GA1087@bhar.linux> References: <20190122180318.GA21439@bhar.linux> <20190123110605.GA18415@himanshu-Vostro-3559> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20190123110605.GA18415@himanshu-Vostro-3559> User-Agent: Mutt/1.5.24 (2015-08-30) 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 Wed, Jan 23, 2019 at 04:36:05PM +0530, Himanshu Jha wrote: > 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 Thank you for your time. I have started another thread where i have added a diff. I am really not used to using mutt to add diffs,logs in it etc. Please bear with me. Thanks a lot, Bharath _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies