Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757910AbaJ3AXB (ORCPT ); Wed, 29 Oct 2014 20:23:01 -0400 Received: from rrcs-76-79-27-186.west.biz.rr.com ([76.79.27.186]:13214 "EHLO rrcs-76-79-27-186.west.biz.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757285AbaJ3AXA (ORCPT ); Wed, 29 Oct 2014 20:23:00 -0400 Date: Wed, 29 Oct 2014 19:22:58 -0500 From: Jeff Epler To: Bjorn Helgaas , "open list:PCI SUBSYSTEM" , open list , Greg Kroah-Hartman Subject: incompatible pci sysfs change since 3.12 (5136b2da770d) Message-ID: <20141030002258.GA59253@unpythonic.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 Hi. I am an author of LinuxCNC, a GPL'd CNC control for Linux. Recently we added support for userspace PCI drivers. This worked with kernel 3.2 but doesn't with kernel 3.16. The software fails early with Failed to open "/sys/devices/pci0000:00/.../enable" (Permission denied) This appears to be because our software relies on the documented "enable" sysfs file for pci devices (Documentation/filesystem/sysfs-pci.txt) which was (unintentionally?) changed to "enabled" in the above-named patch: 5136b2da770d PCI: convert bus code to use dev_groups ... +static DEVICE_ATTR_RW(enabled); ... - __ATTR(enable, 0600, is_enabled_show, is_enabled_store), Are we in the LinuxCNC project wrong in thinking that stuff in /sys (and not /sys/debug) is supposed to be a durable API/interface for userspace to the kernel? (It must be a low-usage API if it went unnoticed for a year :-/) We'll have to work around it by modifying our software (since we'd like to work with the kernels people already have) in any case. Even if it is not going to be changed compatibly with older kernels, it seems like the documentation should be updated! Jeff -- 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/