Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751804AbbD2S4a (ORCPT ); Wed, 29 Apr 2015 14:56:30 -0400 Received: from mail-oi0-f46.google.com ([209.85.218.46]:33866 "EHLO mail-oi0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750961AbbD2S41 (ORCPT ); Wed, 29 Apr 2015 14:56:27 -0400 MIME-Version: 1.0 In-Reply-To: References: <20150427173036.GA10950@lukather> <20150427180728.GW22845@sirena.org.uk> <20150428141630.GR22845@sirena.org.uk> <20150428171738.GY22845@sirena.org.uk> <20150429174059.GQ22845@sirena.org.uk> <20150429180659.GT22845@sirena.org.uk> Date: Wed, 29 Apr 2015 20:56:26 +0200 X-Google-Sender-Auth: 1Ifk5xripI9y_Y5wPHSTN4kchhc Message-ID: Subject: Re: [linux-sunxi] [PATCH 2/3] spidev: Add DT binding example. From: Geert Uytterhoeven To: Michal Suchanek Cc: Mark Brown , "Eric D." , linux-sunxi , Jonathan Corbet , Hans de Goede , Linux Kernel Mailing List , Maxime Ripard , linux-spi , Martin Sperl Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1260 Lines: 30 On Wed, Apr 29, 2015 at 8:37 PM, Michal Suchanek wrote: > I am using a version of Maxime's patch myself right now. It does not > seem it's going to be include in the kernel any time soon, however. > > FWIW I added the ability to open any CS, even those claimed by kernel > drivers. This addresses any potential race of spidev binding before > the actual driver but has the potential to introduce some subtle bugs > when you open and reconfigure a CS used by a kernel driver or send > some commands that upset the device. Uh, that sounds dangerous. Perhaps you can add some safety net, before user space can access them, cfr. /sys/class/gpio/export? Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/