From patchwork Tue Feb 5 10:25:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 10797233 Return-Path: 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 A217714E1 for ; Tue, 5 Feb 2019 10:25:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8E2762B5E6 for ; Tue, 5 Feb 2019 10:25:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 805432B613; Tue, 5 Feb 2019 10:25:54 +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 D505D2B5E6 for ; Tue, 5 Feb 2019 10:25:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729071AbfBEKZw (ORCPT ); Tue, 5 Feb 2019 05:25:52 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:44867 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727978AbfBEKZw (ORCPT ); Tue, 5 Feb 2019 05:25:52 -0500 Received: by mail-wr1-f66.google.com with SMTP id v16so1112860wrn.11 for ; Tue, 05 Feb 2019 02:25:51 -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=gsNW22ssNcRzeaLbI3kaHnMCg+AMjSvUm5/De6rVJv0=; b=bpcuFGma4ARp+rS3F1Y6V4YUidcHMBR5+qlz7Kp8QZJQIJB6LAnK6mtZWs6glMlX6h IF9N2vdbUKgh9CkWOI7eFXROxa2V0v8FbbWDy75SMS5JnymJbcATlH2E5Uhv6T35WofX l7s6JMnkipTc0TwBjvsPs7Vub0rK6RXf3ijQqBg3I+tELDTpjgP/ZLMReQMhSj1k7RaD IGxQUcaJCDIdpTpx+2zmag4HZrxM3gsQgUyj/t62BRXGh9+0uf7JGfMuErGhcoDwUPl0 p6kyMZm6AZng2bf2TDdhd4lZdH9WqbfG5m+GLTo7xtDLiaVpOkvctD90nJuC1H0y0Yyg GLvw== 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=gsNW22ssNcRzeaLbI3kaHnMCg+AMjSvUm5/De6rVJv0=; b=XokvVuI5U+TE0b/DRzNfdfx0j42+4LlO7m1XSPIF7cTcGSQzcbqvoWrpC7c4b2S8yi Rrhk748Oo53wlyG3ydGl24DfV12FnRUa4r2ovAqVa3seiz4DEXSvwN0VL79NctCsUYo7 X/xp7II2bEBX3kLKJCXgrg/sARzb+4joKNanBJFLhhpjY1viewyytlmk6IVmS+frIECT 2SL5CO6Muu+ErkgGPsxYwuUfHOSf/AKYk227A/oTyVuJI3072CFhRpgtmt0UslmpV6bc whsJyrHepMGmRnFZrLWzycY13usBomAs3CzuxssIf9Qt07ZeW4SDIN1KXUlmAjHcR09k MDXw== X-Gm-Message-State: AHQUAua8ueYk3wkur+Tv5T0q8SbWpHx4tXeMA6ZlMIm0h0CqmHaIL8kU ydYg9vwTHD8fyvURJCffauakto5wxMc= X-Google-Smtp-Source: AHgI3IYtZh9j91EE8qCq+sT6sMUlF8AIU8mOHOTsUv757AKgBdtKOyzNSYAfc+NbMCTx7Ocgay6M6A== X-Received: by 2002:adf:f903:: with SMTP id b3mr3193749wrr.82.1549362350470; Tue, 05 Feb 2019 02:25:50 -0800 (PST) Received: from debian-brgl.home ([2a01:cb1d:af:5b00:6d6c:8493:1ab5:dad7]) by smtp.gmail.com with ESMTPSA id r11sm5132396wrx.75.2019.02.05.02.25.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Feb 2019 02:25:49 -0800 (PST) From: Bartosz Golaszewski To: Sekhar Nori , Kevin Hilman , Alan Stern , Greg Kroah-Hartman Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Linus Walleij , Bartosz Golaszewski Subject: [PATCH 0/8] ARM: davinci: move the da8xx-ohci GPIO logic into the driver Date: Tue, 5 Feb 2019 11:25:38 +0100 Message-Id: <20190205102546.29457-1-brgl@bgdev.pl> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Bartosz Golaszewski 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. 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(-) Acked-by: Alan Stern