Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp483106yba; Wed, 3 Apr 2019 12:38:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqy46t39huX/foaQ3cCGDF+DDqQ+NIVBK0UBFYpz1CSPd6zQhncUsBZX4Un/1Pd/js291y8n X-Received: by 2002:a17:902:8606:: with SMTP id f6mr1860004plo.151.1554320296298; Wed, 03 Apr 2019 12:38:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554320296; cv=none; d=google.com; s=arc-20160816; b=Y2xxgxHV+Gn+fVI1Xu9z7U9vvBrD+hoZNxi9VEpFUlzrbzwtNotdbS+uPlXLnyp6cX iy3xMSTcKLJicouhSGKq5U2DBzg7Le1jG2nCo4kw10DAcO3S8aA4am1zkyegFpHN/yM6 e7XjXqATocPOCUzvrLkSmCphtQs9zNFeVr3bc32BHt6Hu2GqPCmyHNtwpEYbUd854681 sdxqtUpm0QNMs00FZruJOd5K6n3M8tg8B9sJcWZfT3vAzmkCCG1Mb/uXNWD8uLZ9uT18 54pjECnwM8tSuDsCMkWGJBVPihhsEsfnWWa4FFRuZ7BpzwH/2RY1rs0s8YdHvs4xcHcp MesA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=skaZql8Gj9kfFrUNidR1YZntSDCr8CoVOm5+tStDrps=; b=zLRD3g74b++O94weAqls1cM7psYeoQ4nsSyRjKUNRxtBLSCPMQRr05LHwVeSDFd3MI zGvvSnT3L0XNQ3QuFxUMV9ZKFEwEkfbD/PoEhvHGTp3nr4yujRLB4+DG+Fw9v+cEtLNL ZEDAASZuQ/Ed0TMu+Sz/vRWEPAAqBgCGTtNDDzYUfPB/D/TPR+sGuKWAA7vk6IxuZy+t cfwMUTg1vZmpfU6wiwr6qypgADvxKwRU6vON9lTR5kgqtKJh/m98+Fl8/SSNZN2yyXg3 fJCFA957l4PEVVIiR4WBCvSk+fy4xc6+Zq8U8kLI36CNocmtQJkfEVJvSjaClO8KKbBR ZvWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=c3+hyi3n; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h1si4616844pfj.187.2019.04.03.12.38.00; Wed, 03 Apr 2019 12:38:16 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=c3+hyi3n; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726895AbfDCTfu (ORCPT + 99 others); Wed, 3 Apr 2019 15:35:50 -0400 Received: from mail-io1-f66.google.com ([209.85.166.66]:37718 "EHLO mail-io1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726151AbfDCTft (ORCPT ); Wed, 3 Apr 2019 15:35:49 -0400 Received: by mail-io1-f66.google.com with SMTP id x7so3068435ioh.4 for ; Wed, 03 Apr 2019 12:35:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-transfer-encoding; bh=skaZql8Gj9kfFrUNidR1YZntSDCr8CoVOm5+tStDrps=; b=c3+hyi3neDc2tJNbxvK3U1UrJ1O9v4lFLUzHqaiwGjMkhwyga47OpYjCJnHgejnK30 F42WgWkczJphun0UuV9wvEsXMU1ahWEkGjV6YNdEuU3jU7Kg4iYrmwHbyhX0bFQicJed bq0BAvu9Gv0Rv3bFNx6TGV5XxvDYFfng36GYr6uL0iwNnnEy/Ds6DuSE0skYqaMdjY5z 6N35KJsFcwxkfE6bD9npRidw4N6p7LYaOJCG4q5m9DALdKfPKyK1M42qaALyBvgDya64 x/k67nziAZyKiIlog+6VV1N/+cNj0OkEkauBNF9ty1h1+7AOAFoymUlSriW7cIdeQcYE QIFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:content-transfer-encoding; bh=skaZql8Gj9kfFrUNidR1YZntSDCr8CoVOm5+tStDrps=; b=ESnryhYl7O3sNwIOednbfbSkBhqSGyW6aPtQnJKx81UVbmgn9yNC9gml2syT1zoC7Z lLO+VExe5wbrKt4RMIj6327lYvq1IcDjcCbEmq+aWyHQTYBD8iPOWxL9hEvgeVeA+vCm vOkMeZQO2KThaXl57D8QV1kKzdRMED90Ig3v5Pnu7BAcT9zn/PPsTW6qT7NgbdqdgQdc nNwkeXA/W04YWk2P6MyOhglOcDWcyG2OjFDbfKLhEAYhhjvHfZ1z2JzXFZadkwPVUGR/ dQ/sv7nlQzS1hap+F09NvnHQhkuvoaJFCQrIQjqWoDtct5MKaU1mWWkRmhGlkxevbV48 W+Ag== X-Gm-Message-State: APjAAAXfx7L/sHFyCq5eg1L9QXq3imAAMIrMJhF+x6avJZ9HwO2AA+2+ PDaLlI5js/iv+Aya/ooBsnFQljog2uTdP64BQoU= X-Received: by 2002:a5e:9e06:: with SMTP id i6mr1499324ioq.50.1554320148963; Wed, 03 Apr 2019 12:35:48 -0700 (PDT) MIME-Version: 1.0 References: <20190402103203.14959-1-gregkh@linuxfoundation.org> <20190402103203.14959-4-gregkh@linuxfoundation.org> <87r2ak18yy.fsf@notabene.neil.brown.name> <20190402204658.GA5187@habor.localdomain> In-Reply-To: <20190402204658.GA5187@habor.localdomain> From: George Hilliard Date: Wed, 3 Apr 2019 14:35:37 -0500 Message-ID: Subject: Re: [PATCH 03/16] staging: m57621-mmc: delete driver from the tree. To: NeilBrown , George Hilliard , Greg Kroah-Hartman , devel@driverdev.osuosl.org, Nishad Kamdar , linux-kernel@vger.kernel.org, Sergej Perschin , Matthias Brugger , John Crispin Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 2, 2019 at 3:45 PM Christian L=C3=BCtke-Stetzkamp wrote: > There are two other larger differences that I found during my > work. One is that drivers/mmc/host/mtk-sd.c has much more features, > like voltage and clock handling and some support for high speed > modes. I don't know if these features are required/useful for this > device. For what it's worth, I found an old forum post of someone who was dealing with a crashy kernel on their mt7688. They removed the mt7621-mmc driver and hacked the clock code out of the mainline driver. Apparently it worked. I never got around to duplicating their work, however. (I too ran into severe instability problems with the mt7621-mmc driver, but they only appeared in conjunction with using the SLOB allocator. I could never debug it because when JTAG was turned on, the SDMC peripheral was disabled for some reason I never discovered. More info on that if someone is interested.) The correct way to do this would be to have a "compatible" flag that bypassed the clock handling code. I don't think there are any relevant clocks to set up on the MT7628/MT7688 - the MSDC peripheral does not appear in the clock plan. > The other thing is the card detect handling. This driver is > doing the card detect / read only detection on its own, where the in > tree one just uses some default gpio functions there and I don't know > weather this must be changed or weather there is a gpio driver for the > mt7621. There is a "mtk,mt7621-gpio"-compatible GPIO driver available. Probably it would work with GPIO on new hardware that did not to route CD to the CD pin, because the CD pin is muxed using the same "SD card" pin state as the SD data pins. I do not know if it is possible for the GPIO peripheral to read the pin while it is muxed to the SD controller, as would be necessary for existing hardware. George