From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750903AbcFAS34 (ORCPT ); Wed, 1 Jun 2016 14:29:56 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:36061 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750720AbcFAS3y (ORCPT ); Wed, 1 Jun 2016 14:29:54 -0400 Date: Wed, 1 Jun 2016 11:29:49 -0700 From: Dmitry Torokhov To: Ksenija =?utf-8?Q?Stanojevi=C4=87?= Cc: linux-kernel@vger.kernel.org, Lee Jones , linux-input@vger.kernel.org, Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Marek =?utf-8?B?VmHFoXV0?= , linux-iio@vger.kernel.org, Harald Geyer Subject: Re: [PATCH 3/3] input: touchscreen: mxs-lradc: Add support for touchscreen Message-ID: <20160601182949.GE4114@dtor-ws> References: <61fe1da2e8d82921f3222ec939047b6823f695e1.1461930102.git.ksenija.stanojevic@gmail.com> <20160429233616.GA13361@dtor-ws> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, May 28, 2016 at 07:46:07PM +0200, Ksenija Stanojević wrote: > On Sat, Apr 30, 2016 at 1:36 AM, Dmitry Torokhov > wrote: > > Hi Ksenija, > > > > On Fri, Apr 29, 2016 at 01:49:11PM +0200, Ksenija Stanojevic wrote: > >> + > >> + mxs_lradc_ts_hw_init(ts); > >> + for (i = 0; i < lradc->irq_count; i++) { > >> + ret = devm_request_irq(dev, lradc->irq[i], > >> + mxs_lradc_ts_handle_irq, > > > > Hmm, if you have several interrupts handled by the same interrupt > > handler you'd need some locking there. > > same interrupt handler can run concurrently only on multi cores, so > why do we need locking? We do not necessarily need it on single core (unless someone will turn it int threaded IRQ down the road), but adding it costs almost nothing and will ensure that the driver will continue working even if block is moved to multi-core SOC in the future... Thanks. -- Dmitry