Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp2289550ima; Mon, 22 Oct 2018 07:26:50 -0700 (PDT) X-Google-Smtp-Source: ACcGV61UGFX8hwVv1Ud0NJkbk/WvriJfwfoXENFvMXduPileuhfLsx/E5JT1025WjIwe/F9F8OC1 X-Received: by 2002:a62:939d:: with SMTP id r29-v6mr46175762pfk.55.1540218410010; Mon, 22 Oct 2018 07:26:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540218409; cv=none; d=google.com; s=arc-20160816; b=pG6MvPWpfK+5OxVGEkmSLjmaupe+7bFfL/mMiLDfWIKma2Nqijqt0YgbQacDtOzyyH IAdKBzbk/cwhHWtpfOJ4optL/sgSyrqgYuPCTqI4hYL+ImwhYZngy0e7YA+R5di1X5sB YLkNvl4ZFuC7th9ARwqFJra41yvlhHJcAAN1P07I6a8r68A8eMsxJk/LV/N1IvuEdsLl xSZall3QGU2JOqacmenpaIBo5ODGEl0XP+YLift4fwahALHY3c7eh8B+T5TxlVXYriwk 4svJZVZT+tUQ1XBymRUau498AUtXIpYqGgFC7ofbPdxkd9njrKdBmOApkkOn8ET4//f0 v7RQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=zjNfqDaBC077P5P8cnDiFJdiNgu1IySfoOWLOnkto9k=; b=ZF7E5QfobOykOwHgXswm1dJlOVzqq1+ugFj5p+/9boCVf5dFzAXlNn6h8sC8fY/IR2 AM8yIlb7PYzQVk0NacLwFNVr+LjCr3/b/vgg8MfJ7kdsfELK2mGUyeFwEfPc5D0qXqQZ L2+LuOZMEwFdbUZ+8KrAvziN/2tcwl2xsVeG+ttrzoRdm8W4bb46CUGZ4ntFv9mQy1pO pc/Hze0JDnek8i1LXizmTF26SjMkJuR22NDkDBwuqe/C4i3Y6vWOdsBMNXlfj3JfTfKU hbXhqQcjDT0WzMCEwKgiS5N4aWBRJMlVH9LXw11VRRFguVlOZX0HH0IkWZ+lKm49Ns8h xp+A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y4-v6si21915158plb.159.2018.10.22.07.26.35; Mon, 22 Oct 2018 07:26:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728411AbeJVWW4 (ORCPT + 99 others); Mon, 22 Oct 2018 18:22:56 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:43942 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728338AbeJVWW4 (ORCPT ); Mon, 22 Oct 2018 18:22:56 -0400 Received: by mail-wr1-f68.google.com with SMTP id t10-v6so3541894wrn.10 for ; Mon, 22 Oct 2018 07:04:12 -0700 (PDT) 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=zjNfqDaBC077P5P8cnDiFJdiNgu1IySfoOWLOnkto9k=; b=oRmUXcwYMkHzEOOOKTTp1uoZq/NtHQ1WJIrqDhnSo3wVpB71ErG5deh+e6cjfPrhVM Nsp66+GVkYO4skRjIqwLu36pKkcHc9V9N+pS+5hDAj6bKganhhPR0uVwLQG7c049y+xX L+z3O2kXz69JejEATqDLpWD3iKuAJUnXuceFU4ALq0nKRttUxTAJASVq+wj5Tyt9moi9 gH17HsN92pzumluNdRLDPEk6HkCwVOoGH378X+LwsQadYdfGlTGAC9D/eva5gGFy8uem XxzpyGfDgiB2wL6AiAvcB/REhAsstgQNOJh5ZAv7AmGK+N/Wq98gC2eFQ8CLHJakH6xt XB1g== X-Gm-Message-State: AGRZ1gLZyDnufIzTHd4+3Typ6AHsJF6g8JbxlJHoPUvx7P1Lt1Qq3U9d PrxlhxI9kOBQSRk/HPgI4ACwmvEzxMO8Rw== X-Received: by 2002:a5d:640b:: with SMTP id z11-v6mr5513978wru.64.1540217051951; Mon, 22 Oct 2018 07:04:11 -0700 (PDT) Received: from localhost ([185.7.230.215]) by smtp.gmail.com with ESMTPSA id u10-v6sm27488200wrt.59.2018.10.22.07.04.10 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 22 Oct 2018 07:04:10 -0700 (PDT) Date: Mon, 22 Oct 2018 15:04:09 +0100 From: Moritz Fischer To: Andreas Puhm Cc: Moritz Fischer , Alan Tull , "linux-fpga@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] fpga: altera_cvp: restrict registration to CvP enabled devices Message-ID: <20181022140409.GA1883@archbook> References: <78c44ad0b2344a4490ffd300cf0df746@SRV177.busymouse24.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <78c44ad0b2344a4490ffd300cf0df746@SRV177.busymouse24.de> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andreas, On Mon, Oct 22, 2018 at 01:15:34PM +0000, Andreas Puhm wrote: Can you please send your patch using git-send-email? [..] > Subject: [PATCH] fpga: altera_cvp: restrict registration to CvP enabled devices How about: fpga: altera-cvp: Fix registration for CvP incapable devices The probe function needs to verify the CvP enable bit in order to properly determine if FPGA Manager functionality can be safely enabled. > > The altera-cvp probe function now verifies, that the PCI device supports > the CvP feature, before it registers the device. > This is done by reading the CVP_EN bit, > Bit 20 of the CVP_STATUS register (@ PCI Config Address 0x21C). > > If this bit is '1' (CvP enabled), altera-cvp will register the device > for further interaction. > If this bit is '0' (CvP disabled), altera-cvp will not register the device. > Could you add a Fixes ("Message") tag here, I believe we had this issue since the very beginning, i.e Fixes 34d1dc17ce97 ("fpga manager: Add Altera CvP driver") Something like ^^^^ Thanks, Moritz