Message ID | 20190211103702.4277-1-brgl@bgdev.pl (mailing list archive) |
---|---|
Headers | show
Return-Path: <linux-usb-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 957C617FB for <patchwork-linux-usb@patchwork.kernel.org>; Mon, 11 Feb 2019 10:37:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 848CF29E33 for <patchwork-linux-usb@patchwork.kernel.org>; Mon, 11 Feb 2019 10:37:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 78B0B29F4D; Mon, 11 Feb 2019 10:37:09 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E186E29E33 for <patchwork-linux-usb@patchwork.kernel.org>; Mon, 11 Feb 2019 10:37:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726147AbfBKKhI (ORCPT <rfc822;patchwork-linux-usb@patchwork.kernel.org>); Mon, 11 Feb 2019 05:37:08 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:37297 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725931AbfBKKhI (ORCPT <rfc822;linux-usb@vger.kernel.org>); Mon, 11 Feb 2019 05:37:08 -0500 Received: by mail-wm1-f68.google.com with SMTP id x10so10931764wmg.2 for <linux-usb@vger.kernel.org>; Mon, 11 Feb 2019 02:37:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Lp1z88rmSvOgpHJjKgNZ/hWDt9IGj1pIXD05fNWwKy8=; b=Sufvb4egsQ51rirVphDLxi9YG0kRqBsdDsj4Xa5r1xMgynbkKEnv3/RwUr6Tl5lwJi VPO0szmPHap3TVe5iNXXwocVml2yBvtoPYhHxlNR1keVFD8eXvKKoZuYsF8KOQZZX8s6 27AxLaF92J3Okhx1Wqs5nKs/2NgmqpdONsgTxarYyj7fNESL/h55iG+yDsjKn9TenNEk U5kFti2fGgffjnQPuGFG0ZkNoEe2yr+vNWl/4rr6ahKoQe+JCoeb+1G05qstAvS1HJCo 5CP9ygbRa+K6EbTVQ209WEmnVOT+kZihhcJszN3kXZVBRP0Qr6vILVpf1WWBCGoeCP03 +9Sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Lp1z88rmSvOgpHJjKgNZ/hWDt9IGj1pIXD05fNWwKy8=; b=T72r5nbue5Uhvwrwy9MQxdDO81QOAmMyJshyLdedvPmcSBMA2dxknQEL+Ncsd8jBTi kZ55nvwbIcE5aLH2swpCUs4XXEuyRnd2RioJHoXQcNons9/n1iyrlE4fB3mrjhmXaDDt p6nE+RIhEFPQUvDkhPjbGPeujFt5HzaswLx8hSpBGAe56ME4rrPZtF8YTQGIow/rWhTP ExhaaH127Xsf9PFvcPIBKxK0yJzJ2AqqCQNv1e1S3e7Y9hRfVXZEZh8JLkq/hmB3Aw/s L+EFbG+zxrrt3wBC6peC45aj+41KJtoEZUoeo7NMoRBMRConMNC/bw1o9G8WU5SqDvHs JEcA== X-Gm-Message-State: AHQUAuZSwyO0C9RLqPWGNSDMlHSUD5qd0S2u7Sm/3glhbwbrtjU/LxOh lRuYdR9TWXUoMcmeiyP5ziB5aSXF+nE= X-Google-Smtp-Source: AHgI3IYo5IcQW4kWbVn+7JxJfi7KrWkt9X31jdXtUzSKteRW1gb7ZzGR5lRcQWfbO0GA9UnxpZfVcA== X-Received: by 2002:adf:e647:: with SMTP id b7mr1739112wrn.260.1549881426304; Mon, 11 Feb 2019 02:37:06 -0800 (PST) Received: from debian-brgl.home ([2a01:cb1d:af:5b00:6d6c:8493:1ab5:dad7]) by smtp.gmail.com with ESMTPSA id i192sm11121275wmg.7.2019.02.11.02.37.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Feb 2019 02:37:05 -0800 (PST) From: Bartosz Golaszewski <brgl@bgdev.pl> To: Sekhar Nori <nsekhar@ti.com>, Kevin Hilman <khilman@kernel.org>, Alan Stern <stern@rowland.harvard.edu>, Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Linus Walleij <linus.walleij@linaro.org>, Bartosz Golaszewski <bgolaszewski@baylibre.com> Subject: [PATCH v2 0/8] ARM: davinci: move the da8xx-ohci GPIO logic into the driver Date: Mon, 11 Feb 2019 11:36:54 +0100 Message-Id: <20190211103702.4277-1-brgl@bgdev.pl> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: <linux-usb.vger.kernel.org> X-Mailing-List: linux-usb@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
ARM: davinci: move the da8xx-ohci GPIO logic into the driver
|
expand
|
From: Bartosz Golaszewski <bgolaszewski@baylibre.com> In order to drop the hard-coded GPIO base values from the davinci GPIO driver's platform data, we first need to get rid of all calls to the legacy GPIO functions. This series moves the GPIO logic related to da8xx-ohci out of the board files and into the driver code. First two patches are just coding style tweaks. Next two add the GPIO lookup entries to the board files. Patch 5 add the vbus and overcurrent GPIO logic to the davinci USB host driver. Last three remove code that's no longer used. v1 -> v2: - use the non-sleeping version of gpiod_ functions in the irq handler - improve commit messages (make them readable without the subject line) - collect Acked-by and Reviewed-by tags - rebase on top of v5.0-rc6 Bartosz Golaszewski (8): usb: ohci-da8xx: add a new line after local variables usb: ohci-da8xx: add a helper pointer to &pdev->dev ARM: davinci: omapl138-hawk: use gpio lookup entries for usb gpios ARM: davinci: da830-evm: use gpio lookup entries for usb gpios usb: ohci-da8xx: add vbus and overcurrent gpios ARM: davinci: omapl138-hawk: remove legacy usb helpers ARM: davinci: da830-evm: remove legacy usb helpers usb: ohci-da8xx: remove unused callbacks from platform data arch/arm/mach-davinci/board-da830-evm.c | 73 ++---------- arch/arm/mach-davinci/board-omapl138-hawk.c | 81 ++------------ drivers/usb/host/ohci-da8xx.c | 118 ++++++++++---------- include/linux/platform_data/usb-davinci.h | 14 --- 4 files changed, 77 insertions(+), 209 deletions(-)