Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4413783ybi; Mon, 15 Jul 2019 08:33:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqxSRhPtoZ7y6RcpGH5XPF2xSby5yJF+Mj37wxk0xsof24CrKeEvC0Ca6b8PQH7AwA5i43Dp X-Received: by 2002:a17:902:29a7:: with SMTP id h36mr29913332plb.158.1563204815188; Mon, 15 Jul 2019 08:33:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563204815; cv=none; d=google.com; s=arc-20160816; b=jMT1J4m7bFMbv1lPMnXHSWoo8yzEAspuNwh3bpx8bz9y/mFbQk25lRRR38UGpyhIXb LBx0kLWAauqNCfC3B0sx+bmZ+ijObdokLVfOlzkPnvTltRBR4Vbr3RDkLAS3p/3M7cZf 5EBdSf4Pu88Q5yquU1a5R4/YD328SiUVLl6NxYfnB3LX8f+8QAViUa8JYaDKQnoMCWo/ nMoU8qZGHYP7EuWia/vcGogRMj2XBwj4f+fxH/hFm1nVxzsurBpk2ZAyT62p0OArhQFv yuWVnI8egoo6slC3TwAQAokl0aSOaZubXLdPXDaRx14ov4Fh+vLddQ4BHIw5cAlEWfMN IcZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version; bh=/Gg/KjXaauLKzDbcl59vVN3Tsc7PhZ26ChOtTlm9WZA=; b=X6qxoS+mYxkzyo/asQwyUmcBJrUOJ4CSA3iRydpEebFic8FMbqkMRK2Omn6biOSQpv Q2qOtGmlM3fQr6ktlk/9yzXwSemFRZ5ORqHxh3LgPJNUWouJTdjaQwEoIEmapvj5JJdH ZIkXVU4NFuLpati20TmYSGu585jLVRcB8vqTMvLBgNAOfOMjFLKcKjo9jUbyQ8a6RDF1 976wEyKWkiPzZgAGDgH6gUS5H2ZY3VulN0O1NPKW2rfyS4JECE8+Pm2pFKqHLDFcM/Ud 1xfFoa90ofWXUElaCEMcrlxrEgRUzgruAli8FI6qqrUREMsnQSHsCHyeiDiNWEnrYIlR gukQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b2si16577575pgd.439.2019.07.15.08.33.18; Mon, 15 Jul 2019 08:33:35 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391837AbfGOOjC (ORCPT + 99 others); Mon, 15 Jul 2019 10:39:02 -0400 Received: from host-88-217-225-28.customer.m-online.net ([88.217.225.28]:42280 "EHLO mail.dev.tdt.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731051AbfGOOix (ORCPT ); Mon, 15 Jul 2019 10:38:53 -0400 Received: from mail.dev.tdt.de (localhost [IPv6:::1]) by mail.dev.tdt.de (Postfix) with ESMTP id 6F67D2197C; Mon, 15 Jul 2019 14:38:51 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 15 Jul 2019 16:38:51 +0200 From: Florian Eckert To: "Enrico Weigelt, metux IT consult" Cc: Eckert.Florian@googlemail.com, info@metux.net, dvhart@infradead.org, andy@infradead.org, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/3] platform/x86/pcengines-apuv2: add mpcie reset gpio export In-Reply-To: <3e98bbd8-c051-4996-fc5a-88a58a2fa2d4@metux.net> References: <20190704090205.19400-1-fe@dev.tdt.de> <20190704090205.19400-2-fe@dev.tdt.de> <3e98bbd8-c051-4996-fc5a-88a58a2fa2d4@metux.net> Message-ID: <10c574cd0dfb1c607536c68fc1c60c06@dev.tdt.de> X-Sender: fe@dev.tdt.de User-Agent: Roundcube Webmail/1.1.5 X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.dev.tdt.de Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >> On APUx we have also mpcie2/mpcie3 reset pins. To make it possible to >> reset >> the ports from the userspace, add the definition to this platform >> device. The gpio can then be exported by the legancy gpio subsystem to >> toggle the mpcie reset pin. >> > > Just tested your patch on an apu3. The driver itself seems to work, > but the pins don't seem to actually do anything. > > How exactly did you test it ? Do you have some test case ? I plugged in a mpcie usb modem. In my test case it was a EC25 from Quectel in mpcie2 port. After that I did a reboot and exported the gpio via "/sys/class/gpio" Then I executed the command "echo 0 > /sys/class/gpio//value" and "echo 1 > /sys/class/gpio//value". Then I have seen the log message in the kernel that the device did an unregistration/registration . -- Florian